Skip to content

Commit

Permalink
chores: fix the artifact paths
Browse files Browse the repository at this point in the history
  • Loading branch information
vishalmhjn committed Oct 23, 2024
1 parent dc0dc10 commit 11b9abe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/predict.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def predictor(predictions_folder, file_processed_input, date_formatted, args_mod
target_as_autoregressive_feature,
target_column,
)
_ = time_series_object.load_scaler("artifacts/minmax_scaler.gz")
_ = time_series_object.load_scaler(f"{model_output}/minmax_scaler.gz")
logging.info(f"Scaler successfully loaded.")

scaled_test = time_series_object.scaler_transform(X_formatted)
Expand All @@ -47,7 +47,7 @@ def predictor(predictions_folder, file_processed_input, date_formatted, args_mod
traffic_model.load_model(f"{model_output}/{args_model}_model")
elif args_model == "xgboost":
traffic_model = XGBoostModel()
traffic_model.load_model(f"artifacts/{args_model}_model")
traffic_model.load_model(f"{model_output}/{args_model}_model")
logging.info(f"Model {args_model} successfully loaded.")

y_test_hat = traffic_model.predict_model(X_test)
Expand Down

0 comments on commit 11b9abe

Please sign in to comment.