Spaces:
Running
Running
Sync from GitHub
Browse files- app/ai_engine.py +1 -1
app/ai_engine.py
CHANGED
|
@@ -433,7 +433,7 @@ def train_xgboost_model(
|
|
| 433 |
with open(features_path, "w") as f:
|
| 434 |
json.dump(feature_names, f, indent=2)
|
| 435 |
|
| 436 |
-
# Save importance
|
| 437 |
importance_path = model_dir / f"xgb_{target_symbol.replace('=', '_')}_latest.importance.json"
|
| 438 |
with open(importance_path, "w") as f:
|
| 439 |
json.dump(normalized_importance, f, indent=2)
|
|
|
|
| 433 |
with open(features_path, "w") as f:
|
| 434 |
json.dump(feature_names, f, indent=2)
|
| 435 |
|
| 436 |
+
# Save importance (Overwrite to reflect the latest model training)
|
| 437 |
importance_path = model_dir / f"xgb_{target_symbol.replace('=', '_')}_latest.importance.json"
|
| 438 |
with open(importance_path, "w") as f:
|
| 439 |
json.dump(normalized_importance, f, indent=2)
|