diff options
| author | Scott <[email protected]> | 2022-02-02 13:47:36 -0800 |
|---|---|---|
| committer | Scott <[email protected]> | 2022-02-02 13:47:36 -0800 |
| commit | 7ff2af6fe7bffea90dc4a31c93140c189917c659 (patch) | |
| tree | 34cb138c3a572037b5bc1d1b52ad9d25a2604ccb /ml | |
| parent | 6ba90a1f30f1c0cf4df12fcd0c62181f29bc3668 (diff) | |
Let's be explicit with asserts; there was a bug in histogram
caused by assert foo when foo was an int with valid valid 0.
Diffstat (limited to 'ml')
| -rw-r--r-- | ml/model_trainer.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ml/model_trainer.py b/ml/model_trainer.py index 6fc0da0..a37885c 100644 --- a/ml/model_trainer.py +++ b/ml/model_trainer.py @@ -170,9 +170,9 @@ class TrainingBlueprint(ABC): print(msg) logger.info(msg) - assert best_training_score - assert best_test_score - assert best_params + assert best_training_score is not None + assert best_test_score is not None + assert best_params is not None ( scaler_filename, model_filename, |
