-
Notifications
You must be signed in to change notification settings - Fork 175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ENH: dpnp interop for sklearnex #1374
ENH: dpnp interop for sklearnex #1374
Conversation
api support for dpnp ndarrays
update runner for added examples codestyle with black and isort check
Here's what I see in the CI summary
Do these checks work locally for you? |
Yeah I am working on it, trying understand public CI env, will reproduce it. Locally it works |
result = _copy_to_usm(usm_iface["syclobj"], result) | ||
if dpnp_available and isinstance(data[0], dpnp.ndarray): | ||
result = dpnp.array(result, copy=False) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This and related dpnp import are only functional changes in this file, the rest is formatting.
/intelci: run |
/intelci: run |
Job: http://intel-ci.intel.com/ee2baa7b-5115-f127-aa37-a4bf010d0e2e. Specifically for sklearnex examples GPU. |
|
/intelci: run |
dpnp_X_test = dpnp.asarray(X_test, usm_type="device", sycl_queue=q) | ||
|
||
knn_mdl = KNeighborsClassifier( | ||
algorithm="brute", n_neighbors=20, weights="uniform", p=2, metric="minkowski" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suppose weights="uniform", p=2, metri="minkowski"
- correspond to the Euclidean metric and normal mode of classification which are default.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be patched for both spmd and batch examples. Let's do it on separate PR
# =============================================================================== | ||
|
||
# sklearnex kNN example for GPU offloading with DPNP ndarray: | ||
# python ./knn_bf_classification_dpnp_batch.py.py |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# python ./knn_bf_classification_dpnp_batch.py.py | |
# python ./knn_bf_classification_dpnp_batch.py |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch!
Description
TODO