Skip to content

Commit

Permalink
validate.py fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sashhhaka committed Jul 25, 2024
1 parent 1318842 commit 37b31d3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,10 +150,10 @@ def predict(raw_df):
# 5. Scanning Model
print("DBG: Scanning model")

wrapped_predict = giskard_model.predict(giskard_dataset)
wrapped_test_metric = r2_score(y, wrapped_predict.prediction)
# wrapped_predict = giskard_model.predict(giskard_dataset)
# wrapped_test_metric = r2_score(y, wrapped_predict.prediction)

print(f'DBG: Wrapped Test R2-score: {wrapped_test_metric:.2f}')
# print(f'DBG: Wrapped Test R2-score: {wrapped_test_metric:.2f}')

# scan_results = giskard.scan(giskard_model, giskard_dataset)
# scan_results_path = f"reports/validation_results_{model_name}_{model_version}_{dataset_name}_{version}.html"
Expand All @@ -166,7 +166,7 @@ def predict(raw_df):
test1 = testing.test_r2(
model=giskard_model,
dataset=giskard_dataset,
threshold=0.3
threshold=0.4
)

test_suite.add_test(test1)
Expand Down

0 comments on commit 37b31d3

Please sign in to comment.