give users ability to decide how many models to keep in dry/live

This commit is contained in:
robcaulk
2023-02-22 22:27:56 +01:00
parent 9633081c31
commit b8f011a2ab
8 changed files with 15 additions and 10 deletions

View File

@@ -629,8 +629,7 @@ class IFreqaiModel(ABC):
if self.plot_features:
plot_feature_importance(model, pair, dk, self.plot_features)
if self.freqai_info.get("purge_old_models", False):
self.dd.purge_old_models()
self.dd.purge_old_models()
def set_initial_historic_predictions(
self, pred_df: DataFrame, dk: FreqaiDataKitchen, pair: str, strat_df: DataFrame