diff --git a/examples/daal4py/decision_forest_classification_traverse.py b/examples/daal4py/decision_forest_classification_traverse.py index 2e2ddcb853..a3b1ed5d21 100755 --- a/examples/daal4py/decision_forest_classification_traverse.py +++ b/examples/daal4py/decision_forest_classification_traverse.py @@ -22,8 +22,6 @@ import daal4py as d4p -import daal4py as d4p - def printTree(nodes, values): def printNodes(node_id, nodes, values, level): diff --git a/examples/daal4py/decision_forest_regression_traverse.py b/examples/daal4py/decision_forest_regression_traverse.py index cefa46017d..7217c546cd 100755 --- a/examples/daal4py/decision_forest_regression_traverse.py +++ b/examples/daal4py/decision_forest_regression_traverse.py @@ -22,8 +22,6 @@ import daal4py as d4p -import daal4py as d4p - def printTree(nodes, values): def printNodes(node_id, nodes, values, level): diff --git a/examples/daal4py/gradient_boosted_classification_traverse.py b/examples/daal4py/gradient_boosted_classification_traverse.py index 214552dbfa..0ff20553ba 100644 --- a/examples/daal4py/gradient_boosted_classification_traverse.py +++ b/examples/daal4py/gradient_boosted_classification_traverse.py @@ -22,8 +22,6 @@ import daal4py as d4p -import daal4py as d4p - def printTree(nodes, values): def printNodes(node_id, nodes, values, level): diff --git a/examples/daal4py/gradient_boosted_regression_traverse.py b/examples/daal4py/gradient_boosted_regression_traverse.py index 7811db70d0..b0316eb14d 100644 --- a/examples/daal4py/gradient_boosted_regression_traverse.py +++ b/examples/daal4py/gradient_boosted_regression_traverse.py @@ -22,8 +22,6 @@ import daal4py as d4p -import daal4py as d4p - def printTree(nodes, values): def printNodes(node_id, nodes, values, level): diff --git a/examples/sklearnex/n_jobs.py b/examples/sklearnex/n_jobs.py index 4c27a79db3..13a5c05777 100644 --- a/examples/sklearnex/n_jobs.py +++ b/examples/sklearnex/n_jobs.py @@ -18,7 +18,6 @@ # scikit-learn n_jobs yet. Thus it's requered to use daal4py package to set this. # nthreads parameter define number of threads used by sklearnex. # Without this code sklearnex would be using all system cores - import daal4py daal4py.daalinit(nthreads=2) diff --git a/examples/sklearnex/patch_sklearn.py b/examples/sklearnex/patch_sklearn.py index 268e606218..3a87702cbf 100644 --- a/examples/sklearnex/patch_sklearn.py +++ b/examples/sklearnex/patch_sklearn.py @@ -16,7 +16,6 @@ # Calling scikit-learn patch - this would enable acceleration on all # enabled algorithms. This is most straight forward way of patching - from sklearnex import patch_sklearn patch_sklearn() diff --git a/examples/sklearnex/verbose_mode.py b/examples/sklearnex/verbose_mode.py index c130660f29..2cd610fc55 100644 --- a/examples/sklearnex/verbose_mode.py +++ b/examples/sklearnex/verbose_mode.py @@ -17,7 +17,6 @@ # sklearnex can help you debug your aplications by printing messages on it's invocation # to allow you to see if stock of accelerated version was used. # By setting sklearnex logger level to "INFO" you would enable this verbose mode - import logging logging.getLogger("sklearnex").setLevel(logging.INFO)