Skip to content

Commit 3a6254e

Browse files
Merge branch 'main' into dev/pytorch_testing_2
2 parents 9bb0b16 + a0ec356 commit 3a6254e

File tree

18 files changed

+46
-40
lines changed

18 files changed

+46
-40
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
repos:
1818
- repo: https://github.com/psf/black
19-
rev: 25.11.0
19+
rev: 25.12.0
2020
hooks:
2121
- id: black
2222
- repo: https://github.com/PyCQA/isort

deselected_tests.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,6 @@ deselected_tests:
3434
- neighbors/tests/test_neighbors.py::test_nan_euclidean_support[KNeighborsClassifier-params0]
3535
- neighbors/tests/test_neighbors.py::test_nan_euclidean_support[KNeighborsRegressor-params1]
3636
- neighbors/tests/test_neighbors.py::test_nan_euclidean_support[LocalOutlierFactor-params6]
37-
- neighbors/tests/test_neighbors.py::test_neighbor_classifiers_loocv[ball_tree-nn_model0]
38-
- neighbors/tests/test_neighbors.py::test_neighbor_classifiers_loocv[brute-nn_model0]
39-
- neighbors/tests/test_neighbors.py::test_neighbor_classifiers_loocv[kd_tree-nn_model0]
40-
- neighbors/tests/test_neighbors.py::test_neighbor_classifiers_loocv[auto-nn_model0]
4137
# sklearn 1.7 unsupported features
4238
- tests/test_common.py::test_estimators[LinearRegression()-check_sample_weight_equivalence_on_dense_data]
4339

doc/sources/distributed-mode.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Several :doc:`GPU-supported algorithms <oneapi-gpu>`
2626
also provide distributed, multi-GPU computing capabilities via integration with |mpi4py|. The prerequisites
2727
match those of GPU computing, along with an MPI backend of your choice (`Intel MPI recommended
2828
<https://www.intel.com/content/www/us/en/developer/tools/oneapi/mpi-library.html>`_, available
29-
via the ``impi_rt`` python/conda package) and the |mpi4py| python package. If using |sklearnex|
29+
via the ``impi_rt`` / ``impi-rt`` python/conda package) and the |mpi4py| python package. If using |sklearnex|
3030
`installed from sources <https://github.com/uxlfoundation/scikit-learn-intelex/blob/main/INSTALL.md#build-from-sources>`_,
3131
ensure that the spmd_backend is built.
3232

@@ -49,9 +49,9 @@ ensure that the spmd_backend is built.
4949
.. tab:: From Intel's pip Index
5050
::
5151

52-
pip install --index-url https://software.repos.intel.com/python/pypi mpi4py impi_rt
52+
pip install --index-url https://software.repos.intel.com/python/pypi mpi4py impi-rt
5353

54-
It also requires the MPI runtime executable (``mpiexec`` / ``mpirun``) to be from the same library that was used to compile |sklearnex| or from a compatible library. Intel's MPI runtime library is offered as a Python package ``impi_rt`` and will be installed together with the ``mpi4py`` package if executing the commands above, but otherwise, it can be installed separately from different distribution channels:
54+
It also requires the MPI runtime executable (``mpiexec`` / ``mpirun``) to be from the same library that was used to compile |sklearnex| or from a compatible library. Intel's MPI runtime library is offered as a Python package ``impi_rt`` (conda) / ``impi-rt`` (PyPI) and will be installed together with the ``mpi4py`` package if executing the commands above, but otherwise, it can be installed separately from different distribution channels:
5555

5656
.. tabs::
5757
.. tab:: From conda-forge
@@ -67,12 +67,12 @@ ensure that the spmd_backend is built.
6767
.. tab:: From PyPI
6868
::
6969

70-
pip install impi_rt
70+
pip install impi-rt
7171

7272
.. tab:: From Intel's pip Index
7373
::
7474

75-
pip install --index-url https://software.repos.intel.com/python/pypi impi_rt
75+
pip install --index-url https://software.repos.intel.com/python/pypi impi-rt
7676

7777

7878
Using other MPI backends that are not MPICH-compatible (e.g. OpenMPI) requires building |sklearnex| from source with that backend, and using an |mpi4py| built with that same backend.

