From 37b31d3715a66fd0d3f51b94c12c1836f54f25d8 Mon Sep 17 00:00:00 2001 From: Alexandra Vabnits Date: Thu, 25 Jul 2024 23:22:51 +0300 Subject: [PATCH] validate.py fix --- src/validate.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/validate.py b/src/validate.py index 5ce77e7..5ea977c 100644 --- a/src/validate.py +++ b/src/validate.py @@ -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" @@ -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)