News for hackers. Stuff that matters.

napetrov

Re:Intel Extension for Scikit-Learn on Friday November 12, 2021 @09:30AM (#29199566)
yes, notebooks have no difference for sklernex

You likely not exporting algorithms from scikit learn again after patching - i.e. patch call should be made prior to import.

Note there are kaggle notebooks that showcase same optimizations - https://www.kaggle.com/napetrov/tps04-svm-with-intel-extensi... They are also basically notebooks

Re:Intel Extension for Scikit-Learn on Friday November 12, 2021 @09:27AM (#29199543)
vectorization, threading, cache optimizations, etc...
Re:Intel Extension for Scikit-Learn on Friday November 12, 2021 @09:17AM (#29199437)
The point is that sklernex would bring performance for all X86 architectures, not just Intel. And yes scikit developers already working on generic improvements there
Re:Intel Extension for Scikit-Learn on Friday November 12, 2021 @09:13AM (#29199401)
patching is just one of options to enable optimizations - You also can do already sklearnex import SVC

There are other ways how you can enable this https://intel.github.io/scikit-learn-intelex/what-is-patchin...

Re:Intel Extension for Scikit-Learn on Friday November 12, 2021 @09:03AM (#29199324)
You have to import KMeans again after patching.

Also in you example it's tiny problem size that have lot of fluctuations. Basically in you code you are running stock both times.

this extension also would bring perf to AMD, although Intel would be better optimized