add exception for not passing timerange. Remove hard coded arguments for CatboostPredictionModels. Update docs
This commit is contained in:
@@ -76,6 +76,9 @@ class FreqaiDataKitchen:
|
||||
self.keras = self.freqai_config.get("keras", False)
|
||||
self.set_all_pairs()
|
||||
if not self.live:
|
||||
if not self.config["timerange"]:
|
||||
raise OperationalException(
|
||||
'Please pass --timerange if you intend to use FreqAI for backtesting.')
|
||||
self.full_timerange = self.create_fulltimerange(
|
||||
self.config["timerange"], self.freqai_config.get("train_period_days")
|
||||
)
|
||||
|
@@ -38,8 +38,6 @@ class CatboostPredictionModel(BaseRegressionModel):
|
||||
|
||||
model = CatBoostRegressor(
|
||||
allow_writing_files=False,
|
||||
verbose=100,
|
||||
early_stopping_rounds=400,
|
||||
**self.model_training_parameters,
|
||||
)
|
||||
model.fit(X=train_data, eval_set=test_data)
|
||||
|
@@ -27,9 +27,6 @@ class CatboostPredictionMultiModel(BaseRegressionModel):
|
||||
|
||||
cbr = CatBoostRegressor(
|
||||
allow_writing_files=False,
|
||||
gpu_ram_part=0.5,
|
||||
verbose=100,
|
||||
early_stopping_rounds=400,
|
||||
**self.model_training_parameters,
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user