From 0d9dbbc9ca513e644cd092d109b11dbbb0fa254a Mon Sep 17 00:00:00 2001 From: hotsixman Date: Sat, 25 Apr 2026 19:33:35 +0900 Subject: [PATCH] fix --- predict/feature/predict_lightgbm.py | 6 +++--- script/preprocess_feature.ts | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/predict/feature/predict_lightgbm.py b/predict/feature/predict_lightgbm.py index fac933a..b5e7458 100644 --- a/predict/feature/predict_lightgbm.py +++ b/predict/feature/predict_lightgbm.py @@ -14,9 +14,9 @@ warnings.filterwarnings("ignore", category=UserWarning) # ========================================================= FEATURES_FILENAME = "features.json" -MODEL_FILENAME = "model_lgbm.pkl" -SCALER_FILENAME = "scaler_lgbm.pkl" -FEATURE_NAMES_FILENAME = "features_lgbm.txt" +MODEL_FILENAME = "model.pkl" +SCALER_FILENAME = "scaler.pkl" +FEATURE_NAMES_FILENAME = "features.txt" def safe_float(value): if value is None: return 0.0 diff --git a/script/preprocess_feature.ts b/script/preprocess_feature.ts index 3dfdcf6..0118099 100644 --- a/script/preprocess_feature.ts +++ b/script/preprocess_feature.ts @@ -63,4 +63,5 @@ for (const file of files) { } const featurePath = path.join(workingDir, values.fileName ?? 'features.json'); -fs.writeFileSync(featurePath, JSON.stringify(features, null, 2), 'utf-8'); \ No newline at end of file +fs.writeFileSync(featurePath, JSON.stringify(features, null, 2), 'utf-8'); +console.log(`Successfully saved factors to ${featurePath}`);