Skip to content

Commit

Permalink
edit test
Browse files Browse the repository at this point in the history
  • Loading branch information
ChinSekYi committed Jul 7, 2024
1 parent a34f8b4 commit f265d35
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ def test_data_transformation_output():

return train_arr, test_arr


""""
# takes a long time to run
def test_model_output():
obj = ModelTrainer()
train_arr, test_arr = test_data_transformation_output()
Expand All @@ -39,6 +40,7 @@ def test_model_output():
assert obj.model_trainer_config.trained_model_file_path == "artifacts/model.pkl"
assert predicted.isnumeric()
assert r2_score_value.isnumeric() and r2_score_value <= 1 and r2_score_value >= 0
"""

if __name__ == "__main__":
test_model_output()

0 comments on commit f265d35

Please sign in to comment.