Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions giskard-ml-worker/ml_worker/testing/performance_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def test_rmse(self, actual_slice, model: GiskardModel, threshold=1):
"""
Test if the model RMSE is lower than a threshold

Example: The test is passed when the RMSE is lower than 0.7
Example: The test is passed when the RMSE is lower than 10

Args:
actual_slice(GiskardDataset):
Expand All @@ -226,7 +226,7 @@ def test_mae(self, actual_slice, model: GiskardModel, threshold=1):
"""
Test if the model Mean Absolute Error is lower than a threshold

Example: The test is passed when the MAE is lower than 0.7
Example: The test is passed when the MAE is lower than 10

Args:
actual_slice(GiskardDataset):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ items:

Description: Test if the model RMSE is lower than a threshold

Example: The test is passed when the RMSE is lower than 0.7
Example: The test is passed when the RMSE is lower than 10

Args:
actual_slice(GiskardDataset):
Expand All @@ -500,7 +500,7 @@ items:
tests.performance.test_rmse(
actual_slice=actual_ds.slice(lambda df: df.head(len(df) // 2)),
model=model,
threshold=0.7
threshold=10
)
- id: diff_rmse
title: RMSE difference
Expand Down Expand Up @@ -602,7 +602,7 @@ items:

Description: Test if the model Mean Absolute Error is lower than a threshold

Example: The test is passed when the MAE is lower than 0.7
Example: The test is passed when the MAE is lower than 10

Args:
actual_slice(GiskardDataset):
Expand All @@ -623,7 +623,7 @@ items:
tests.performance.test_mae(
actual_slice=actual_ds.slice(lambda df: df.head(len(df) // 2)),
model=model,
threshold=0.7
threshold=10
)
- id: r2
title: R2
Expand Down