Skip to content

Commit 6a86944

Browse files
committed
pca: avoid "AttributeError: can't set attribute" in ImprovedPCA
n_features_ attribute of decomposition.PCA is deprecated in favor of n_features_in_
1 parent 9c02c20 commit 6a86944

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Orange/projection/pca.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ def _fit_truncated(self, X, n_components, svd_solver):
201201
random_state=random_state,
202202
)
203203

204-
self.n_samples_, self.n_features_ = n_samples, n_features
204+
self.n_samples_ = n_samples
205205
self.components_ = V
206206
self.n_components_ = n_components
207207

0 commit comments

Comments
 (0)