Skip to content

Commit

Permalink
added reproducibility of pca
Browse files Browse the repository at this point in the history
  • Loading branch information
Ramana-Raja committed Mar 2, 2025
1 parent ba2e7d2 commit 72aeb41
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion aeon/clustering/feature_based/_r_cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,8 @@ def _predict(self, X, y=None) -> np.ndarray:

transformed_data = self._get_transformed_data(X=X, parameters=parameters)
X_std = self.scaler.fit_transform(transformed_data)
transformed_data_pca = self.pca.transform(X_std)
pca = self.pca
transformed_data_pca = pca.transform(X_std)

return self.estimator.predict(transformed_data_pca)

Expand Down

0 comments on commit 72aeb41

Please sign in to comment.