We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a5de2e6 + 9616886 commit 468c586Copy full SHA for 468c586
MLOps/app/services/predict_cong_service.py
@@ -90,8 +90,8 @@ def predict_and_save_all_locations():
90
91
# 2. 모델별 예측 실행
92
for name, model in models.items():
93
- final_predict_df = predict_df.reindex(columns=model.feature_names_, fill_value=0)
94
- prediction_num = int(model.predict(final_predict_df)[0][0])
+ final_predict_df = predict_df.reindex(columns=model.booster_.feature_name(), fill_value=0)
+ prediction_num = int(model.predict(final_predict_df)[0])
95
prediction_str = CONGEST_LVL_MAP.get(prediction_num, "Unknown")
96
97
location_result = {
0 commit comments