Merge pull request #8835 from freqtrade/fix/pca-components

make sure default PCA behavior reduces parameter space size
This commit is contained in:
Matthias 2023-06-26 19:14:44 +02:00 committed by GitHub
commit a90b7c0bf5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)))))