scikit-learn-intelex 2023.2.1__py38-none-win_amd64.whl → 2024.0.1__py38-none-win_amd64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of scikit-learn-intelex might be problematic. Click here for more details.
- {scikit_learn_intelex-2023.2.1.data → scikit_learn_intelex-2024.0.1.data}/data/Lib/site-packages/sklearnex/__init__.py +2 -2
- {scikit_learn_intelex-2023.2.1.data → scikit_learn_intelex-2024.0.1.data}/data/Lib/site-packages/sklearnex/__main__.py +16 -12
- {scikit_learn_intelex-2023.2.1.data → scikit_learn_intelex-2024.0.1.data}/data/Lib/site-packages/sklearnex/_config.py +2 -2
- {scikit_learn_intelex-2023.2.1.data → scikit_learn_intelex-2024.0.1.data}/data/Lib/site-packages/sklearnex/_device_offload.py +90 -56
- scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/_utils.py +95 -0
- {scikit_learn_intelex-2023.2.1.data → scikit_learn_intelex-2024.0.1.data}/data/Lib/site-packages/sklearnex/basic_statistics/__init__.py +3 -3
- {scikit_learn_intelex-2023.2.1.data → scikit_learn_intelex-2024.0.1.data}/data/Lib/site-packages/sklearnex/basic_statistics/basic_statistics.py +2 -2
- {scikit_learn_intelex-2023.2.1.data → scikit_learn_intelex-2024.0.1.data}/data/Lib/site-packages/sklearnex/cluster/__init__.py +4 -4
- scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/cluster/dbscan.py +187 -0
- {scikit_learn_intelex-2023.2.1.data → scikit_learn_intelex-2024.0.1.data}/data/Lib/site-packages/sklearnex/cluster/k_means.py +2 -2
- {scikit_learn_intelex-2023.2.1.data → scikit_learn_intelex-2024.0.1.data}/data/Lib/site-packages/sklearnex/cluster/tests/test_dbscan.py +12 -6
- {scikit_learn_intelex-2023.2.1.data → scikit_learn_intelex-2024.0.1.data}/data/Lib/site-packages/sklearnex/cluster/tests/test_kmeans.py +5 -5
- {scikit_learn_intelex-2023.2.1.data → scikit_learn_intelex-2024.0.1.data}/data/Lib/site-packages/sklearnex/decomposition/__init__.py +3 -3
- {scikit_learn_intelex-2023.2.1.data → scikit_learn_intelex-2024.0.1.data}/data/Lib/site-packages/sklearnex/decomposition/pca.py +2 -2
- {scikit_learn_intelex-2023.2.1.data → scikit_learn_intelex-2024.0.1.data}/data/Lib/site-packages/sklearnex/decomposition/tests/test_pca.py +5 -4
- {scikit_learn_intelex-2023.2.1.data → scikit_learn_intelex-2024.0.1.data}/data/Lib/site-packages/sklearnex/dispatcher.py +102 -72
- {scikit_learn_intelex-2023.2.1.data/data/Lib/site-packages/sklearnex/preview → scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex}/ensemble/__init__.py +12 -4
- scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/ensemble/_forest.py +1947 -0
- scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/ensemble/tests/test_forest.py +118 -0
- {scikit_learn_intelex-2023.2.1.data → scikit_learn_intelex-2024.0.1.data}/data/Lib/site-packages/sklearnex/glob/__main__.py +31 -16
- {scikit_learn_intelex-2023.2.1.data → scikit_learn_intelex-2024.0.1.data}/data/Lib/site-packages/sklearnex/glob/dispatcher.py +21 -14
- {scikit_learn_intelex-2023.2.1.data → scikit_learn_intelex-2024.0.1.data}/data/Lib/site-packages/sklearnex/linear_model/__init__.py +10 -10
- {scikit_learn_intelex-2023.2.1.data → scikit_learn_intelex-2024.0.1.data}/data/Lib/site-packages/sklearnex/linear_model/coordinate_descent.py +2 -2
- {scikit_learn_intelex-2023.2.1.data/data/Lib/site-packages/sklearnex/preview → scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex}/linear_model/linear.py +173 -83
- {scikit_learn_intelex-2023.2.1.data → scikit_learn_intelex-2024.0.1.data}/data/Lib/site-packages/sklearnex/linear_model/logistic_path.py +3 -3
- {scikit_learn_intelex-2023.2.1.data → scikit_learn_intelex-2024.0.1.data}/data/Lib/site-packages/sklearnex/linear_model/ridge.py +2 -2
- {scikit_learn_intelex-2023.2.1.data → scikit_learn_intelex-2024.0.1.data}/data/Lib/site-packages/sklearnex/linear_model/tests/test_linear.py +23 -7
- {scikit_learn_intelex-2023.2.1.data → scikit_learn_intelex-2024.0.1.data}/data/Lib/site-packages/sklearnex/linear_model/tests/test_logreg.py +4 -3
- {scikit_learn_intelex-2023.2.1.data → scikit_learn_intelex-2024.0.1.data}/data/Lib/site-packages/sklearnex/manifold/__init__.py +3 -3
- {scikit_learn_intelex-2023.2.1.data → scikit_learn_intelex-2024.0.1.data}/data/Lib/site-packages/sklearnex/manifold/t_sne.py +2 -2
- {scikit_learn_intelex-2023.2.1.data → scikit_learn_intelex-2024.0.1.data}/data/Lib/site-packages/sklearnex/manifold/tests/test_tsne.py +4 -3
- {scikit_learn_intelex-2023.2.1.data → scikit_learn_intelex-2024.0.1.data}/data/Lib/site-packages/sklearnex/metrics/__init__.py +5 -5
- {scikit_learn_intelex-2023.2.1.data → scikit_learn_intelex-2024.0.1.data}/data/Lib/site-packages/sklearnex/metrics/pairwise.py +2 -2
- {scikit_learn_intelex-2023.2.1.data → scikit_learn_intelex-2024.0.1.data}/data/Lib/site-packages/sklearnex/metrics/ranking.py +2 -2
- {scikit_learn_intelex-2023.2.1.data → scikit_learn_intelex-2024.0.1.data}/data/Lib/site-packages/sklearnex/metrics/tests/test_metrics.py +8 -6
- {scikit_learn_intelex-2023.2.1.data → scikit_learn_intelex-2024.0.1.data}/data/Lib/site-packages/sklearnex/model_selection/__init__.py +3 -3
- {scikit_learn_intelex-2023.2.1.data → scikit_learn_intelex-2024.0.1.data}/data/Lib/site-packages/sklearnex/model_selection/split.py +2 -2
- {scikit_learn_intelex-2023.2.1.data → scikit_learn_intelex-2024.0.1.data}/data/Lib/site-packages/sklearnex/model_selection/tests/test_model_selection.py +6 -3
- {scikit_learn_intelex-2023.2.1.data → scikit_learn_intelex-2024.0.1.data}/data/Lib/site-packages/sklearnex/neighbors/__init__.py +9 -5
- {scikit_learn_intelex-2023.2.1.data → scikit_learn_intelex-2024.0.1.data}/data/Lib/site-packages/sklearnex/neighbors/common.py +100 -77
- scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/neighbors/knn_classification.py +331 -0
- scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/neighbors/knn_regression.py +307 -0
- {scikit_learn_intelex-2023.2.1.data → scikit_learn_intelex-2024.0.1.data}/data/Lib/site-packages/sklearnex/neighbors/knn_unsupervised.py +116 -58
- {scikit_learn_intelex-2023.2.1.data → scikit_learn_intelex-2024.0.1.data}/data/Lib/site-packages/sklearnex/neighbors/lof.py +118 -56
- scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/neighbors/tests/test_neighbors.py +85 -0
- {scikit_learn_intelex-2023.2.1.data/data/Lib/site-packages/sklearnex/preview/decomposition → scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/preview}/__init__.py +18 -20
- {scikit_learn_intelex-2023.2.1.data → scikit_learn_intelex-2024.0.1.data}/data/Lib/site-packages/sklearnex/preview/cluster/__init__.py +3 -3
- {scikit_learn_intelex-2023.2.1.data → scikit_learn_intelex-2024.0.1.data}/data/Lib/site-packages/sklearnex/preview/cluster/_common.py +7 -7
- {scikit_learn_intelex-2023.2.1.data → scikit_learn_intelex-2024.0.1.data}/data/Lib/site-packages/sklearnex/preview/cluster/k_means.py +104 -73
- scikit_learn_intelex-2023.2.1.data/data/Lib/site-packages/sklearnex/linear_model/linear.py → scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/preview/decomposition/__init__.py +4 -1
- {scikit_learn_intelex-2023.2.1.data → scikit_learn_intelex-2024.0.1.data}/data/Lib/site-packages/sklearnex/preview/decomposition/pca.py +128 -100
- scikit_learn_intelex-2023.2.1.data/data/Lib/site-packages/sklearnex/preview/linear_model/tests/test_preview_linear.py → scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/preview/decomposition/tests/test_preview_pca.py +18 -16
- {scikit_learn_intelex-2023.2.1.data/data/Lib/site-packages/sklearnex/preview/linear_model → scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/spmd}/__init__.py +24 -22
- {scikit_learn_intelex-2023.2.1.data → scikit_learn_intelex-2024.0.1.data}/data/Lib/site-packages/sklearnex/spmd/basic_statistics/__init__.py +3 -3
- {scikit_learn_intelex-2023.2.1.data → scikit_learn_intelex-2024.0.1.data}/data/Lib/site-packages/sklearnex/spmd/basic_statistics/basic_statistics.py +2 -2
- {scikit_learn_intelex-2023.2.1.data → scikit_learn_intelex-2024.0.1.data}/data/Lib/site-packages/sklearnex/spmd/cluster/__init__.py +11 -5
- scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/spmd/cluster/dbscan.py +50 -0
- {scikit_learn_intelex-2023.2.1.data → scikit_learn_intelex-2024.0.1.data}/data/Lib/site-packages/sklearnex/spmd/cluster/kmeans.py +2 -2
- {scikit_learn_intelex-2023.2.1.data → scikit_learn_intelex-2024.0.1.data}/data/Lib/site-packages/sklearnex/spmd/decomposition/__init__.py +3 -3
- {scikit_learn_intelex-2023.2.1.data → scikit_learn_intelex-2024.0.1.data}/data/Lib/site-packages/sklearnex/spmd/decomposition/pca.py +2 -2
- {scikit_learn_intelex-2023.2.1.data → scikit_learn_intelex-2024.0.1.data}/data/Lib/site-packages/sklearnex/spmd/ensemble/__init__.py +3 -3
- {scikit_learn_intelex-2023.2.1.data → scikit_learn_intelex-2024.0.1.data}/data/Lib/site-packages/sklearnex/spmd/ensemble/forest.py +16 -14
- {scikit_learn_intelex-2023.2.1.data → scikit_learn_intelex-2024.0.1.data}/data/Lib/site-packages/sklearnex/spmd/linear_model/__init__.py +3 -3
- {scikit_learn_intelex-2023.2.1.data → scikit_learn_intelex-2024.0.1.data}/data/Lib/site-packages/sklearnex/spmd/linear_model/linear_model.py +2 -2
- {scikit_learn_intelex-2023.2.1.data → scikit_learn_intelex-2024.0.1.data}/data/Lib/site-packages/sklearnex/spmd/neighbors/__init__.py +3 -3
- {scikit_learn_intelex-2023.2.1.data → scikit_learn_intelex-2024.0.1.data}/data/Lib/site-packages/sklearnex/spmd/neighbors/neighbors.py +3 -3
- {scikit_learn_intelex-2023.2.1.data → scikit_learn_intelex-2024.0.1.data}/data/Lib/site-packages/sklearnex/svm/__init__.py +11 -8
- {scikit_learn_intelex-2023.2.1.data → scikit_learn_intelex-2024.0.1.data}/data/Lib/site-packages/sklearnex/svm/_common.py +56 -56
- {scikit_learn_intelex-2023.2.1.data → scikit_learn_intelex-2024.0.1.data}/data/Lib/site-packages/sklearnex/svm/nusvc.py +110 -55
- {scikit_learn_intelex-2023.2.1.data → scikit_learn_intelex-2024.0.1.data}/data/Lib/site-packages/sklearnex/svm/nusvr.py +65 -31
- {scikit_learn_intelex-2023.2.1.data → scikit_learn_intelex-2024.0.1.data}/data/Lib/site-packages/sklearnex/svm/svc.py +136 -78
- {scikit_learn_intelex-2023.2.1.data → scikit_learn_intelex-2024.0.1.data}/data/Lib/site-packages/sklearnex/svm/svr.py +65 -31
- scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/svm/tests/test_svm.py +102 -0
- scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/tests/_models_info.py +170 -0
- {scikit_learn_intelex-2023.2.1.data → scikit_learn_intelex-2024.0.1.data}/data/Lib/site-packages/sklearnex/tests/test_config.py +9 -8
- {scikit_learn_intelex-2023.2.1.data → scikit_learn_intelex-2024.0.1.data}/data/Lib/site-packages/sklearnex/tests/test_memory_usage.py +63 -69
- {scikit_learn_intelex-2023.2.1.data → scikit_learn_intelex-2024.0.1.data}/data/Lib/site-packages/sklearnex/tests/test_monkeypatch.py +55 -53
- scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/tests/test_parallel.py +50 -0
- {scikit_learn_intelex-2023.2.1.data → scikit_learn_intelex-2024.0.1.data}/data/Lib/site-packages/sklearnex/tests/test_patching.py +8 -7
- scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/tests/test_run_to_run_stability_tests.py +428 -0
- {scikit_learn_intelex-2023.2.1.data → scikit_learn_intelex-2024.0.1.data}/data/Lib/site-packages/sklearnex/tests/utils/_launch_algorithms.py +39 -39
- {scikit_learn_intelex-2023.2.1.data → scikit_learn_intelex-2024.0.1.data}/data/Lib/site-packages/sklearnex/utils/__init__.py +3 -3
- scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/utils/parallel.py +59 -0
- {scikit_learn_intelex-2023.2.1.data → scikit_learn_intelex-2024.0.1.data}/data/Lib/site-packages/sklearnex/utils/validation.py +2 -2
- {scikit_learn_intelex-2023.2.1.dist-info → scikit_learn_intelex-2024.0.1.dist-info}/METADATA +34 -35
- scikit_learn_intelex-2024.0.1.dist-info/RECORD +90 -0
- scikit_learn_intelex-2023.2.1.data/data/Lib/site-packages/sklearnex/_utils.py +0 -82
- scikit_learn_intelex-2023.2.1.data/data/Lib/site-packages/sklearnex/cluster/dbscan.py +0 -18
- scikit_learn_intelex-2023.2.1.data/data/Lib/site-packages/sklearnex/ensemble/__init__.py +0 -20
- scikit_learn_intelex-2023.2.1.data/data/Lib/site-packages/sklearnex/ensemble/forest.py +0 -18
- scikit_learn_intelex-2023.2.1.data/data/Lib/site-packages/sklearnex/ensemble/tests/test_forest.py +0 -46
- scikit_learn_intelex-2023.2.1.data/data/Lib/site-packages/sklearnex/neighbors/knn_classification.py +0 -228
- scikit_learn_intelex-2023.2.1.data/data/Lib/site-packages/sklearnex/neighbors/knn_regression.py +0 -213
- scikit_learn_intelex-2023.2.1.data/data/Lib/site-packages/sklearnex/neighbors/tests/test_neighbors.py +0 -57
- scikit_learn_intelex-2023.2.1.data/data/Lib/site-packages/sklearnex/preview/__init__.py +0 -18
- scikit_learn_intelex-2023.2.1.data/data/Lib/site-packages/sklearnex/preview/decomposition/tests/test_preview_pca.py +0 -28
- scikit_learn_intelex-2023.2.1.data/data/Lib/site-packages/sklearnex/preview/ensemble/extra_trees.py +0 -1261
- scikit_learn_intelex-2023.2.1.data/data/Lib/site-packages/sklearnex/preview/ensemble/forest.py +0 -1155
- scikit_learn_intelex-2023.2.1.data/data/Lib/site-packages/sklearnex/preview/ensemble/tests/test_preview_ensemble.py +0 -67
- scikit_learn_intelex-2023.2.1.data/data/Lib/site-packages/sklearnex/preview/linear_model/_common.py +0 -66
- scikit_learn_intelex-2023.2.1.data/data/Lib/site-packages/sklearnex/spmd/__init__.py +0 -23
- scikit_learn_intelex-2023.2.1.data/data/Lib/site-packages/sklearnex/svm/tests/test_svm.py +0 -63
- scikit_learn_intelex-2023.2.1.data/data/Lib/site-packages/sklearnex/tests/_models_info.py +0 -159
- scikit_learn_intelex-2023.2.1.data/data/Lib/site-packages/sklearnex/tests/test_run_to_run_stability_tests.py +0 -383
- scikit_learn_intelex-2023.2.1.dist-info/RECORD +0 -95
- {scikit_learn_intelex-2023.2.1.data → scikit_learn_intelex-2024.0.1.data}/data/Lib/site-packages/sklearnex/doc/third-party-programs.txt +0 -0
- {scikit_learn_intelex-2023.2.1.dist-info → scikit_learn_intelex-2024.0.1.dist-info}/LICENSE.txt +0 -0
- {scikit_learn_intelex-2023.2.1.dist-info → scikit_learn_intelex-2024.0.1.dist-info}/WHEEL +0 -0
- {scikit_learn_intelex-2023.2.1.dist-info → scikit_learn_intelex-2024.0.1.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# ===============================================================================
|
|
2
|
+
# Copyright 2023 Intel Corporation
|
|
3
|
+
#
|
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
# you may not use this file except in compliance with the License.
|
|
6
|
+
# You may obtain a copy of the License at
|
|
7
|
+
#
|
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
#
|
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
# See the License for the specific language governing permissions and
|
|
14
|
+
# limitations under the License.
|
|
15
|
+
# ===============================================================================
|
|
16
|
+
|
|
17
|
+
import warnings
|
|
18
|
+
from functools import update_wrapper
|
|
19
|
+
|
|
20
|
+
from .._config import config_context, get_config
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class _FuncWrapper:
|
|
24
|
+
"""Load the global configuration before calling the function."""
|
|
25
|
+
|
|
26
|
+
def __init__(self, function):
|
|
27
|
+
self.function = function
|
|
28
|
+
update_wrapper(self, self.function)
|
|
29
|
+
|
|
30
|
+
def with_config(self, config):
|
|
31
|
+
self.config = config
|
|
32
|
+
return self
|
|
33
|
+
|
|
34
|
+
def __call__(self, *args, **kwargs):
|
|
35
|
+
config = getattr(self, "config", None)
|
|
36
|
+
if config is None:
|
|
37
|
+
warnings.warn(
|
|
38
|
+
"`sklearn.utils.parallel.delayed` should be used with "
|
|
39
|
+
"`sklearn.utils.parallel.Parallel` to make it possible to propagate "
|
|
40
|
+
"the scikit-learn configuration of the current thread to the "
|
|
41
|
+
"joblib workers.",
|
|
42
|
+
UserWarning,
|
|
43
|
+
)
|
|
44
|
+
config = {}
|
|
45
|
+
with config_context(**config):
|
|
46
|
+
return self.function(*args, **kwargs)
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
class _FuncWrapperOld:
|
|
50
|
+
"""Load the global configuration before calling the function."""
|
|
51
|
+
|
|
52
|
+
def __init__(self, function):
|
|
53
|
+
self.function = function
|
|
54
|
+
self.config = get_config()
|
|
55
|
+
update_wrapper(self, self.function)
|
|
56
|
+
|
|
57
|
+
def __call__(self, *args, **kwargs):
|
|
58
|
+
with config_context(**self.config):
|
|
59
|
+
return self.function(*args, **kwargs)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env python
|
|
2
|
-
|
|
2
|
+
# ===============================================================================
|
|
3
3
|
# Copyright 2022 Intel Corporation
|
|
4
4
|
#
|
|
5
5
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -13,6 +13,6 @@
|
|
|
13
13
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
14
|
# See the License for the specific language governing permissions and
|
|
15
15
|
# limitations under the License.
|
|
16
|
-
|
|
16
|
+
# ===============================================================================
|
|
17
17
|
|
|
18
18
|
from daal4py.sklearn.utils.validation import _assert_all_finite
|
{scikit_learn_intelex-2023.2.1.dist-info → scikit_learn_intelex-2024.0.1.dist-info}/METADATA
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: scikit-learn-intelex
|
|
3
|
-
Version:
|
|
3
|
+
Version: 2024.0.1
|
|
4
4
|
Summary: Intel(R) Extension for Scikit-learn is a seamless way to speed up your Scikit-learn application.
|
|
5
5
|
Home-page: https://github.com/intel/scikit-learn-intelex
|
|
6
6
|
Author: Intel Corporation
|
|
7
|
-
Author-email:
|
|
7
|
+
Author-email: onedal.maintainers@intel.com
|
|
8
8
|
Maintainer-email: onedal.maintainers@intel.com
|
|
9
9
|
License: Apache-2.0
|
|
10
10
|
Project-URL: Bug Tracker, https://github.com/intel/scikit-learn-intelex/issues
|
|
@@ -18,21 +18,20 @@ Classifier: Intended Audience :: Developers
|
|
|
18
18
|
Classifier: Intended Audience :: Other Audience
|
|
19
19
|
Classifier: Intended Audience :: Science/Research
|
|
20
20
|
Classifier: License :: OSI Approved :: Apache Software License
|
|
21
|
-
Classifier: Operating System :: MacOS :: MacOS X
|
|
22
21
|
Classifier: Operating System :: Microsoft :: Windows
|
|
23
22
|
Classifier: Operating System :: POSIX :: Linux
|
|
24
|
-
Classifier: Programming Language :: Python :: 3
|
|
25
|
-
Classifier: Programming Language :: Python :: 3.6
|
|
26
|
-
Classifier: Programming Language :: Python :: 3.7
|
|
27
23
|
Classifier: Programming Language :: Python :: 3.8
|
|
28
24
|
Classifier: Programming Language :: Python :: 3.9
|
|
25
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
26
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
27
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
29
28
|
Classifier: Topic :: Scientific/Engineering
|
|
30
29
|
Classifier: Topic :: System
|
|
31
30
|
Classifier: Topic :: Software Development
|
|
32
31
|
Requires-Python: >=3.7
|
|
33
32
|
Description-Content-Type: text/markdown
|
|
34
33
|
License-File: LICENSE.txt
|
|
35
|
-
Requires-Dist: daal4py (==
|
|
34
|
+
Requires-Dist: daal4py (==2024.0.1)
|
|
36
35
|
Requires-Dist: scikit-learn (>=0.22)
|
|
37
36
|
|
|
38
37
|
|
|
@@ -44,13 +43,13 @@ Requires-Dist: scikit-learn (>=0.22)
|
|
|
44
43
|
[](https://pypi.org/project/scikit-learn-intelex/)
|
|
45
44
|
[](https://anaconda.org/conda-forge/scikit-learn-intelex)
|
|
46
45
|
|
|
47
|
-
Intel(R) Extension for Scikit-learn
|
|
46
|
+
With Intel(R) Extension for Scikit-learn you can accelerate your Scikit-learn applications and still have full conformance with all Scikit-Learn APIs and algorithms. This is a free software AI accelerator that brings over 10-100X acceleration across a variety of applications. And you do not even need to change the existing code!
|
|
47
|
+
|
|
48
|
+
The acceleration is achieved through the use of the Intel(R) oneAPI Data Analytics Library ([oneDAL](https://github.com/oneapi-src/oneDAL)). Patching scikit-learn makes it a well-suited machine learning framework for dealing with real-life problems.
|
|
48
49
|
|
|
49
50
|
⚠️Intel(R) Extension for Scikit-learn contains scikit-learn patching functionality that was originally available in [**daal4py**](https://github.com/intel/scikit-learn-intelex/tree/master/daal4py) package. All future updates for the patches will be available only in Intel(R) Extension for Scikit-learn. We recommend you to use scikit-learn-intelex package instead of daal4py.
|
|
50
51
|
You can learn more about daal4py in [daal4py documentation](https://intelpython.github.io/daal4py).
|
|
51
52
|
|
|
52
|
-
Running the latest scikit-learn test suite with Intel(R) Extension for Scikit-learn: [](https://circleci.com/gh/intel/scikit-learn-intelex)
|
|
53
|
-
|
|
54
53
|
## 👀 Follow us on Medium
|
|
55
54
|
|
|
56
55
|
We publish blogs on Medium, so [follow us](https://medium.com/intel-analytics-software/tagged/machine-learning) to learn tips and tricks for more efficient data analysis with the help of Intel(R) Extension for Scikit-learn. Here are our latest blogs:
|
|
@@ -99,40 +98,41 @@ pip install scikit-learn-intelex
|
|
|
99
98
|
- Anaconda Cloud from Conda-Forge channel (recommended for conda users by default)
|
|
100
99
|
|
|
101
100
|
```bash
|
|
102
|
-
conda
|
|
101
|
+
conda config --add channels conda-forge
|
|
102
|
+
conda config --set channel_priority strict
|
|
103
|
+
conda install scikit-learn-intelex
|
|
103
104
|
```
|
|
104
105
|
|
|
105
106
|
- Anaconda Cloud from Intel channel (recommended for Intel® Distribution for Python users)
|
|
106
107
|
|
|
107
108
|
```bash
|
|
108
|
-
conda
|
|
109
|
+
conda config --add channels intel
|
|
110
|
+
conda config --set channel_priority strict
|
|
111
|
+
conda install scikit-learn-intelex
|
|
109
112
|
```
|
|
110
113
|
|
|
111
114
|
<details><summary>[Click to expand] ℹ️ Supported configurations </summary>
|
|
112
115
|
|
|
113
116
|
#### 📦 PyPi channel
|
|
114
117
|
|
|
115
|
-
| OS / Python version | **Python 3.
|
|
116
|
-
| :-----------------------| :------------: | :-------------:|
|
|
117
|
-
| **Linux** | [CPU, GPU] | [CPU, GPU] | [CPU, GPU]
|
|
118
|
-
| **Windows** | [CPU, GPU] | [CPU, GPU] | [CPU, GPU]
|
|
119
|
-
| **OsX** | [CPU] | [CPU] | [CPU] | ❌ |
|
|
118
|
+
| OS / Python version | **Python 3.8** | **Python 3.9** | **Python 3.10**| **Python 3.11**| **Python 3.12**|
|
|
119
|
+
| :-----------------------| :------------: | :-------------:| :------------: | :------------: | :------------: |
|
|
120
|
+
| **Linux** | [CPU, GPU] | [CPU, GPU] | [CPU, GPU] | [CPU, GPU] | [CPU, GPU] |
|
|
121
|
+
| **Windows** | [CPU, GPU] | [CPU, GPU] | [CPU, GPU] | [CPU, GPU] | [CPU, GPU] |
|
|
120
122
|
|
|
121
123
|
#### 📦 Anaconda Cloud: Conda-Forge channel
|
|
122
124
|
|
|
123
|
-
| OS / Python version | **Python 3.
|
|
124
|
-
| :-----------------------| :------------: | :------------: |
|
|
125
|
-
| **Linux** |
|
|
126
|
-
| **Windows** |
|
|
127
|
-
| **OsX** | [CPU] | [CPU] | [CPU] | [CPU] |
|
|
125
|
+
| OS / Python version | **Python 3.8** | **Python 3.9** | **Python 3.10**| **Python 3.11**| **Python 3.12**|
|
|
126
|
+
| :-----------------------| :------------: | :------------: | :------------: | :------------: | :------------: |
|
|
127
|
+
| **Linux** | [CPU] | [CPU] | [CPU] | [CPU] | [CPU] |
|
|
128
|
+
| **Windows** | [CPU] | [CPU] | [CPU] | [CPU] | [CPU] |
|
|
128
129
|
|
|
129
130
|
#### 📦 Anaconda Cloud: Intel channel
|
|
130
131
|
|
|
131
|
-
| OS / Python version | **Python 3.
|
|
132
|
-
| :-----------------------| :------------: | :-------------:|
|
|
133
|
-
| **Linux** | [CPU, GPU] |
|
|
134
|
-
| **Windows** | [CPU, GPU] |
|
|
135
|
-
| **OsX** | [CPU] | [CPU] | [CPU] | ❌ |
|
|
132
|
+
| OS / Python version | **Python 3.8** | **Python 3.9** | **Python 3.10**| **Python 3.11**| **Python 3.12**|
|
|
133
|
+
| :-----------------------| :------------: | :-------------:| :------------: | :------------: | :------------: |
|
|
134
|
+
| **Linux** | [CPU, GPU] | [CPU, GPU] | [CPU, GPU] | [CPU, GPU] | [CPU, GPU] |
|
|
135
|
+
| **Windows** | [CPU, GPU] | [CPU, GPU] | [CPU, GPU] | [CPU, GPU] | [CPU, GPU] |
|
|
136
136
|
|
|
137
137
|
</details>
|
|
138
138
|
|
|
@@ -175,15 +175,15 @@ clustering = DBSCAN(eps=3, min_samples=2).fit(X)
|
|
|
175
175
|
Intel GPU optimizations patching
|
|
176
176
|
```py
|
|
177
177
|
import numpy as np
|
|
178
|
-
|
|
179
|
-
from
|
|
178
|
+
import dpctl
|
|
179
|
+
from sklearnex import patch_sklearn, config_context
|
|
180
180
|
patch_sklearn()
|
|
181
181
|
|
|
182
182
|
from sklearn.cluster import DBSCAN
|
|
183
183
|
|
|
184
184
|
X = np.array([[1., 2.], [2., 2.], [2., 3.],
|
|
185
185
|
[8., 7.], [8., 8.], [25., 80.]], dtype=np.float32)
|
|
186
|
-
with
|
|
186
|
+
with config_context(target_offload="gpu:0"):
|
|
187
187
|
clustering = DBSCAN(eps=3, min_samples=2).fit(X)
|
|
188
188
|
```
|
|
189
189
|
|
|
@@ -201,25 +201,24 @@ Configurations:
|
|
|
201
201
|
- With Intel® Extension for Scikit-learn enabled:
|
|
202
202
|
|
|
203
203
|
```bash
|
|
204
|
-
python runner.py --configs configs/blogs/skl_conda_config.json
|
|
204
|
+
python runner.py --configs configs/blogs/skl_conda_config.json -–report
|
|
205
205
|
```
|
|
206
206
|
|
|
207
207
|
- With the original Scikit-learn:
|
|
208
208
|
|
|
209
209
|
```bash
|
|
210
|
-
python runner.py --configs configs/blogs/skl_conda_config.json
|
|
210
|
+
python runner.py --configs configs/blogs/skl_conda_config.json -–report --no-intel-optimized
|
|
211
211
|
```
|
|
212
212
|
</details>
|
|
213
213
|
|
|
214
214
|
Intel(R) Extension for Scikit-learn patching affects performance of specific Scikit-learn functionality. Refer to the [list of supported algorithms and parameters](https://intel.github.io/scikit-learn-intelex/algorithms.html) for details. In cases when unsupported parameters are used, the package fallbacks into original Scikit-learn. If the patching does not cover your scenarios, [submit an issue on GitHub](https://github.com/intel/scikit-learn-intelex/issues).
|
|
215
215
|
|
|
216
|
-
⚠️ We support optimizations for the last four versions of scikit-learn. The latest release of
|
|
217
|
-
0.23.X, 0.24.X and 1.0.X.
|
|
216
|
+
⚠️ We support optimizations for the last four versions of scikit-learn. The latest release of scikit-learn-intelex-2024.0.X supports scikit-learn 1.0.X, 1.1.X, 1.2.X and 1.3.X.
|
|
218
217
|
|
|
219
218
|
## 📜 Intel(R) Extension for Scikit-learn verbose
|
|
220
219
|
|
|
221
220
|
To find out which implementation of the algorithm is currently used (Intel(R) Extension for Scikit-learn or original Scikit-learn), set the environment variable:
|
|
222
|
-
- On Linux
|
|
221
|
+
- On Linux: `export SKLEARNEX_VERBOSE=INFO`
|
|
223
222
|
- On Windows: `set SKLEARNEX_VERBOSE=INFO`
|
|
224
223
|
|
|
225
224
|
For example, for DBSCAN you get one of these print statements depending on which implementation is used:
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/__init__.py,sha256=tEVwU6DfbDy6ZRz-ii8lKaNvvSeACNL7ckci-Mxgk9I,1580
|
|
2
|
+
scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/__main__.py,sha256=8OjFE_Dr4GxqRHE407tvqoVlaQ3Tq7OMLoVafTuwFlg,1943
|
|
3
|
+
scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/_config.py,sha256=6WS3UuS4-0DxIJyGn7yQMosj-mGkLybLQrg3W7dED5o,3928
|
|
4
|
+
scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/_device_offload.py,sha256=J0tZqj6tfvIFonWR01PadtTLgloQk_QEfXeCoqEvJlk,7710
|
|
5
|
+
scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/_utils.py,sha256=hpPk7iIEMOUSzK6YnSNBdpJqUWD6BRPgJLZS-0R_C94,3401
|
|
6
|
+
scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/dispatcher.py,sha256=RpmYFWWxyv-FQujLxMm88nAdle0x2mw8WMl4u4Ys3D4,11797
|
|
7
|
+
scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/basic_statistics/__init__.py,sha256=vR2aU4OXaukmuNhI1BgAZNwQcjXBGqjTrxoU0zv6AsU,843
|
|
8
|
+
scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/basic_statistics/basic_statistics.py,sha256=j5jBZ3DgXjoyjCBEFfYQHyl3LgLXEWWFnNHwInThdZw,796
|
|
9
|
+
scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/cluster/__init__.py,sha256=0wLPkqPWr6O3-SaL6bshmuuLN2i61WYlnCKuTHDx2Eg,876
|
|
10
|
+
scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/cluster/dbscan.py,sha256=2wc8mi0OTsjmGGyNJViyBv_L906xGq4NscHb7IuyGbE,6625
|
|
11
|
+
scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/cluster/k_means.py,sha256=1NQNXdyBDX7XrrdUB8kuU4z2pHOSqK2TbJtRrU1sltQ,829
|
|
12
|
+
scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/cluster/tests/test_dbscan.py,sha256=N04puPOBMI0aW2w19AHI17iqyQFMeoebJNwxzcmR9qY,1487
|
|
13
|
+
scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/cluster/tests/test_kmeans.py,sha256=SOKXULDw_h0YTOnUKMJ3e5tUobdYffsnSa6-bTTzy1A,1236
|
|
14
|
+
scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/decomposition/__init__.py,sha256=iWLonuyjtG2OtGodiWdgHsylgCODZEd4T-7BynHRJlc,828
|
|
15
|
+
scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/decomposition/pca.py,sha256=JXCmMFf6MFSYMh3dej5-A6mQN8q8RMAB3LAxk1Fb4Qg,832
|
|
16
|
+
scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/decomposition/tests/test_pca.py,sha256=oYsMN7BtqfBqR1Ubsmv6it46R7KdMQWF4ozi16p0iYE,1169
|
|
17
|
+
scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/doc/third-party-programs.txt,sha256=qA1XbOqYkMRnp29p8VxXjfcH0kHE8NSO5s2heea83-8,21773
|
|
18
|
+
scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/ensemble/__init__.py,sha256=YgWzjycWS5jWcGr52fjqnnU2RJbn9yoiFgiqcLbXEf4,1058
|
|
19
|
+
scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/ensemble/_forest.py,sha256=mFf7byarVtAUGQdfDSIyvs6P4cj9w2tDVHjnUiKke3g,69905
|
|
20
|
+
scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/ensemble/tests/test_forest.py,sha256=STPvCRAlxBaKl229jPF9bIZ-L9KqnwK_6rthUg3uyi0,4539
|
|
21
|
+
scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/glob/__main__.py,sha256=aeuJrm_SpvNje7wNhuI8wMxt2eJFPv-sdGJoCH6YDpA,2554
|
|
22
|
+
scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/glob/dispatcher.py,sha256=xcorUAME9Iex2AgROH20GV4z2RNiXrBL4TlFkBVgnSI,3041
|
|
23
|
+
scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/linear_model/__init__.py,sha256=jTSIlC5SusySbs1ertugjQA2z_7YRcvWQFOpsVDy5tU,1123
|
|
24
|
+
scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/linear_model/coordinate_descent.py,sha256=l_8PcqbCIgVKEuV_X7nbT2kfvQlmDBKWccTo5N-3Gr4,845
|
|
25
|
+
scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/linear_model/linear.py,sha256=_9rUZzhCasNYZL8yB20eqMS_odZrlgf1uJF4m6-aYls,13488
|
|
26
|
+
scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/linear_model/logistic_path.py,sha256=tcJTtn1jaUFcAozVI9IVfPoJSzAvQ_NMavW40TEEvSc,872
|
|
27
|
+
scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/linear_model/ridge.py,sha256=XHSwzQc1k8PkYUDNGvodRG2EgsIJJYNNOXvXyf_4o5s,833
|
|
28
|
+
scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/linear_model/tests/test_linear.py,sha256=sxivv1E6O33BOphV-W3xxUs52-3k9qEFIbzCDqyV_Yo,2924
|
|
29
|
+
scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/linear_model/tests/test_logreg.py,sha256=PDJZiVu0TFCh995-7OCud3-XnraJzfHTIIp_SORfc70,1198
|
|
30
|
+
scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/manifold/__init__.py,sha256=6KtNG4ZRbJUg_Iu1AdCz4h5fM5GhMz-2e4PMOOVdKCE,832
|
|
31
|
+
scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/manifold/t_sne.py,sha256=AaHGbnbqQFX_9zxqi-lShihoB7Rs4iDDWD8pftycxtU,828
|
|
32
|
+
scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/manifold/tests/test_tsne.py,sha256=_6eB-NPHvDFRuaXIoVAOOUe0DY3u2G8dVuwivp9UHSQ,1086
|
|
33
|
+
scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/metrics/__init__.py,sha256=Ktd6l7mbJwSd7y23z90mC43NbnbJfzYZU8iN9wuBaFM,930
|
|
34
|
+
scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/metrics/pairwise.py,sha256=8zSV7GhfBI2I-4eJ15CTs2RWIXRo5B1K3fXjPQHAqMI,841
|
|
35
|
+
scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/metrics/ranking.py,sha256=9QcnfnNbQIeLLtH5GbA0XDw5LPwpx9ONDp5Pn8J964g,836
|
|
36
|
+
scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/metrics/tests/test_metrics.py,sha256=tZYVjntV60QQPRJhidWF6071rG5kZfRzYi4hMR4dK18,1602
|
|
37
|
+
scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/model_selection/__init__.py,sha256=Frgfgmn9VxIZZUDc7QuwiIegeUcVB_QzVYMbuzbFtzQ,865
|
|
38
|
+
scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/model_selection/split.py,sha256=KFcH_Khll_tPwGVKzzxJaH-4UEOPLXLQOU-sk-2wfuU,847
|
|
39
|
+
scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/model_selection/tests/test_model_selection.py,sha256=rDJrR3b8vmGuOneQZAEV6MiERN2Uzu6NpG46d__C_aY,1361
|
|
40
|
+
scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/neighbors/__init__.py,sha256=ECtrr26pXdyHiRDGZ5TNI3vMo6Lc9FV_ObjJBQeuCbw,1100
|
|
41
|
+
scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/neighbors/common.py,sha256=m6vHNHT_wnZmKf3DfkJbfnARuMtwXuI4Hs6ff6060sM,10805
|
|
42
|
+
scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/neighbors/knn_classification.py,sha256=Vv4GVTcTSwjmXIeyqRY2DLn0waOW5Vff_AA3r1vz5To,10908
|
|
43
|
+
scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/neighbors/knn_regression.py,sha256=VQBiT7izukJ30Xq6-5Aft8zGkCODyuEoBR2pdr8H8ag,9827
|
|
44
|
+
scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/neighbors/knn_unsupervised.py,sha256=NjhAzqn6L3CAICFDn4AMrSiqz5EN3Sw4zlhFZN2f7DQ,7497
|
|
45
|
+
scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/neighbors/lof.py,sha256=l6m3qk8ikDStT6KYQGd_cnw1ao4U0qYZi6cTpXCgcuo,16287
|
|
46
|
+
scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/neighbors/tests/test_neighbors.py,sha256=4DfPmbm2_95oSmjecrHqICAvUgts_DqxZzdP0c0cBSU,3588
|
|
47
|
+
scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/preview/__init__.py,sha256=wHze7Itms2CEgqDAyVsgUUkoby4V29DQ3jq7sWjM7sw,805
|
|
48
|
+
scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/preview/cluster/__init__.py,sha256=DVm0fd9GY7NPqWivFaFDRC8-RgYmx8_LGrb_9lQO5H8,816
|
|
49
|
+
scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/preview/cluster/_common.py,sha256=bgpzijxgyrAtdNCCHyCNsZ-N70KQYNwMuoCTNdUna6o,2718
|
|
50
|
+
scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/preview/cluster/k_means.py,sha256=6PHbqYkoLB9HQnwrvGRsuD65Dn9Vg_GwWPk0s5rZoZA,12908
|
|
51
|
+
scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/preview/decomposition/__init__.py,sha256=EqdGlm-BdYa7B68ANaBAJmVrpXnI2IGeEqYDJKCLmis,828
|
|
52
|
+
scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/preview/decomposition/pca.py,sha256=yzGY5jOwDPfMadB86HWpCOGklf6im39N5xeJdXVqsLw,14579
|
|
53
|
+
scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/preview/decomposition/tests/test_preview_pca.py,sha256=lTcgVUhmGq_tLmKvB5YaIjqQ5zxrU0yciFW02cMnoDk,1539
|
|
54
|
+
scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/spmd/__init__.py,sha256=8cxQy-oCFy1TJto0qoRf4lt98siPx2c-YV99YC-sk6s,871
|
|
55
|
+
scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/spmd/basic_statistics/__init__.py,sha256=NA5RGlwcp27UEeCgz0ngzYYd3MAIRpxlTy86uhM2-RE,821
|
|
56
|
+
scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/spmd/basic_statistics/basic_statistics.py,sha256=_dQ9mhVYxeuChATEpAmHpXDpgW3YvtK1qrG-kLr2MtI,886
|
|
57
|
+
scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/spmd/cluster/__init__.py,sha256=qBBfrCHh6_82EROLbu54XKk7SmmRwS1XJyCj0zwkoUw,1029
|
|
58
|
+
scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/spmd/cluster/dbscan.py,sha256=23YNzPhx4MZijU0md-E3ZkHpTkhUh5cmtS3loHe-KhI,1824
|
|
59
|
+
scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/spmd/cluster/kmeans.py,sha256=Rnb9tr9LXVto5vCAumk7ZJfa9BYYDhdD1qUWL-QK5bY,868
|
|
60
|
+
scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/spmd/decomposition/__init__.py,sha256=dBh0ZMIiaqdf3DKbt8FWNB2K9Iacs395m8OxaDFQg_M,784
|
|
61
|
+
scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/spmd/decomposition/pca.py,sha256=CUrsVD2jae-A9H8RB_emza_fe82CwnFa5PEy0fW_EZ8,871
|
|
62
|
+
scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/spmd/ensemble/__init__.py,sha256=B3yi7hWoVogMIiw0QRT_x5atsAFS-OO72YPLGeUQJ8M,873
|
|
63
|
+
scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/spmd/ensemble/forest.py,sha256=ao6lyzcxoRW-RG9xIYwtDFyM7JIjlF8wmQKpOv_oSRQ,3113
|
|
64
|
+
scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/spmd/linear_model/__init__.py,sha256=eCJGleo00O6c280G97i18KNmSvi6uwX7wM1ZN5JMqhw,819
|
|
65
|
+
scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/spmd/linear_model/linear_model.py,sha256=7QPCIQTWKBiZBTDZZbpZXi-REgxQCfRMt6rHPJAnc5E,883
|
|
66
|
+
scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/spmd/neighbors/__init__.py,sha256=S16sH8N_18LN_8AgC_wGK5EDSNyuN-F-gI6GVlaiWVE,906
|
|
67
|
+
scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/spmd/neighbors/neighbors.py,sha256=SiKAS_RVt34MUcGytBS5pHnI_5vFNxJn8jqt1MOhDh8,940
|
|
68
|
+
scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/svm/__init__.py,sha256=X-iZnbXkz-ulBilzsBJXKC1hDzH5E7epiQbk-LxmT88,1079
|
|
69
|
+
scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/svm/_common.py,sha256=Dt1Iyz1g04zOW6hn9cHa9ruzM_MHAIq0ZEEIxh5s7nI,7167
|
|
70
|
+
scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/svm/nusvc.py,sha256=JEITTg810wcFBLOfmGy_3VTcKVlRai2GTrNYBJEWu7E,8850
|
|
71
|
+
scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/svm/nusvr.py,sha256=WqIBW2ALTq1J1HEjeL_lcRJph553qWLFOkJ1gdETj7E,5124
|
|
72
|
+
scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/svm/svc.py,sha256=Yph6bTgqahimBSHLCod0Tywv3Nw-oFoAPD1DTHfxSuY,10132
|
|
73
|
+
scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/svm/svr.py,sha256=z3MDzTtbod2wt22TUzgBhK5L_XoRyNTCvG31ijl4280,5128
|
|
74
|
+
scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/svm/tests/test_svm.py,sha256=9_jjPNCmlGnxgt6Ga1vOauKF3wGE-KYQ4jTdZUBxNXg,4213
|
|
75
|
+
scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/tests/_models_info.py,sha256=xhjvnU3TvQg8J5Cih2hphWAOSsT8DnKmCyYbtwa0Qvs,4785
|
|
76
|
+
scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/tests/test_config.py,sha256=SnSJjxAAysISDyC3bYKSJiRHStkB9X-yjLeF11LpRog,1372
|
|
77
|
+
scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/tests/test_memory_usage.py,sha256=-9S5EY9Ivy6WRW18IJEY1uyJxo9073GwXHybnFrJULc,7381
|
|
78
|
+
scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/tests/test_monkeypatch.py,sha256=YlnYNEFNE9jUZmWSHt0JJl8hseWQmipjIvvGkhxJk6I,7586
|
|
79
|
+
scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/tests/test_parallel.py,sha256=bMu22noUvGiDX4oyxKIHPiOEoBP9lRQQUq6wq8ZD730,1776
|
|
80
|
+
scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/tests/test_patching.py,sha256=6H0Um6N5qhD5OZ875HhAcKPFXM81les5XWCCsaNyMb8,3759
|
|
81
|
+
scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/tests/test_run_to_run_stability_tests.py,sha256=4HDOeJruA1EDILbyQJtsHFmEXC0D1upSHuOT-KyTlEc,14008
|
|
82
|
+
scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/tests/utils/_launch_algorithms.py,sha256=pJT5tAW9rWvk7GT37R-B0-e8SLz8e9FSZw8yu4LWNJ4,3724
|
|
83
|
+
scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/utils/__init__.py,sha256=I8mbJQ3Zsm_F3sCLAhJQb7tUrG30kVsQ-wZoqA8vDdA,842
|
|
84
|
+
scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/utils/parallel.py,sha256=VBcS-KUdyq7XpJUN6ygmNjyWtYLroghbvCxQ8nVU3YI,2085
|
|
85
|
+
scikit_learn_intelex-2024.0.1.data/data/Lib/site-packages/sklearnex/utils/validation.py,sha256=w1MhNVEK59O5xK1wwzej9llsHXCU2yHjhcnskZseDdg,850
|
|
86
|
+
scikit_learn_intelex-2024.0.1.dist-info/LICENSE.txt,sha256=rVeK6nE7qRmAwbwjnG9ENguRsDgzEkFn5MZL2IU6QgY,10999
|
|
87
|
+
scikit_learn_intelex-2024.0.1.dist-info/METADATA,sha256=vsGdi_IiSd5Rc8B2RlsgrANFW0ktwW6fJ2Gsk0U_wP4,12448
|
|
88
|
+
scikit_learn_intelex-2024.0.1.dist-info/WHEEL,sha256=EL6xoqqjbROFcjnsV_38AkJ5UOTZv-vTn6od7mqm5rc,99
|
|
89
|
+
scikit_learn_intelex-2024.0.1.dist-info/top_level.txt,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
90
|
+
scikit_learn_intelex-2024.0.1.dist-info/RECORD,,
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env python
|
|
2
|
-
#===============================================================================
|
|
3
|
-
# Copyright 2021 Intel Corporation
|
|
4
|
-
#
|
|
5
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
# you may not use this file except in compliance with the License.
|
|
7
|
-
# You may obtain a copy of the License at
|
|
8
|
-
#
|
|
9
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
#
|
|
11
|
-
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
# See the License for the specific language governing permissions and
|
|
15
|
-
# limitations under the License.
|
|
16
|
-
#===============================================================================
|
|
17
|
-
|
|
18
|
-
import logging
|
|
19
|
-
import warnings
|
|
20
|
-
import os
|
|
21
|
-
import sys
|
|
22
|
-
from daal4py.sklearn._utils import daal_check_version
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
def set_sklearn_ex_verbose():
|
|
26
|
-
log_level = os.environ.get("SKLEARNEX_VERBOSE")
|
|
27
|
-
|
|
28
|
-
logger = logging.getLogger('sklearnex')
|
|
29
|
-
logging_channel = logging.StreamHandler()
|
|
30
|
-
logging_formatter = logging.Formatter('%(levelname)s:%(name)s: %(message)s')
|
|
31
|
-
logging_channel.setFormatter(logging_formatter)
|
|
32
|
-
logger.addHandler(logging_channel)
|
|
33
|
-
|
|
34
|
-
try:
|
|
35
|
-
if log_level is not None:
|
|
36
|
-
logger.setLevel(log_level)
|
|
37
|
-
except Exception:
|
|
38
|
-
warnings.warn('Unknown level "{}" for logging.\n'
|
|
39
|
-
'Please, use one of "CRITICAL", "ERROR", '
|
|
40
|
-
'"WARNING", "INFO", "DEBUG".'.format(log_level))
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
def get_patch_message(s, queue=None, cpu_fallback=False):
|
|
44
|
-
if s == "onedal":
|
|
45
|
-
message = "running accelerated version on "
|
|
46
|
-
if queue is not None:
|
|
47
|
-
if queue.sycl_device.is_gpu:
|
|
48
|
-
message += 'GPU'
|
|
49
|
-
elif queue.sycl_device.is_cpu:
|
|
50
|
-
message += 'CPU'
|
|
51
|
-
else:
|
|
52
|
-
raise RuntimeError('Unsupported device')
|
|
53
|
-
|
|
54
|
-
elif 'daal4py.oneapi' in sys.modules:
|
|
55
|
-
from daal4py.oneapi import _get_device_name_sycl_ctxt
|
|
56
|
-
dev = _get_device_name_sycl_ctxt()
|
|
57
|
-
if dev == 'cpu' or dev is None:
|
|
58
|
-
message += 'CPU'
|
|
59
|
-
elif dev == 'gpu':
|
|
60
|
-
if cpu_fallback:
|
|
61
|
-
message += 'CPU'
|
|
62
|
-
else:
|
|
63
|
-
message += 'GPU'
|
|
64
|
-
else:
|
|
65
|
-
raise ValueError(f"Unexpected device name {dev}."
|
|
66
|
-
" Supported types are cpu and gpu")
|
|
67
|
-
else:
|
|
68
|
-
message += 'CPU'
|
|
69
|
-
|
|
70
|
-
elif s == "sklearn":
|
|
71
|
-
message = "fallback to original Scikit-learn"
|
|
72
|
-
elif s == "sklearn_after_onedal":
|
|
73
|
-
message = "failed to run accelerated version, fallback to original Scikit-learn"
|
|
74
|
-
else:
|
|
75
|
-
raise ValueError(
|
|
76
|
-
f"Invalid input - expected one of 'onedal','sklearn',"
|
|
77
|
-
f" 'sklearn_after_onedal', got {s}")
|
|
78
|
-
return message
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
def get_sklearnex_version(rule):
|
|
82
|
-
return daal_check_version(rule)
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env python
|
|
2
|
-
#===============================================================================
|
|
3
|
-
# Copyright 2021 Intel Corporation
|
|
4
|
-
#
|
|
5
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
# you may not use this file except in compliance with the License.
|
|
7
|
-
# You may obtain a copy of the License at
|
|
8
|
-
#
|
|
9
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
#
|
|
11
|
-
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
# See the License for the specific language governing permissions and
|
|
15
|
-
# limitations under the License.
|
|
16
|
-
#===============================================================================
|
|
17
|
-
|
|
18
|
-
from daal4py.sklearn.cluster import DBSCAN
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env python
|
|
2
|
-
#===============================================================================
|
|
3
|
-
# Copyright 2023 Intel Corporation
|
|
4
|
-
#
|
|
5
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
# you may not use this file except in compliance with the License.
|
|
7
|
-
# You may obtain a copy of the License at
|
|
8
|
-
#
|
|
9
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
#
|
|
11
|
-
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
# See the License for the specific language governing permissions and
|
|
15
|
-
# limitations under the License.
|
|
16
|
-
#===============================================================================
|
|
17
|
-
|
|
18
|
-
from .forest import RandomForestClassifier, RandomForestRegressor
|
|
19
|
-
|
|
20
|
-
__all__ = ['RandomForestClassifier', 'RandomForestRegressor']
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env python
|
|
2
|
-
#===============================================================================
|
|
3
|
-
# Copyright 2021 Intel Corporation
|
|
4
|
-
#
|
|
5
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
# you may not use this file except in compliance with the License.
|
|
7
|
-
# You may obtain a copy of the License at
|
|
8
|
-
#
|
|
9
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
#
|
|
11
|
-
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
# See the License for the specific language governing permissions and
|
|
15
|
-
# limitations under the License.
|
|
16
|
-
#===============================================================================
|
|
17
|
-
|
|
18
|
-
from daal4py.sklearn.ensemble import RandomForestClassifier, RandomForestRegressor
|
scikit_learn_intelex-2023.2.1.data/data/Lib/site-packages/sklearnex/ensemble/tests/test_forest.py
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env python
|
|
2
|
-
#===============================================================================
|
|
3
|
-
# Copyright 2021 Intel Corporation
|
|
4
|
-
#
|
|
5
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
# you may not use this file except in compliance with the License.
|
|
7
|
-
# You may obtain a copy of the License at
|
|
8
|
-
#
|
|
9
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
#
|
|
11
|
-
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
# See the License for the specific language governing permissions and
|
|
15
|
-
# limitations under the License.
|
|
16
|
-
#===============================================================================
|
|
17
|
-
|
|
18
|
-
import numpy as np
|
|
19
|
-
from numpy.testing import assert_allclose
|
|
20
|
-
from sklearn.datasets import make_classification, make_regression
|
|
21
|
-
from daal4py.sklearn._utils import daal_check_version
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
def test_sklearnex_import_rf_classifier():
|
|
25
|
-
from sklearnex.ensemble import RandomForestClassifier
|
|
26
|
-
X, y = make_classification(n_samples=1000, n_features=4,
|
|
27
|
-
n_informative=2, n_redundant=0,
|
|
28
|
-
random_state=0, shuffle=False)
|
|
29
|
-
rf = RandomForestClassifier(max_depth=2, random_state=0).fit(X, y)
|
|
30
|
-
assert 'daal4py' in rf.__module__
|
|
31
|
-
assert_allclose([1], rf.predict([[0, 0, 0, 0]]))
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
def test_sklearnex_import_rf_regression():
|
|
35
|
-
from sklearnex.ensemble import RandomForestRegressor
|
|
36
|
-
X, y = make_regression(n_features=4, n_informative=2,
|
|
37
|
-
random_state=0, shuffle=False)
|
|
38
|
-
rf = RandomForestRegressor(max_depth=2, random_state=0).fit(X, y)
|
|
39
|
-
assert 'daal4py' in rf.__module__
|
|
40
|
-
pred = rf.predict([[0, 0, 0, 0]])
|
|
41
|
-
if daal_check_version((2021, 'P', 400)):
|
|
42
|
-
# random engine work was changed in sklearnex 2023.1
|
|
43
|
-
assert np.allclose([-6.97], pred, atol=1e-2) \
|
|
44
|
-
or np.allclose([-8.36], pred, atol=1e-2)
|
|
45
|
-
else:
|
|
46
|
-
assert_allclose([-6.66], pred, atol=1e-2)
|