diff --git a/docs/source/cuml-accel/faq.rst b/docs/source/cuml-accel/faq.rst index e789dfd0a8..811c9b96f7 100644 --- a/docs/source/cuml-accel/faq.rst +++ b/docs/source/cuml-accel/faq.rst @@ -68,6 +68,7 @@ the following estimators are mostly or entirely accelerated when run with * ``sklearn.neighbors.KNeighborsClassifier`` * ``sklearn.neighbors.KNeighborsRegressor`` * ``sklearn.neighbors.KernelDensity`` + * ``sklearn.preprocessing.StandardScaler`` * ``sklearn.preprocessing.TargetEncoder`` * ``sklearn.svm.SVC`` * ``sklearn.svm.SVR`` diff --git a/docs/source/cuml-accel/limitations.rst b/docs/source/cuml-accel/limitations.rst index 51846da105..07f1d47678 100644 --- a/docs/source/cuml-accel/limitations.rst +++ b/docs/source/cuml-accel/limitations.rst @@ -402,6 +402,16 @@ Additional notes: sklearn.preprocessing --------------------- +StandardScaler +^^^^^^^^^^^^^^ + +``StandardScaler`` will fall back to CPU in the following cases: + +- If ``partial_fit`` is called (incremental learning not supported on GPU). +- If ``sample_weight`` is provided (weighted statistics not supported on GPU). +- If ``X`` has object dtype, half precision (``float16``) dtype, or complex dtype (``complex64``, ``complex128``). +- If ``X`` is a sparse matrix with integer dtype or in a format other than CSR or CSC. + TargetEncoder ^^^^^^^^^^^^^ diff --git a/python/cuml/cuml/_thirdparty/sklearn/preprocessing/_data.py b/python/cuml/cuml/_thirdparty/sklearn/preprocessing/_data.py index 36f1b1eba2..f4eade3c2e 100644 --- a/python/cuml/cuml/_thirdparty/sklearn/preprocessing/_data.py +++ b/python/cuml/cuml/_thirdparty/sklearn/preprocessing/_data.py @@ -5,7 +5,7 @@ # SPDX-FileCopyrightText: Eric Martin # SPDX-FileCopyrightText: Giorgio Patrini # SPDX-FileCopyrightText: Eric Chang -# SPDX-FileCopyrightText: Copyright (c) 2020-2025, NVIDIA CORPORATION. +# SPDX-FileCopyrightText: Copyright (c) 2020-2026, NVIDIA CORPORATION. # SPDX-License-Identifier: Apache-2.0 AND BSD-3-Clause # Original authors from Sckit-Learn: @@ -40,6 +40,7 @@ SparseInputTagMixin, StatelessTagMixin, ) +from cuml.internals.interop import InteropMixin, to_cpu, to_gpu from ....common.array_descriptor import CumlArrayDescriptor from ....internals.array import CumlArray @@ -519,6 +520,7 @@ def minmax_scale(X, feature_range=(0, 1), *, axis=0, copy=True): class StandardScaler(TransformerMixin, BaseEstimator, + InteropMixin, AllowNaNTagMixin, SparseInputTagMixin): """Standardize features by removing the mean and scaling to unit variance @@ -658,6 +660,47 @@ def _get_param_names(cls): "copy" ] + # InteropMixin requirements + _cpu_class_path = "sklearn.preprocessing.StandardScaler" + + @classmethod + def _params_from_cpu(cls, model): + """Convert sklearn StandardScaler hyperparameters to cuML format.""" + return { + "copy": model.copy, + "with_mean": model.with_mean, + "with_std": model.with_std, + } + + def _params_to_cpu(self): + """Convert cuML StandardScaler hyperparameters to sklearn format.""" + return { + "copy": self.copy, + "with_mean": self.with_mean, + "with_std": self.with_std, + } + + def _attrs_from_cpu(self, model): + """Convert sklearn StandardScaler fitted attributes to cuML format.""" + attrs = { + "mean_": to_gpu(mean) if (mean := getattr(model, "mean_", None)) is not None else None, + "var_": to_gpu(var) if (var := getattr(model, "var_", None)) is not None else None, + "scale_": to_gpu(scale) if (scale := getattr(model, "scale_", None)) is not None else None, + "n_samples_seen_": to_gpu(nss) if (nss := getattr(model, "n_samples_seen_", None)) is not None else None, + } + return {**attrs, **super()._attrs_from_cpu(model)} + + def _attrs_to_cpu(self, model): + """Convert cuML StandardScaler fitted attributes to sklearn format.""" + + attrs = { + "mean_": to_cpu(mean) if (mean := getattr(self, "mean_", None)) is not None else None, + "var_": to_cpu(var) if (var := getattr(self, "var_", None)) is not None else None, + "scale_": to_cpu(scale) if (scale := getattr(self, "scale_", None)) is not None else None, + "n_samples_seen_": None if (nss := getattr(self, "n_samples_seen_", None)) is None else cpu_np.int64(nss) if cpu_np.isscalar(nss) else to_cpu(nss), + } + return {**attrs, **super()._attrs_to_cpu(model)} + @reflect(reset=True) def fit(self, X, y=None) -> "StandardScaler": """Compute the mean and std to be used for later scaling. diff --git a/python/cuml/cuml/_thirdparty/sklearn/utils/skl_dependencies.py b/python/cuml/cuml/_thirdparty/sklearn/utils/skl_dependencies.py index 61e62ffa60..6cc1371ccd 100644 --- a/python/cuml/cuml/_thirdparty/sklearn/utils/skl_dependencies.py +++ b/python/cuml/cuml/_thirdparty/sklearn/utils/skl_dependencies.py @@ -65,7 +65,7 @@ def _check_n_features(self, X, reset): ) if n_features != self.n_features_in_: raise ValueError( - 'X has {} features, but this {} is expecting {} features ' + 'X has {} features, but {} is expecting {} features ' 'as input.'.format(n_features, self.__class__.__name__, self.n_features_in_) ) diff --git a/python/cuml/cuml/accel/_wrappers/sklearn/preprocessing.py b/python/cuml/cuml/accel/_wrappers/sklearn/preprocessing.py index 7f4b88cc46..b0f143b994 100644 --- a/python/cuml/cuml/accel/_wrappers/sklearn/preprocessing.py +++ b/python/cuml/cuml/accel/_wrappers/sklearn/preprocessing.py @@ -3,13 +3,72 @@ # SPDX-License-Identifier: Apache-2.0 # +import cupyx.scipy.sparse as cupy_sparse import numpy as np +from scipy import sparse as sp_sparse import cuml.preprocessing from cuml.accel.estimator_proxy import ProxyBase from cuml.internals.interop import UnsupportedOnGPU -__all__ = ("TargetEncoder",) +__all__ = ("StandardScaler", "TargetEncoder") + + +def _check_standardscaler_unsupported_inputs(X, **kwargs): + """Check if inputs are supported by cuML's StandardScaler on GPU. + + Raises UnsupportedOnGPU for unsupported cases to trigger CPU fallback. + """ + if kwargs.get("sample_weight") is not None: + raise UnsupportedOnGPU("sample_weight is not supported") + + # Reject complex, object, and float16 dtypes + if hasattr(X, "dtype"): + if np.issubdtype(X.dtype, np.complexfloating): + raise UnsupportedOnGPU("complex dtype is not supported") + if X.dtype == np.object_: + raise UnsupportedOnGPU("object dtype is not supported") + if X.dtype == np.float16: + raise UnsupportedOnGPU("float16 dtype is not supported") + + # Check for sparse matrices with unsupported properties + if sp_sparse.issparse(X): + if np.issubdtype(X.dtype, np.integer): + raise UnsupportedOnGPU( + "sparse matrix with integer dtype is not supported" + ) + # cuML's StandardScaler algorithm only supports CSR/CSC formats. + if X.format not in ("csr", "csc"): + raise UnsupportedOnGPU( + f"sparse matrix format '{X.format}' is not supported" + ) + elif cupy_sparse.issparse(X): + if np.issubdtype(X.dtype, np.integer): + raise UnsupportedOnGPU( + "sparse matrix with integer dtype is not supported" + ) + # cuML's StandardScaler algorithm only supports CSR/CSC formats. + if X.format not in ("csr", "csc"): + raise UnsupportedOnGPU( + f"sparse matrix format '{X.format}' is not supported" + ) + + +class StandardScaler(ProxyBase): + _gpu_class = cuml.preprocessing.StandardScaler + + def _gpu_fit(self, X, y=None, sample_weight=None): + kwargs = {"sample_weight": sample_weight} + _check_standardscaler_unsupported_inputs(X, **kwargs) + return self._gpu.fit(X, y) + + def _gpu_fit_transform(self, X, y=None, **fit_params): + _check_standardscaler_unsupported_inputs(X, **fit_params) + return self._gpu.fit_transform(X, y, **fit_params) + + def _gpu_partial_fit(self, X, y=None, sample_weight=None): + """partial_fit not supported on GPU - always fall back to CPU.""" + raise UnsupportedOnGPU("partial_fit not supported on GPU") def _check_unsupported_inputs(X, y, cpu_model): diff --git a/python/cuml/cuml/accel/estimator_proxy.py b/python/cuml/cuml/accel/estimator_proxy.py index ca5a9e7d36..752aa92aeb 100644 --- a/python/cuml/cuml/accel/estimator_proxy.py +++ b/python/cuml/cuml/accel/estimator_proxy.py @@ -1,5 +1,5 @@ # -# SPDX-FileCopyrightText: Copyright (c) 2024-2025, NVIDIA CORPORATION. +# SPDX-FileCopyrightText: Copyright (c) 2024-2026, NVIDIA CORPORATION. # SPDX-License-Identifier: Apache-2.0 from __future__ import annotations @@ -8,7 +8,11 @@ import sklearn from packaging.version import Version -from sklearn.base import BaseEstimator, ClassNamePrefixFeaturesOutMixin +from sklearn.base import ( + BaseEstimator, + ClassNamePrefixFeaturesOutMixin, + OneToOneFeatureMixin, +) from sklearn.utils._set_output import _wrap_data_with_container from cuml.accel import profilers @@ -335,12 +339,16 @@ def _gpu_set_output(self, *, transform=None): def _gpu_get_feature_names_out(self, input_features=None): # In the common case `get_feature_names_out` doesn't require fitted attributes - # on the CPU. Here we detect and special case a common mixin, falling back to + # on the CPU. Here we detect and special case common mixins, falling back to # CPU when necessary. This helps avoid unnecessary device -> host transfers. cpu_method = self._cpu_class.get_feature_names_out if cpu_method is ClassNamePrefixFeaturesOutMixin.get_feature_names_out: # Can run cpu method directly on GPU instance, it only references `_n_features_out` return cpu_method(self._gpu, input_features=input_features) + if cpu_method is OneToOneFeatureMixin.get_feature_names_out: + # Uses n_features_in_ (and optionally feature_names_in_) on the estimator. + # cuML models set n_features_in_ on fit; feature_names_in_ is optional. + return cpu_method(self._gpu, input_features=input_features) # Fallback to CPU raise UnsupportedOnGPU diff --git a/python/cuml/cuml/thirdparty_adapters/adapters.py b/python/cuml/cuml/thirdparty_adapters/adapters.py index 420b0b5e30..683158b526 100644 --- a/python/cuml/cuml/thirdparty_adapters/adapters.py +++ b/python/cuml/cuml/thirdparty_adapters/adapters.py @@ -1,5 +1,5 @@ # -# SPDX-FileCopyrightText: Copyright (c) 2020-2025, NVIDIA CORPORATION. +# SPDX-FileCopyrightText: Copyright (c) 2020-2026, NVIDIA CORPORATION. # SPDX-License-Identifier: Apache-2.0 # import cudf @@ -9,6 +9,7 @@ import pandas as pd from scipy import sparse as cpu_sparse +from cuml.accel import enabled as cuml_accel_enabled from cuml.internals.input_utils import input_to_cupy_array numeric_types = [ @@ -227,6 +228,31 @@ def check_array( array_converted : object The converted and validated array. """ + # Convert list-like inputs to numpy arrays early for compatibility with cuml.accel + # This ensures downstream functions can safely access .dtype and other array attributes + if ( + cuml_accel_enabled() + and not isinstance( + array, + ( + np.ndarray, + pd.DataFrame, + cudf.DataFrame, + pd.Series, + cudf.Series, + cp.ndarray, + ), + ) + and not (cpu_sparse.issparse(array) or gpu_sparse.issparse(array)) + and not hasattr(array, "__cuda_array_interface__") + ): + # Check if it's array-like (just like scikit-learn's check_array) + if ( + hasattr(array, "__len__") + or hasattr(array, "shape") + or hasattr(array, "__array__") + ): + array = np.asarray(array) if dtype == "numeric": dtype = numeric_types @@ -250,7 +276,18 @@ def check_array( hasshape = hasattr(array, "shape") if ensure_2d and hasshape: if len(array.shape) != 2: - raise ValueError("Not 2D") + if len(array.shape) == 1: + raise ValueError( + f"Expected 2D array, got 1D array instead:\narray={array!r}.\n" + "Reshape your data either using array.reshape(-1, 1) if " + "your data has a single feature or array.reshape(1, -1) " + "if it contains a single sample." + ) + else: + raise ValueError( + f"Expected 2D array, got {len(array.shape)}D array instead:\n" + f"array shape: {array.shape}.\n" + ) if not allow_nd and hasshape: if len(array.shape) > 2: diff --git a/python/cuml/cuml_accel_tests/test_basic_estimators.py b/python/cuml/cuml_accel_tests/test_basic_estimators.py index 15607ee850..97079802d0 100644 --- a/python/cuml/cuml_accel_tests/test_basic_estimators.py +++ b/python/cuml/cuml_accel_tests/test_basic_estimators.py @@ -17,7 +17,7 @@ KNeighborsRegressor, NearestNeighbors, ) -from sklearn.preprocessing import TargetEncoder +from sklearn.preprocessing import StandardScaler, TargetEncoder def test_kmeans(): @@ -44,6 +44,34 @@ def test_truncated_svd(): svd.transform(X) +def test_standard_scaler(): + import numpy as np + + X, _ = make_blobs(n_samples=100, centers=3, random_state=42) + scaler = StandardScaler().fit(X) + + # Check fitted attributes exist + assert hasattr(scaler, "mean_") + assert hasattr(scaler, "var_") + assert hasattr(scaler, "scale_") + assert scaler.mean_.shape == (X.shape[1],) + assert scaler.var_.shape == (X.shape[1],) + assert scaler.scale_.shape == (X.shape[1],) + + # Transform and check shape + X_transformed = scaler.transform(X) + assert X_transformed.shape == X.shape + + # Check that transformed data has mean ≈ 0 and std ≈ 1 + assert np.allclose(X_transformed.mean(axis=0), 0, atol=1e-7) + assert np.allclose(X_transformed.std(axis=0), 1, atol=1e-7) + + # Check inverse transform + X_inverse = scaler.inverse_transform(X_transformed) + assert X_inverse.shape == X.shape + assert np.allclose(X_inverse, X, atol=1e-6) + + def test_linear_regression(): X, y = make_regression( n_samples=100, n_features=20, noise=0.1, random_state=42 diff --git a/python/cuml/cuml_accel_tests/upstream/scikit-learn/xfail-list.yaml b/python/cuml/cuml_accel_tests/upstream/scikit-learn/xfail-list.yaml index 65833b8b55..c16eae715c 100644 --- a/python/cuml/cuml_accel_tests/upstream/scikit-learn/xfail-list.yaml +++ b/python/cuml/cuml_accel_tests/upstream/scikit-learn/xfail-list.yaml @@ -22,6 +22,10 @@ - "sklearn.metrics._plot.tests.test_roc_curve_display::test_roc_curve_from_cv_results_legend_label[None-curve_kwargs1]" - "sklearn.metrics._plot.tests.test_roc_curve_display::test_roc_curve_from_cv_results_legend_label[single-None]" - "sklearn.metrics._plot.tests.test_roc_curve_display::test_roc_curve_from_cv_results_legend_label[single-curve_kwargs1]" +- reason: Feature name preservation and metadata handling in cuml.accel StandardScaler needs comprehensive fixes + marker: cuml_accel_bugs + tests: + - "sklearn.tests.test_pipeline::test_feature_union_feature_names_in_" - reason: Search CV sample weight equivalence differs with cuml.accel in sklearn 1.7.2 marker: cuml_accel_bugs condition: scikit-learn>=1.7.2 @@ -862,6 +866,15 @@ - "sklearn.preprocessing.tests.test_target_encoder::test_multiple_features_quick[continuous-1.0-True]" - "sklearn.preprocessing.tests.test_target_encoder::test_multiple_features_quick[continuous-auto-False]" - "sklearn.preprocessing.tests.test_target_encoder::test_multiple_features_quick[continuous-auto-True]" +- reason: Feature name preservation and metadata handling in cuml.accel StandardScaler needs comprehensive fixes + marker: cuml_accel_bugs_feature_names + tests: + - "sklearn.compose.tests.test_column_transformer::test_column_transformer_column_renaming[pandas]" +- reason: Feature name preservation and metadata handling in cuml.accel StandardScaler needs comprehensive fixes + marker: cuml_accel_bugs_sklearn16plus + condition: scikit-learn>=1.6 + tests: + - "sklearn.utils.tests.test_estimator_checks::test_estimator_with_set_output" - reason: cuml raises a different error if X doesn't have expected n features marker: cuml_accel_check_n_features_in condition: scikit-learn<1.6 @@ -915,6 +928,8 @@ - reason: cuml doesn't set `feature_names_in_` properly marker: cuml_accel_feature_names_in tests: + - "sklearn.compose.tests.test_column_transformer::test_column_transformer_error_with_duplicated_columns[pandas]" + - "sklearn.preprocessing.tests.test_data::test_one_to_one_features_pandas[StandardScaler]" - "sklearn.tests.test_common::test_pandas_column_name_consistency[DBSCAN()]" - "sklearn.tests.test_common::test_pandas_column_name_consistency[ElasticNet()]" - "sklearn.tests.test_common::test_pandas_column_name_consistency[KMeans()]" @@ -933,8 +948,10 @@ - "sklearn.tests.test_common::test_pandas_column_name_consistency[SVC()]" - "sklearn.tests.test_common::test_pandas_column_name_consistency[SVR()]" - "sklearn.tests.test_common::test_pandas_column_name_consistency[SpectralEmbedding()]" + - "sklearn.tests.test_common::test_pandas_column_name_consistency[StandardScaler()]" - "sklearn.tests.test_common::test_pandas_column_name_consistency[TSNE()]" - "sklearn.tests.test_common::test_pandas_column_name_consistency[TruncatedSVD()]" + - "sklearn.tests.test_pipeline::test_feature_union_passthrough_get_feature_names_out_false_errors" - reason: Test is flaky with cuml.accel marker: cuml_accel_flaky condition: scikit-learn<1.7 @@ -1327,6 +1344,7 @@ - "sklearn.tests.test_common::test_estimators[Ridge()-check_supervised_y_no_nan]" - "sklearn.tests.test_common::test_estimators[SpectralEmbedding()-check_dtype_object]" - "sklearn.tests.test_common::test_estimators[SpectralEmbedding()-check_estimators_nan_inf]" + - "sklearn.tests.test_common::test_estimators[StandardScaler()-check_transformer_data_not_an_array]" - "sklearn.tests.test_common::test_estimators[TSNE()-check_complex_data]" - "sklearn.tests.test_common::test_estimators[TSNE()-check_dtype_object]" - "sklearn.tests.test_common::test_estimators[TSNE()-check_estimators_empty_data_messages]" @@ -1372,6 +1390,92 @@ - "sklearn.tests.test_common::test_estimators[TSNE()-check_fit2d_predict1d]" - "sklearn.tests.test_common::test_estimators[TSNE()-check_methods_sample_order_invariance]" - "sklearn.tests.test_common::test_estimators[TSNE()-check_methods_subset_invariance]" +- reason: In-place modification (copy=False) not supported with GPU arrays + marker: gpu_limitations + tests: + - "sklearn.preprocessing.tests.test_data::test_scaler_2d_arrays" +- reason: cuML StandardScaler lacks numerical stability handling for near-constant features + marker: numerical_stability + tests: + - "sklearn.preprocessing.tests.test_data::test_standard_scaler_near_constant_features[None-float32-1e-10-10000]" + - "sklearn.preprocessing.tests.test_data::test_standard_scaler_near_constant_features[None-float64-1-10000]" + - "sklearn.preprocessing.tests.test_data::test_standard_scaler_near_constant_features[None-float64-1-100]" + - "sklearn.preprocessing.tests.test_data::test_standard_scaler_near_constant_features[None-float64-1-10]" + - "sklearn.preprocessing.tests.test_data::test_standard_scaler_near_constant_features[None-float64-10000000000.0-10000]" + - "sklearn.preprocessing.tests.test_data::test_standard_scaler_near_constant_features[None-float64-10000000000.0-100]" + - "sklearn.preprocessing.tests.test_data::test_standard_scaler_near_constant_features[None-float64-10000000000.0-10]" + - "sklearn.preprocessing.tests.test_data::test_standard_scaler_near_constant_features[None-float64-1e-10-10000]" + - "sklearn.preprocessing.tests.test_data::test_standard_scaler_near_constant_features[None-float64-1e-10-100]" + - "sklearn.preprocessing.tests.test_data::test_standard_scaler_near_constant_features[None-float64-1e-10-10]" + - "sklearn.preprocessing.tests.test_data::test_standard_scaler_near_constant_features[csc_array-float32-10000000000.0-10000]" + - "sklearn.preprocessing.tests.test_data::test_standard_scaler_near_constant_features[csc_array-float32-10000000000.0-100]" + - "sklearn.preprocessing.tests.test_data::test_standard_scaler_near_constant_features[csc_array-float32-10000000000.0-10]" + - "sklearn.preprocessing.tests.test_data::test_standard_scaler_near_constant_features[csc_array-float32-1e-10-10000]" + - "sklearn.preprocessing.tests.test_data::test_standard_scaler_near_constant_features[csc_array-float32-1e-10-100]" + - "sklearn.preprocessing.tests.test_data::test_standard_scaler_near_constant_features[csc_array-float32-1e-10-10]" + - "sklearn.preprocessing.tests.test_data::test_standard_scaler_near_constant_features[csc_array-float64-1-10000]" + - "sklearn.preprocessing.tests.test_data::test_standard_scaler_near_constant_features[csc_array-float64-1-100]" + - "sklearn.preprocessing.tests.test_data::test_standard_scaler_near_constant_features[csc_array-float64-1-10]" + - "sklearn.preprocessing.tests.test_data::test_standard_scaler_near_constant_features[csc_array-float64-10000000000.0-10000]" + - "sklearn.preprocessing.tests.test_data::test_standard_scaler_near_constant_features[csc_array-float64-10000000000.0-100]" + - "sklearn.preprocessing.tests.test_data::test_standard_scaler_near_constant_features[csc_array-float64-10000000000.0-10]" + - "sklearn.preprocessing.tests.test_data::test_standard_scaler_near_constant_features[csc_array-float64-1e-10-10000]" + - "sklearn.preprocessing.tests.test_data::test_standard_scaler_near_constant_features[csc_array-float64-1e-10-100]" + - "sklearn.preprocessing.tests.test_data::test_standard_scaler_near_constant_features[csc_array-float64-1e-10-10]" + - "sklearn.preprocessing.tests.test_data::test_standard_scaler_near_constant_features[csc_matrix-float32-10000000000.0-10000]" + - "sklearn.preprocessing.tests.test_data::test_standard_scaler_near_constant_features[csc_matrix-float32-10000000000.0-100]" + - "sklearn.preprocessing.tests.test_data::test_standard_scaler_near_constant_features[csc_matrix-float32-10000000000.0-10]" + - "sklearn.preprocessing.tests.test_data::test_standard_scaler_near_constant_features[csc_matrix-float32-1e-10-10000]" + - "sklearn.preprocessing.tests.test_data::test_standard_scaler_near_constant_features[csc_matrix-float32-1e-10-100]" + - "sklearn.preprocessing.tests.test_data::test_standard_scaler_near_constant_features[csc_matrix-float32-1e-10-10]" + - "sklearn.preprocessing.tests.test_data::test_standard_scaler_near_constant_features[csc_matrix-float64-1-10000]" + - "sklearn.preprocessing.tests.test_data::test_standard_scaler_near_constant_features[csc_matrix-float64-1-100]" + - "sklearn.preprocessing.tests.test_data::test_standard_scaler_near_constant_features[csc_matrix-float64-1-10]" + - "sklearn.preprocessing.tests.test_data::test_standard_scaler_near_constant_features[csc_matrix-float64-10000000000.0-10000]" + - "sklearn.preprocessing.tests.test_data::test_standard_scaler_near_constant_features[csc_matrix-float64-10000000000.0-100]" + - "sklearn.preprocessing.tests.test_data::test_standard_scaler_near_constant_features[csc_matrix-float64-10000000000.0-10]" + - "sklearn.preprocessing.tests.test_data::test_standard_scaler_near_constant_features[csc_matrix-float64-1e-10-10000]" + - "sklearn.preprocessing.tests.test_data::test_standard_scaler_near_constant_features[csc_matrix-float64-1e-10-100]" + - "sklearn.preprocessing.tests.test_data::test_standard_scaler_near_constant_features[csc_matrix-float64-1e-10-10]" + - "sklearn.preprocessing.tests.test_data::test_standard_scaler_near_constant_features[csr_array-float32-10000000000.0-10000]" + - "sklearn.preprocessing.tests.test_data::test_standard_scaler_near_constant_features[csr_array-float32-10000000000.0-100]" + - "sklearn.preprocessing.tests.test_data::test_standard_scaler_near_constant_features[csr_array-float32-10000000000.0-10]" + - "sklearn.preprocessing.tests.test_data::test_standard_scaler_near_constant_features[csr_array-float32-1e-10-10000]" + - "sklearn.preprocessing.tests.test_data::test_standard_scaler_near_constant_features[csr_array-float32-1e-10-100]" + - "sklearn.preprocessing.tests.test_data::test_standard_scaler_near_constant_features[csr_array-float32-1e-10-10]" + - "sklearn.preprocessing.tests.test_data::test_standard_scaler_near_constant_features[csr_array-float64-1-10000]" + - "sklearn.preprocessing.tests.test_data::test_standard_scaler_near_constant_features[csr_array-float64-1-100]" + - "sklearn.preprocessing.tests.test_data::test_standard_scaler_near_constant_features[csr_array-float64-1-10]" + - "sklearn.preprocessing.tests.test_data::test_standard_scaler_near_constant_features[csr_array-float64-10000000000.0-10000]" + - "sklearn.preprocessing.tests.test_data::test_standard_scaler_near_constant_features[csr_array-float64-10000000000.0-100]" + - "sklearn.preprocessing.tests.test_data::test_standard_scaler_near_constant_features[csr_array-float64-10000000000.0-10]" + - "sklearn.preprocessing.tests.test_data::test_standard_scaler_near_constant_features[csr_array-float64-1e-10-10000]" + - "sklearn.preprocessing.tests.test_data::test_standard_scaler_near_constant_features[csr_array-float64-1e-10-100]" + - "sklearn.preprocessing.tests.test_data::test_standard_scaler_near_constant_features[csr_array-float64-1e-10-10]" + - "sklearn.preprocessing.tests.test_data::test_standard_scaler_near_constant_features[csr_matrix-float32-10000000000.0-10000]" + - "sklearn.preprocessing.tests.test_data::test_standard_scaler_near_constant_features[csr_matrix-float32-10000000000.0-100]" + - "sklearn.preprocessing.tests.test_data::test_standard_scaler_near_constant_features[csr_matrix-float32-10000000000.0-10]" + - "sklearn.preprocessing.tests.test_data::test_standard_scaler_near_constant_features[csr_matrix-float32-1e-10-10000]" + - "sklearn.preprocessing.tests.test_data::test_standard_scaler_near_constant_features[csr_matrix-float32-1e-10-100]" + - "sklearn.preprocessing.tests.test_data::test_standard_scaler_near_constant_features[csr_matrix-float32-1e-10-10]" + - "sklearn.preprocessing.tests.test_data::test_standard_scaler_near_constant_features[csr_matrix-float64-1-10000]" + - "sklearn.preprocessing.tests.test_data::test_standard_scaler_near_constant_features[csr_matrix-float64-1-100]" + - "sklearn.preprocessing.tests.test_data::test_standard_scaler_near_constant_features[csr_matrix-float64-1-10]" + - "sklearn.preprocessing.tests.test_data::test_standard_scaler_near_constant_features[csr_matrix-float64-10000000000.0-10000]" + - "sklearn.preprocessing.tests.test_data::test_standard_scaler_near_constant_features[csr_matrix-float64-10000000000.0-100]" + - "sklearn.preprocessing.tests.test_data::test_standard_scaler_near_constant_features[csr_matrix-float64-10000000000.0-10]" + - "sklearn.preprocessing.tests.test_data::test_standard_scaler_near_constant_features[csr_matrix-float64-1e-10-10000]" + - "sklearn.preprocessing.tests.test_data::test_standard_scaler_near_constant_features[csr_matrix-float64-1e-10-100]" + - "sklearn.preprocessing.tests.test_data::test_standard_scaler_near_constant_features[csr_matrix-float64-1e-10-10]" +- reason: Pandas NA support issues with StandardScaler + marker: pandas_na + tests: + - "sklearn.preprocessing.tests.test_common::test_missing_value_pandas_na_support[est2-scale]" + - "sklearn.preprocessing.tests.test_common::test_missing_value_pandas_na_support[est3-scale]" +- reason: Config dispatch with parallel processing not working correctly with StandardScaler proxy + marker: parallel_config + tests: + - "sklearn.utils.tests.test_parallel::test_dispatch_config_parallel[2]" - reason: Calibration temperature scaling differs with cuml.accel in sklearn 1.8 condition: scikit-learn>=1.8 tests: