From 6ec8f384b0fed2f3d12f58371d6ddf6ac4da4140 Mon Sep 17 00:00:00 2001 From: Samir Nasibli Date: Wed, 2 Aug 2023 11:50:32 +0200 Subject: [PATCH] MAINT: minor fixes for sklearnex examples (#1387) fix random_forest_regressor_spmd.py import sort removed typos from examples --- examples/sklearnex/knn_bf_classification_dpnp_batch.py | 2 +- examples/sklearnex/random_forest_regressor_dpnp_batch.py | 2 +- examples/sklearnex/random_forest_regressor_spmd.py | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/examples/sklearnex/knn_bf_classification_dpnp_batch.py b/examples/sklearnex/knn_bf_classification_dpnp_batch.py index 4c8a976400..fd1a359730 100644 --- a/examples/sklearnex/knn_bf_classification_dpnp_batch.py +++ b/examples/sklearnex/knn_bf_classification_dpnp_batch.py @@ -15,7 +15,7 @@ # =============================================================================== # sklearnex kNN example for GPU offloading with DPNP ndarray: -# python ./knn_bf_classification_dpnp_batch.py.py +# python ./knn_bf_classification_dpnp_batch.py import dpctl import dpnp diff --git a/examples/sklearnex/random_forest_regressor_dpnp_batch.py b/examples/sklearnex/random_forest_regressor_dpnp_batch.py index d741bdaf57..cba8a90a61 100644 --- a/examples/sklearnex/random_forest_regressor_dpnp_batch.py +++ b/examples/sklearnex/random_forest_regressor_dpnp_batch.py @@ -15,7 +15,7 @@ # =============================================================================== # sklearnex RF example for GPU offloading with DPNP ndarray: -# python ./random_forest_regressor_dpnp_batch.py.py +# python ./random_forest_regressor_dpnp_batch.py import dpnp import numpy as np diff --git a/examples/sklearnex/random_forest_regressor_spmd.py b/examples/sklearnex/random_forest_regressor_spmd.py index 3a5f10e240..797415488b 100644 --- a/examples/sklearnex/random_forest_regressor_spmd.py +++ b/examples/sklearnex/random_forest_regressor_spmd.py @@ -21,7 +21,6 @@ import dpctl import dpctl.tensor as dpt import dpnp - import numpy as np from mpi4py import MPI from numpy.testing import assert_allclose