Skip to content

Commit f0dbe74

Browse files
authored
fix: incremental pca example patching logic (#2285)
1 parent 454096a commit f0dbe74

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/sklearnex/incremental_pca_dpctl.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
# Import estimator via sklearnex's patch mechanism from sklearn
2424
from sklearnex import patch_sklearn, sklearn_is_patched
2525

26-
patch_sklearn()
26+
# IncrementalPCA is currently in preview module, so extra flag is required
27+
patch_sklearn(preview=True)
2728

2829
# Function that can validate current state of patching
2930
sklearn_is_patched()

0 commit comments

Comments
 (0)