Skip to content

Commit

Permalink
Automatic pre-commit fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Ramana-Raja authored and github-actions[bot] committed Mar 2, 2025
1 parent 5b7cfe6 commit eb467a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aeon/clustering/feature_based/_r_cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ 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)
if (self.optimal_dimensions > max(1, min(X_std.shape[0], X_std.shape[1]))):
if self.optimal_dimensions > max(1, min(X_std.shape[0], X_std.shape[1])):
raise ValueError(
f"optimal dimensions={self.optimal_dimensions} must be between 0 and "
f"min(n_samples, n_features)={min(X_std.shape[0], X_std.shape[1])}"
Expand Down

0 comments on commit eb467a0

Please sign in to comment.