make shuffle false in constants

This commit is contained in:
robcaulk 2022-09-30 00:33:08 +02:00
parent 38aca8e908
commit be48131185
2 changed files with 3 additions and 2 deletions

View File

@ -567,6 +567,7 @@ CONF_SCHEMA = {
"properties": {
"test_size": {"type": "number"},
"random_state": {"type": "integer"},
"shuffle": {"type": "boolean", "default": False}
},
},
"model_training_parameters": {

View File

@ -134,7 +134,8 @@ class FreqaiDataKitchen:
"""
feat_dict = self.freqai_config["feature_parameters"]
shuffle = self.freqai_config.get('data_split_parameters', {}).get('shuffle', False)
if 'shuffle' not in self.freqai_config['data_split_parameters']:
self.freqai_config["data_split_parameters"].update({'shuffle': False})
weights: npt.ArrayLike
if feat_dict.get("weight_factor", 0) > 0:
@ -154,7 +155,6 @@ class FreqaiDataKitchen:
filtered_dataframe[: filtered_dataframe.shape[0]],
labels,
weights,
shuffle=shuffle,
**self.config["freqai"]["data_split_parameters"],
)
else: