Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Commit

Permalink
Fix model paths
Browse files Browse the repository at this point in the history
  • Loading branch information
yashasvini121 authored Oct 28, 2024
1 parent 1efaa94 commit 7df48ac
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion models/credit_card_fraud/predict.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def get_prediction(
)
# print(input_df.values)
# Load the model
svm_model = load_model("models\credit_card_fraud\saved models\creditCardFraud_svc_model.pkl")
svm_model = load_model("models/credit_card_fraud/saved_models/creditCardFraud_svc_model.pkl")

# Predict using Random Forest
predicted_value = svm_model.predict(input_df)
Expand Down
2 changes: 1 addition & 1 deletion models/insurance_cost_predictor/model.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from joblib import load

# Load the trained model for insurance cost prediction
model = load("models\insurance_cost_predictor\saved_models\insurance_model.pkl")
model = load("models/insurance_cost_predictor/saved_models/insurance_model.pkl")

def insurance_cost_prediction(age, sex, bmi, children, smoker, region):
# Feature extraction and conversions
Expand Down

0 comments on commit 7df48ac

Please sign in to comment.