Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry Razdoburdin committed Jul 27, 2023
1 parent 1e35587 commit d720443
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 16 deletions.
4 changes: 0 additions & 4 deletions examples/sklearnex/n_jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +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 sys

print("KNOWN BUG IN EXAMPLES. TODO: fixme")
sys.exit()

import daal4py

Expand Down
4 changes: 0 additions & 4 deletions examples/sklearnex/patch_sklearn.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@

# Calling scikit-learn patch - this would enable acceleration on all
# enabled algorithms. This is most straight forward way of patching
import sys

print("KNOWN BUG IN EXAMPLES. TODO: fixme")
sys.exit()

from sklearnex import patch_sklearn

Expand Down
3 changes: 0 additions & 3 deletions examples/sklearnex/verbose_mode.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,7 @@
# 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 sys

print("KNOWN BUG IN EXAMPLES. TODO: fixme")
sys.exit()
import logging

logging.getLogger("sklearnex").setLevel(logging.INFO)
Expand Down
5 changes: 1 addition & 4 deletions tests/run_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,10 +189,7 @@ def check_library(rule):
req_os = defaultdict(lambda: [])

skiped_files = [
"log_reg_model_builder.py",
"n_jobs.py",
"verbose_mode.py",
"patch_sklearn.py",
"log_reg_model_builder.py"
]


Expand Down
2 changes: 1 addition & 1 deletion tests/test_examples_sklearnex.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def testit(self):
files = [
f
for f in os.listdir(examples_path)
if f.endswith(".py") and "spmd" not in f and "batch" not in f
if f.endswith(".py") and "spmd" not in f and "dpnp" not in f and "dpctl" not in f
]

for file in files:
Expand Down

0 comments on commit d720443

Please sign in to comment.