mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-09-20 17:41:12 +00:00
Merge pull request #8835 from freqtrade/fix/pca-components
make sure default PCA behavior reduces parameter space size
This commit is contained in:
commit
a90b7c0bf5
|
@ -515,7 +515,7 @@ class IFreqaiModel(ABC):
|
|||
]
|
||||
|
||||
if ft_params.get("principal_component_analysis", False):
|
||||
pipe_steps.append(('pca', ds.PCA()))
|
||||
pipe_steps.append(('pca', ds.PCA(n_components=0.999)))
|
||||
pipe_steps.append(('post-pca-scaler',
|
||||
SKLearnWrapper(MinMaxScaler(feature_range=(-1, 1)))))
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user