doc/sources/distributed_daal4py.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ same algorithms to much larger problem sizes.
4545
the MPI runtime library managing the computations to be the same MPI backend library
4646
with which the |sklearnex| library was compiled, or to be ABI compatible with it.
4747
Distributions of the |sklearnex| in PyPI and conda-forge are both compiled with `Intel's MPI <https://www.intel.com/content/www/us/en/developer/tools/oneapi/mpi-library.html>`__
48-
as MPI backend (offered as Python package ``impi_rt`` in both PyPI and conda): ::
48+
as MPI backend (offered as Python package ``impi_rt`` in conda, or ``impi-rt`` in PyPI): ::
4949

5050
conda install -c conda-forge impi_rt mpi=*=impi
5151

@@ -77,7 +77,7 @@ same algorithms to much larger problem sizes.
7777
.. tab:: From Intel's pip Index
7878
::
7979

80-
pip install --index-url https://software.repos.intel.com/python/pypi mpi4py impi_rt
80+
pip install --index-url https://software.repos.intel.com/python/pypi mpi4py impi-rt
8181

8282

8383
Using distributed mode

onedal/covariance/incremental_covariance.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,10 @@
1818

1919
from daal4py.sklearn._utils import daal_check_version
2020

21-
from .._config import _get_config
2221
from .._device_offload import supports_queue
2322
from ..common._backend import bind_default_backend
2423
from ..datatypes import from_table, return_type_constructor, to_table
2524
from ..utils import _sycl_queue_manager as QM
26-
from ..utils._array_api import _get_sycl_namespace
27-
from ..utils.validation import _check_array
2825
from .covariance import BaseEmpiricalCovariance
2926

3027

onedal/datatypes/_dlpack.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
# limitations under the License.
1515
# ==============================================================================
1616

17-
from collections.abc import Iterable
18-
1917
import numpy as np
2018

2119
from onedal import _default_backend as backend

onedal/decomposition/incremental_pca.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,10 @@
1414
# limitations under the License.
1515
# ==============================================================================
1616

17-
import numpy as np
18-
1917
from onedal._device_offload import supports_queue
2018
from onedal.common._backend import bind_default_backend
2119
from onedal.utils import _sycl_queue_manager as QM
2220

23-
from .._config import _get_config
2421
from ..datatypes import from_table, return_type_constructor, to_table
2522
from .pca import PCA
2623

onedal/decomposition/pca.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,8 @@
1414
# limitations under the License.
1515
# ==============================================================================
1616

17-
import numbers
1817
from abc import ABCMeta
1918

20-
import numpy as np
21-
2219
from onedal._device_offload import supports_queue
2320
from onedal.common._backend import bind_default_backend
2421

onedal/neighbors/neighbors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ def predict_proba(self, X, queue=None):
472472
_y = self._y.reshape((-1, 1))
473473
classes_ = [self.classes_]
474474

475-
n_queries = _num_samples(X)
475+
n_queries = _num_samples(X if X is not None else self._fit_X)
476476

477477
weights = self._get_weights(neigh_dist, self.weights)
478478
if weights is None:

requirements-test.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
pytest==7.4.4 ; python_version <= '3.10'
2-
pytest==9.0.1 ; python_version >= '3.11'
2+
pytest==9.0.2 ; python_version >= '3.11'
33
pytest-json-report==1.5.0
44
pytest-cov==7.0.0
55
numpy>=1.19.5 ; python_version <= '3.9'
@@ -13,7 +13,7 @@ pandas==2.3.3 ; python_version >= '3.11'
1313
xgboost==2.1.4 ; python_version < '3.10'
1414
xgboost==3.1.2 ; python_version >= '3.10'
1515
lightgbm==4.6.0
16-
catboost==1.2.8
16+
catboost==1.2.8 ; python_version < '3.14' # TODO: Remove condition when catboost releases py3.14 package
1717
shap==0.49.1 ; python_version < '3.11'
1818
shap==0.50.0 ; python_version >= '3.11'
1919
treelite==4.6.1

0 commit comments

Comments
 (0)