ifieryarrows commited on
Commit
758f7ee
·
verified ·
1 Parent(s): 2921e2d

Sync from GitHub

Browse files
Files changed (1) hide show
  1. 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)