mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
make shuffle false in constants
This commit is contained in:
parent
38aca8e908
commit
be48131185
|
@ -567,6 +567,7 @@ CONF_SCHEMA = {
|
||||||
"properties": {
|
"properties": {
|
||||||
"test_size": {"type": "number"},
|
"test_size": {"type": "number"},
|
||||||
"random_state": {"type": "integer"},
|
"random_state": {"type": "integer"},
|
||||||
|
"shuffle": {"type": "boolean", "default": False}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
"model_training_parameters": {
|
"model_training_parameters": {
|
||||||
|
|
|
@ -134,7 +134,8 @@ class FreqaiDataKitchen:
|
||||||
"""
|
"""
|
||||||
feat_dict = self.freqai_config["feature_parameters"]
|
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
|
weights: npt.ArrayLike
|
||||||
if feat_dict.get("weight_factor", 0) > 0:
|
if feat_dict.get("weight_factor", 0) > 0:
|
||||||
|
@ -154,7 +155,6 @@ class FreqaiDataKitchen:
|
||||||
filtered_dataframe[: filtered_dataframe.shape[0]],
|
filtered_dataframe[: filtered_dataframe.shape[0]],
|
||||||
labels,
|
labels,
|
||||||
weights,
|
weights,
|
||||||
shuffle=shuffle,
|
|
||||||
**self.config["freqai"]["data_split_parameters"],
|
**self.config["freqai"]["data_split_parameters"],
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user