mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
moved .coveragerc and pytest.ini files to model_data
This commit is contained in:
parent
18953c9f0b
commit
d774df4697
4 changed files with 3 additions and 1 deletions
|
|
@ -45,5 +45,5 @@ conda activate envName
|
|||
Then run
|
||||
|
||||
```commandline
|
||||
python -m pytest
|
||||
pytest --cov-config=model_data/.coveragerc --cov=model_data
|
||||
```
|
||||
|
|
@ -25,6 +25,8 @@ class TestSapModel:
|
|||
assert model.final_model is not None
|
||||
assert model.test_model is not None
|
||||
|
||||
# Note - this will potentially be different on different machines so may need to adjust these tests accordingly
|
||||
# when running in CI/CD
|
||||
assert (model.fit_error['Median Absolute Error'] - 1.7316860436422203) < 0.00001
|
||||
assert (model.predict_error['Median Absolute Error'] - 2.85481857667385) < 0.00001
|
||||
# final model doesn't do that well on this test data
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue