BCG-X-Official / sklearndf

DataFrame support for scikit-learn.
https://bcg-x-official.github.io/sklearndf/
Apache License 2.0
63 stars 7 forks source link

FIX: use fitted attribute n_components_ to get PCA component count #236

Closed j-ittner closed 2 years ago

j-ittner commented 2 years ago

This PR introduces a dedicated DF wrapper for class sklearn.decomposition.PCA.

The wrapper uses attribute PCA.n_components_ to get the number of components, which may be determined by the estimator only during fitting.