<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re:Optimization Sklearn (svm.SVC) not working in Intel® Distribution for Python*</title>
    <link>https://community.intel.com/t5/Intel-Distribution-for-Python/Optimization-Sklearn-svm-SVC-not-working/m-p/1226045#M1550</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;No improvement in time may be because you are using old Intel architecture. We will check with the concerned team regarding this issue and get back to you soon.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Fri, 06 Nov 2020 12:16:49 GMT</pubDate>
    <dc:creator>AthiraM_Intel</dc:creator>
    <dc:date>2020-11-06T12:16:49Z</dc:date>
    <item>
      <title>Optimization Sklearn (svm.SVC) not working</title>
      <link>https://community.intel.com/t5/Intel-Distribution-for-Python/Optimization-Sklearn-svm-SVC-not-working/m-p/1225633#M1545</link>
      <description>&lt;P&gt;Hi all&lt;/P&gt;
&lt;P&gt;I have a issue in following when i try to run my code to check speed IntelPython making.&lt;/P&gt;
&lt;P&gt;My system:&lt;/P&gt;
&lt;P&gt;Architecture: x86_64&lt;BR /&gt;CPU op-mode(s): 32-bit, 64-bit&lt;BR /&gt;Byte Order: Little Endian&lt;BR /&gt;CPU(s): 30&lt;BR /&gt;On-line CPU(s) list: 0-29&lt;BR /&gt;Thread(s) per core: 1&lt;BR /&gt;Core(s) per socket: 1&lt;BR /&gt;Socket(s): 30&lt;BR /&gt;NUMA node(s): 1&lt;BR /&gt;Vendor ID: GenuineIntel&lt;BR /&gt;CPU family: 6&lt;BR /&gt;Model: 42&lt;BR /&gt;Model name: Intel Xeon E312xx (Sandy Bridge, IBRS update)&lt;BR /&gt;Stepping: 1&lt;BR /&gt;CPU MHz: 2194.710&lt;BR /&gt;BogoMIPS: 4389.42&lt;BR /&gt;Hypervisor vendor: KVM&lt;BR /&gt;Virtualization type: full&lt;BR /&gt;L1d cache: 32K&lt;BR /&gt;L1i cache: 32K&lt;BR /&gt;L2 cache: 4096K&lt;BR /&gt;L3 cache: 16384K&lt;BR /&gt;NUMA node0 CPU(s): 0-29&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My code:&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;from &lt;/SPAN&gt;sklearn.svm &lt;SPAN&gt;import &lt;/SPAN&gt;SVC&lt;BR /&gt;&lt;SPAN&gt;from &lt;/SPAN&gt;sklearn.datasets &lt;SPAN&gt;import &lt;/SPAN&gt;load_digits&lt;BR /&gt;&lt;SPAN&gt;from &lt;/SPAN&gt;time &lt;SPAN&gt;import &lt;/SPAN&gt;time&lt;BR /&gt;&lt;BR /&gt;svm_sklearn = SVC(&lt;SPAN&gt;kernel&lt;/SPAN&gt;=&lt;SPAN&gt;"rbf"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;gamma&lt;/SPAN&gt;=&lt;SPAN&gt;"scale"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;C&lt;/SPAN&gt;=&lt;SPAN&gt;0.5&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;probability&lt;/SPAN&gt;=&lt;SPAN&gt;True&lt;/SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;digits = load_digits()&lt;BR /&gt;X&lt;SPAN&gt;, &lt;/SPAN&gt;y = digits.data&lt;SPAN&gt;, &lt;/SPAN&gt;digits.target&lt;BR /&gt;&lt;BR /&gt;start = time()&lt;BR /&gt;svm_sklearn = svm_sklearn.fit(X&lt;SPAN&gt;, &lt;/SPAN&gt;y)&lt;BR /&gt;end = time()&lt;BR /&gt;&lt;SPAN&gt;print&lt;/SPAN&gt;(end - start) &lt;SPAN&gt;# output: 0.141261...&lt;BR /&gt;&lt;/SPAN&gt;t = time()&lt;BR /&gt;&lt;SPAN&gt;print&lt;/SPAN&gt;(svm_sklearn.score(X&lt;SPAN&gt;, &lt;/SPAN&gt;y)) &lt;SPAN&gt;# output: 0.9905397885364496&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;print&lt;/SPAN&gt;(svm_sklearn.score(X&lt;SPAN&gt;, &lt;/SPAN&gt;y)) &lt;SPAN&gt;# output: 0.9905397885364496&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;print&lt;/SPAN&gt;(svm_sklearn.score(X&lt;SPAN&gt;, &lt;/SPAN&gt;y)) &lt;SPAN&gt;# output: 0.9905397885364496&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;print&lt;/SPAN&gt;(time() - t&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;'(s)'&lt;/SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;from &lt;/SPAN&gt;daal4py.sklearn &lt;SPAN&gt;import &lt;/SPAN&gt;patch_sklearn&lt;BR /&gt;patch_sklearn() &lt;SPAN&gt;# &amp;lt;-- apply patch&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;from &lt;/SPAN&gt;sklearn.svm &lt;SPAN&gt;import &lt;/SPAN&gt;SVC&lt;BR /&gt;&lt;BR /&gt;svm_d4p = SVC(&lt;SPAN&gt;kernel&lt;/SPAN&gt;=&lt;SPAN&gt;"rbf"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;gamma&lt;/SPAN&gt;=&lt;SPAN&gt;"scale"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;C&lt;/SPAN&gt;=&lt;SPAN&gt;0.5&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;probability&lt;/SPAN&gt;=&lt;SPAN&gt;True&lt;/SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;start = time()&lt;BR /&gt;svm_d4p = svm_d4p.fit(X&lt;SPAN&gt;, &lt;/SPAN&gt;y)&lt;BR /&gt;end = time()&lt;BR /&gt;&lt;SPAN&gt;print&lt;/SPAN&gt;(end - start) &lt;SPAN&gt;# output: 0.032536...&lt;BR /&gt;&lt;/SPAN&gt;t = time()&lt;BR /&gt;&lt;SPAN&gt;print&lt;/SPAN&gt;(svm_d4p.score(X&lt;SPAN&gt;, &lt;/SPAN&gt;y)) &lt;SPAN&gt;# output: 0.9905397885364496&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;print&lt;/SPAN&gt;(svm_d4p.score(X&lt;SPAN&gt;, &lt;/SPAN&gt;y)) &lt;SPAN&gt;# output: 0.9905397885364496&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;print&lt;/SPAN&gt;(svm_d4p.score(X&lt;SPAN&gt;, &lt;/SPAN&gt;y)) &lt;SPAN&gt;# output: 0.9905397885364496&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;print&lt;/SPAN&gt;(time() - t&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;'(s)'&lt;/SPAN&gt;)&lt;/PRE&gt;
&lt;P&gt;and its result&lt;/P&gt;
&lt;P&gt;1.0682997703552246&lt;BR /&gt;0.9905397885364496&lt;BR /&gt;0.9905397885364496&lt;BR /&gt;0.9905397885364496&lt;BR /&gt;0.6014969348907471 (s)&lt;BR /&gt;Intel(R) Data Analytics Acceleration Library (Intel(R) DAAL) solvers for sklearn enabled: &lt;A href="https://intelpython.github.io/daal4py/sklearn.html" target="_blank"&gt;https://intelpython.github.io/daal4py/sklearn.html&lt;/A&gt;&lt;BR /&gt;0.9806723594665527&lt;BR /&gt;0.9905397885364496&lt;BR /&gt;0.9905397885364496&lt;BR /&gt;0.9905397885364496&lt;BR /&gt;0.6032438278198242 (s)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I cant understand this. Speeds are similar but i hava 30 cores.&lt;/P&gt;
&lt;P&gt;conda list:&lt;/P&gt;
&lt;P&gt;# Name Version Build Channel&lt;BR /&gt;absl-py 0.10.0 py37hc8dfbb8_1 &amp;lt;unknown&amp;gt;&lt;BR /&gt;aiohttp 3.6.3 py38h1e0a361_2 &amp;lt;unknown&amp;gt;&lt;BR /&gt;asn1crypto 1.3.0 py37_0 intel&lt;BR /&gt;astunparse 1.6.3 py_0 &amp;lt;unknown&amp;gt;&lt;BR /&gt;async-timeout 3.0.1 py37_0 &amp;lt;unknown&amp;gt;&lt;BR /&gt;attrs 20.2.0 py_0 &amp;lt;unknown&amp;gt;&lt;BR /&gt;blinker 1.4 py37_0 &amp;lt;unknown&amp;gt;&lt;BR /&gt;boto 2.49.0 py_0 &amp;lt;unknown&amp;gt;&lt;BR /&gt;boto3 1.16.9 pyhd8ed1ab_0 &amp;lt;unknown&amp;gt;&lt;BR /&gt;botocore 1.19.9 pyhd3deb0d_0 &amp;lt;unknown&amp;gt;&lt;BR /&gt;bzip2 1.0.8 h14c3975_2 intel&lt;BR /&gt;c-ares 1.16.1 h516909a_3 &amp;lt;unknown&amp;gt;&lt;BR /&gt;cachetools 4.1.1 py_0 &amp;lt;unknown&amp;gt;&lt;BR /&gt;certifi 2020.4.5.2 py37_0 intel&lt;BR /&gt;cffi 1.14.0 py37h14c3975_2 intel&lt;BR /&gt;chardet 3.0.4 py37_3 intel&lt;BR /&gt;click 7.1.2 py_0 &amp;lt;unknown&amp;gt;&lt;BR /&gt;conda 4.8.3 py37_0 intel&lt;BR /&gt;conda-package-handling 1.4.1 py37_2 intel&lt;BR /&gt;cryptography 2.9.2 py37_0 intel&lt;BR /&gt;cycler 0.10.0 py37_7 intel&lt;BR /&gt;cython 0.29.17 py37h6ebd63d_0 intel&lt;BR /&gt;daal 2020.2 intel_254 &amp;lt;unknown&amp;gt;&lt;BR /&gt;daal4py 0.2020.2 py37h533f8aa_7 intel&lt;BR /&gt;docutils 0.16 pypi_0 pypi&lt;BR /&gt;et-xmlfile 1.0.1 py_0 &amp;lt;unknown&amp;gt;&lt;BR /&gt;fastapi 0.60.1 pypi_0 pypi&lt;BR /&gt;fastbpe 0.1.0 pypi_0 pypi&lt;BR /&gt;flit 2.3.0 pypi_0 pypi&lt;BR /&gt;flit-core 2.3.0 pypi_0 pypi&lt;BR /&gt;freetype 2.10.2 0 intel&lt;BR /&gt;funcsigs 1.0.2 py37_7 intel&lt;BR /&gt;gast 0.3.3 py_0 &amp;lt;unknown&amp;gt;&lt;BR /&gt;gensim 3.7.3 py37he1b5a44_1 &amp;lt;unknown&amp;gt;&lt;BR /&gt;google-auth 1.22.0 py_0 &amp;lt;unknown&amp;gt;&lt;BR /&gt;google-auth-oauthlib 0.4.1 py_2 &amp;lt;unknown&amp;gt;&lt;BR /&gt;google-pasta 0.2.0 pyh8c360ce_0 &amp;lt;unknown&amp;gt;&lt;BR /&gt;grpcio 1.31.0 py37hb0870dc_0 &amp;lt;unknown&amp;gt;&lt;BR /&gt;h11 0.9.0 pypi_0 pypi&lt;BR /&gt;h5py 2.10.0 nompi_py37hf7afa78_105 &amp;lt;unknown&amp;gt;&lt;BR /&gt;hdf5 1.10.6 hb1b8bf9_0 &amp;lt;unknown&amp;gt;&lt;BR /&gt;httptools 0.1.1 pypi_0 pypi&lt;BR /&gt;icc_rt 2020.2 intel_254 &amp;lt;unknown&amp;gt;&lt;BR /&gt;idna 2.9 py37_0 intel&lt;BR /&gt;impi_rt 2019.8 intel_254 &amp;lt;unknown&amp;gt;&lt;BR /&gt;importlib-metadata 2.0.0 py37hc8dfbb8_0 &amp;lt;unknown&amp;gt;&lt;BR /&gt;intel-openmp 2020.2 intel_254 &amp;lt;unknown&amp;gt;&lt;BR /&gt;intelpython 2020.2 0 intel&lt;BR /&gt;ipp 2020.2 intel_254 &amp;lt;unknown&amp;gt;&lt;BR /&gt;jdcal 1.4.1 py_0 &amp;lt;unknown&amp;gt;&lt;BR /&gt;jmespath 0.10.0 py_0 &amp;lt;unknown&amp;gt;&lt;BR /&gt;joblib 0.15.1 py37_0 intel&lt;BR /&gt;keras 2.4.3 py_0 &amp;lt;unknown&amp;gt;&lt;BR /&gt;keras-base 2.4.3 py_0 &amp;lt;unknown&amp;gt;&lt;BR /&gt;keras-preprocessing 1.1.0 py_0 &amp;lt;unknown&amp;gt;&lt;BR /&gt;kiwisolver 1.2.0 py37hf484d3e_0 intel&lt;BR /&gt;libarchive 3.4.2 h62408e4_0 &amp;lt;unknown&amp;gt;&lt;BR /&gt;libffi 3.3 11 intel&lt;BR /&gt;libgcc-ng 9.1.0 hdf63c60_0 intel&lt;BR /&gt;libgfortran-ng 7.3.0 hdf63c60_0 &amp;lt;unknown&amp;gt;&lt;BR /&gt;libpng 1.6.37 4 intel&lt;BR /&gt;libprotobuf 3.13.0.1 h200bbdf_0 &amp;lt;unknown&amp;gt;&lt;BR /&gt;libstdcxx-ng 9.1.0 hdf63c60_0 intel&lt;BR /&gt;libxml2 2.9.10 h14c3975_0 intel&lt;BR /&gt;llvmlite 0.32.1 py37h75308e0_0 intel&lt;BR /&gt;lz4-c 1.9.2 hf484d3e_1 intel&lt;BR /&gt;lzo 2.10 h14c3975_4 intel&lt;BR /&gt;markdown 3.3.2 py37_0 &amp;lt;unknown&amp;gt;&lt;BR /&gt;matplotlib 3.1.2 py37hf484d3e_5 intel&lt;BR /&gt;mkl 2020.2 intel_254 &amp;lt;unknown&amp;gt;&lt;BR /&gt;mkl-service 2.3.0 py37_4 intel&lt;BR /&gt;mkl_fft 1.1.0 py37h6ebd63d_3 intel&lt;BR /&gt;mkl_random 1.1.1 py37h6ebd63d_3 intel&lt;BR /&gt;mpi4py 3.0.3 py37hf484d3e_7 intel&lt;BR /&gt;multidict 4.7.6 py37h7b6447c_1 &amp;lt;unknown&amp;gt;&lt;BR /&gt;mysql-connector-python 8.0.22 pypi_0 pypi&lt;BR /&gt;nltk 3.5 pypi_0 pypi&lt;BR /&gt;numba 0.49.1 np118py37hf484d3e_2 intel&lt;BR /&gt;numexpr 2.7.0 py37_2 intel&lt;BR /&gt;numpy 1.18.5 py37h6ebd63d_5 intel&lt;BR /&gt;numpy-base 1.18.5 py37_5 intel&lt;BR /&gt;oauthlib 3.1.0 py_0 &amp;lt;unknown&amp;gt;&lt;BR /&gt;openpyxl 3.0.5 pypi_0 pypi&lt;BR /&gt;openssl 1.1.1g h14c3975_1 intel&lt;BR /&gt;opt_einsum 3.1.0 py_0 &amp;lt;unknown&amp;gt;&lt;BR /&gt;pandas 0.25.3 py37hf484d3e_6 intel&lt;BR /&gt;pip 20.1 py37_0 intel&lt;BR /&gt;protobuf 3.13.0.1 py37hb809cae_1 &amp;lt;unknown&amp;gt;&lt;BR /&gt;pyasn1 0.4.8 py_0 &amp;lt;unknown&amp;gt;&lt;BR /&gt;pyasn1-modules 0.2.8 py_0 &amp;lt;unknown&amp;gt;&lt;BR /&gt;pycosat 0.6.3 py37_5 intel&lt;BR /&gt;pycparser 2.20 py37_1 intel&lt;BR /&gt;pydantic 1.6.1 pypi_0 pypi&lt;BR /&gt;pyeditline 2.0.1 py37_0 intel&lt;BR /&gt;pyjwt 1.7.1 py_0 &amp;lt;unknown&amp;gt;&lt;BR /&gt;pymysql 0.10.1 pypi_0 pypi&lt;BR /&gt;pymysql-pool 0.3.4 pypi_0 pypi&lt;BR /&gt;pyopenssl 19.1.0 py37_1 intel&lt;BR /&gt;pyparsing 2.4.7 py37_1 intel&lt;BR /&gt;pysocks 1.7.0 py37_1 intel&lt;BR /&gt;python 3.7.7 hf484d3e_13 intel&lt;BR /&gt;python-crfsuite 0.9.7 py37h99015e2_1 &amp;lt;unknown&amp;gt;&lt;BR /&gt;python-dateutil 2.8.1 py37_1 intel&lt;BR /&gt;python-libarchive-c 2.8 py37_13 intel&lt;BR /&gt;pytoml 0.1.21 pypi_0 pypi&lt;BR /&gt;pytz 2020.1 py37_0 intel&lt;BR /&gt;pyvi 0.1 pypi_0 pypi&lt;BR /&gt;pyyaml 5.3 py37_0 intel&lt;BR /&gt;regex 2019.8.19 pypi_0 pypi&lt;BR /&gt;requests 2.23.0 py37_4 intel&lt;BR /&gt;requests-oauthlib 1.3.0 pyh9f0ad1d_0 &amp;lt;unknown&amp;gt;&lt;BR /&gt;rsa 4.6 pyh9f0ad1d_0 &amp;lt;unknown&amp;gt;&lt;BR /&gt;ruamel_yaml 0.15.99 py37_5 intel&lt;BR /&gt;scikit-learn 0.23.1 py37h6ebd63d_0 intel&lt;BR /&gt;scipy 1.4.1 py37h6ebd63d_7 intel&lt;BR /&gt;setuptools 47.3.0 py37_0 intel&lt;BR /&gt;six 1.15.0 py37_0 intel&lt;BR /&gt;sklearn-crfsuite 0.3.6 pyh9f0ad1d_0 &amp;lt;unknown&amp;gt;&lt;BR /&gt;smart_open 2.1.0 py_0 &amp;lt;unknown&amp;gt;&lt;BR /&gt;smp 0.1.4 py37_0 intel&lt;BR /&gt;sqlite 3.32.1 h14c3975_1 intel&lt;BR /&gt;starlette 0.13.6 pypi_0 pypi&lt;BR /&gt;tabulate 0.8.7 pyh9f0ad1d_0 &amp;lt;unknown&amp;gt;&lt;BR /&gt;tbb 2020.3 intel_254 &amp;lt;unknown&amp;gt;&lt;BR /&gt;tbb4py 2020.3 py37_intel_0 &amp;lt;unknown&amp;gt;&lt;BR /&gt;tcl 8.6.9 h14c3975_2 intel&lt;BR /&gt;tensorboard 2.2.1 pyh532a8cf_0 &amp;lt;unknown&amp;gt;&lt;BR /&gt;tensorboard-plugin-wit 1.6.0 py_0 &amp;lt;unknown&amp;gt;&lt;BR /&gt;tensorflow 2.2.0 py37_0 &amp;lt;unknown&amp;gt;&lt;BR /&gt;tensorflow-base 2.2.0 0 &amp;lt;unknown&amp;gt;&lt;BR /&gt;tensorflow-estimator 2.2.0 pyh208ff02_0 &amp;lt;unknown&amp;gt;&lt;BR /&gt;tensorflow-mkl 2.2.0 h4fcabd2_0 &amp;lt;unknown&amp;gt;&lt;BR /&gt;termcolor 1.1.0 py37_1 &amp;lt;unknown&amp;gt;&lt;BR /&gt;threadpoolctl 2.1.0 pyh5ca1d4c_0 &amp;lt;unknown&amp;gt;&lt;BR /&gt;tk 8.6.9 6 intel&lt;BR /&gt;tqdm 4.39.0 py37_2 intel&lt;BR /&gt;unidecode 1.1.1 pypi_0 pypi&lt;BR /&gt;urllib3 1.25.9 py37_0 intel&lt;BR /&gt;uvicorn 0.11.6 pypi_0 pypi&lt;BR /&gt;uvloop 0.14.0 pypi_0 pypi&lt;BR /&gt;websockets 8.1 pypi_0 pypi&lt;BR /&gt;werkzeug 1.0.1 pyh9f0ad1d_0 &amp;lt;unknown&amp;gt;&lt;BR /&gt;wheel 0.34.2 py37_4 intel&lt;BR /&gt;wrapt 1.11.2 py37h8f50634_1 &amp;lt;unknown&amp;gt;&lt;BR /&gt;xgboost 1.1.1 497_gcd3d14apy37_0 intel&lt;BR /&gt;xlrd 1.2.0 pypi_0 pypi&lt;BR /&gt;xz 5.2.5 h14c3975_0 intel&lt;BR /&gt;yaml 0.1.7 6 intel&lt;BR /&gt;yarl 1.6.2 py37h8f50634_0 &amp;lt;unknown&amp;gt;&lt;BR /&gt;zipp 3.3.1 py_0 &amp;lt;unknown&amp;gt;&lt;BR /&gt;zlib 1.2.11.1 h14c3975_1 intel&lt;BR /&gt;zstd 1.4.4 hf484d3e_1 intel&lt;/P&gt;
&lt;P&gt;i thinks its useful&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you give me a advice?? Plz&lt;/P&gt;
&lt;P&gt;Thanks for reading.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2020 03:19:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-for-Python/Optimization-Sklearn-svm-SVC-not-working/m-p/1225633#M1545</guid>
      <dc:creator>cuongnguyengit</dc:creator>
      <dc:date>2020-11-05T03:19:40Z</dc:date>
    </item>
    <item>
      <title>Re:Optimization Sklearn (svm.SVC) not working</title>
      <link>https://community.intel.com/t5/Intel-Distribution-for-Python/Optimization-Sklearn-svm-SVC-not-working/m-p/1225749#M1547</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks for reaching out to us.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Could you please try the same after exporting the below command and check whether there is any improvement in time.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;export USE_DAAL4PY_SKLEARN=1&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We could see that you are using an old intel hardware.&lt;/P&gt;&lt;P&gt;We tried the same in latest intel architecture (cascade lake).&lt;/P&gt;&lt;P&gt;After exporting the above command , we observed an improvement in&amp;nbsp;time.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We got the following result :&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Intel(R) Data Analytics Acceleration Library (Intel(R) DAAL) solvers for sklearn enabled: &lt;A href="https://intelpython.github.io/daal4py/sklearn.html" target="_blank"&gt;https://intelpython.github.io/daal4py/sklearn.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;0.41217684745788574&lt;/P&gt;&lt;P&gt;0.9905397885364496&lt;/P&gt;&lt;P&gt;0.9905397885364496&lt;/P&gt;&lt;P&gt;0.9905397885364496&lt;/P&gt;&lt;P&gt;0.42245054244995117 (s)&lt;/P&gt;&lt;P&gt;Intel(R) Data Analytics Acceleration Library (Intel(R) DAAL) solvers for sklearn enabled: &lt;A href="https://intelpython.github.io/daal4py/sklearn.html" target="_blank"&gt;https://intelpython.github.io/daal4py/sklearn.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;0.39907169342041016&lt;/P&gt;&lt;P&gt;0.9910962715637173&lt;/P&gt;&lt;P&gt;0.9910962715637173&lt;/P&gt;&lt;P&gt;0.9910962715637173&lt;/P&gt;&lt;P&gt;0.3754143714904785 (s)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also you can try with a bigger dataset to check if there is significant improvement in time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 05 Nov 2020 13:09:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-for-Python/Optimization-Sklearn-svm-SVC-not-working/m-p/1225749#M1547</guid>
      <dc:creator>AthiraM_Intel</dc:creator>
      <dc:date>2020-11-05T13:09:22Z</dc:date>
    </item>
    <item>
      <title>Re: Re:Optimization Sklearn (svm.SVC) not working</title>
      <link>https://community.intel.com/t5/Intel-Distribution-for-Python/Optimization-Sklearn-svm-SVC-not-working/m-p/1225924#M1548</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Thanks for your reply.&lt;/P&gt;
&lt;P&gt;I did as below:&lt;/P&gt;
&lt;P&gt;export USE_DAAL4PY_SKLEARN=1&lt;/P&gt;
&lt;P&gt;source activate root&lt;/P&gt;
&lt;P&gt;python3.7 test.py&lt;/P&gt;
&lt;P&gt;and output is:&lt;/P&gt;
&lt;P&gt;Intel(R) Data Analytics Acceleration Library (Intel(R) DAAL) solvers for sklearn enabled: &lt;A href="https://intelpython.github.io/daal4py/sklearn.html" target="_blank"&gt;https://intelpython.github.io/daal4py/sklearn.html&lt;/A&gt;&lt;BR /&gt;1.0459799766540527&lt;BR /&gt;0.9905397885364496&lt;BR /&gt;0.9905397885364496&lt;BR /&gt;0.9905397885364496&lt;BR /&gt;0.631990909576416 (s)&lt;BR /&gt;Intel(R) Data Analytics Acceleration Library (Intel(R) DAAL) solvers for sklearn enabled: &lt;A href="https://intelpython.github.io/daal4py/sklearn.html" target="_blank"&gt;https://intelpython.github.io/daal4py/sklearn.html&lt;/A&gt;&lt;BR /&gt;1.02339506149292&lt;BR /&gt;0.9905397885364496&lt;BR /&gt;0.9905397885364496&lt;BR /&gt;0.9905397885364496&lt;BR /&gt;0.6148135662078857 (s))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think they have no change in time. When i dont use command "export USE_DAAL4PY_SKLEARN=1", my training svm time is the same or better sometime.&lt;/P&gt;
&lt;P&gt;The program would be better than it?&lt;/P&gt;
&lt;P&gt;My code is from a sample in your github running very good.&lt;/P&gt;
&lt;P&gt;I look forward to be more.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Nov 2020 01:50:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-for-Python/Optimization-Sklearn-svm-SVC-not-working/m-p/1225924#M1548</guid>
      <dc:creator>cuongnguyengit</dc:creator>
      <dc:date>2020-11-06T01:50:29Z</dc:date>
    </item>
    <item>
      <title>Re:Optimization Sklearn (svm.SVC) not working</title>
      <link>https://community.intel.com/t5/Intel-Distribution-for-Python/Optimization-Sklearn-svm-SVC-not-working/m-p/1226045#M1550</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;No improvement in time may be because you are using old Intel architecture. We will check with the concerned team regarding this issue and get back to you soon.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 06 Nov 2020 12:16:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-for-Python/Optimization-Sklearn-svm-SVC-not-working/m-p/1226045#M1550</guid>
      <dc:creator>AthiraM_Intel</dc:creator>
      <dc:date>2020-11-06T12:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: Re:Optimization Sklearn (svm.SVC) not working</title>
      <link>https://community.intel.com/t5/Intel-Distribution-for-Python/Optimization-Sklearn-svm-SVC-not-working/m-p/1226191#M1551</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am an engineer looking into your case. Please also let me know which OS system you have if the solutions I outline below do not work.&lt;/P&gt;
&lt;P&gt;There are a few options you can try:&lt;/P&gt;
&lt;P&gt;1) Ensure that environment variable is turned on&amp;nbsp;&lt;STRONG&gt;only&lt;/STRONG&gt; when you run accelerated scikit-learn. If you turn on the environment variable before running the whole script, it will turn on Intel accelerations for &lt;STRONG&gt;both&lt;/STRONG&gt; versions, regardless of whether you've included the monkey-patch programmatically or not (you can see it's turned on for both sklearn versions in the script as it indicates from the print out saying "solvers enabled" twice).&lt;/P&gt;
&lt;P&gt;If you separate the non-accelerated scikit-learn and the accelerated scikit-learn into two scripts, then only turn on the environment variable or monkey-patch only with the Intel-accelerated one, you should be able to see a difference. Also note that the toy scikit-learn dataset used in this sample is fairly small, which can also explain why you may not see a difference (it may not be large enough to show a difference on your hardware).&lt;/P&gt;
&lt;P&gt;You can also separate the non-accelerated and accelerated scikit-learn into different environments and then try running them (put the non-accelerated scikit-learn in a separate environment without IDP).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2) I notice that you are using IDP/daal4py 2020 update 2. Please consider updated IDP to version 2020 update 4 or daal4py/Intel scikit-learn to version 2020 update 3 directly. There were updates done to the scikit-learn accelerations in this, so this should help. This may also allow you to gain more performance.&lt;/P&gt;
&lt;P&gt;3) You can also check if Intel accelerated scikit-learn is being utilized with verbose mode (it will show you a series of print statements which should indicate which implementation is being called). I suggest trying this while the non-accelerated scikit-learn is commented out.&lt;/P&gt;
&lt;P&gt;In your command line shell, use the following command:&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN class="n"&gt;#for linux or macOS&lt;BR /&gt;export&lt;/SPAN&gt; &lt;SPAN class="n"&gt;IDP_SKLEARN_VERBOSE&lt;/SPAN&gt;&lt;SPAN class="o"&gt;=&lt;/SPAN&gt;&lt;SPAN class="n"&gt;INFO&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;PRE&gt;&lt;SPAN class="nb"&gt;#for windows&lt;BR /&gt;set&lt;/SPAN&gt; &lt;SPAN class="n"&gt;IDP_SKLEARN_VERBOSE&lt;/SPAN&gt;&lt;SPAN class="o"&gt;=&lt;/SPAN&gt;&lt;SPAN class="n"&gt;INFO&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;Please let me know if this helps, also refer &lt;A href="https://intelpython.github.io/daal4py/sklearn.html" target="_self"&gt;here&lt;/A&gt; to the daal4py scikit-learn documentaion for more information.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Rachel&lt;/P&gt;</description>
      <pubDate>Fri, 06 Nov 2020 21:27:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-for-Python/Optimization-Sklearn-svm-SVC-not-working/m-p/1226191#M1551</guid>
      <dc:creator>Rachel_O_Intel</dc:creator>
      <dc:date>2020-11-06T21:27:14Z</dc:date>
    </item>
    <item>
      <title>Re: Re:Optimization Sklearn (svm.SVC) not working</title>
      <link>https://community.intel.com/t5/Intel-Distribution-for-Python/Optimization-Sklearn-svm-SVC-not-working/m-p/1226276#M1552</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I will try your solutions soon.&lt;/P&gt;
&lt;P&gt;I have a more question. I installed the Intel distribution for Python for ambitions possible to speed up my machine learning code (Sklearn) and deep learning code ( with Tensorflow)&lt;/P&gt;
&lt;P&gt;but my intel hardware system is old and not working really as my wish.&lt;/P&gt;
&lt;P&gt;So i want to ask whether my deep learning code is better when my system doesnt have a GPU for running it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 07 Nov 2020 09:01:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-for-Python/Optimization-Sklearn-svm-SVC-not-working/m-p/1226276#M1552</guid>
      <dc:creator>cuongnguyengit</dc:creator>
      <dc:date>2020-11-07T09:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: Re:Optimization Sklearn (svm.SVC) not working</title>
      <link>https://community.intel.com/t5/Intel-Distribution-for-Python/Optimization-Sklearn-svm-SVC-not-working/m-p/1226746#M1553</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Please let me know if my solutions helped resolve your scikit-learn issues or if you have any other problems with viewing scikit-learn performance related to this issue.&lt;/P&gt;
&lt;P&gt;I suggest posting your deep learning performance inquiries separately on the &lt;A href="https://community.intel.com/t5/Intel-Optimized-AI-Frameworks/bd-p/optimized-ai-frameworks" target="_self"&gt;Intel Optimized AI Frameworks Forum&lt;/A&gt;. That forum will have better equipped experts to assist you on optimizing your deep learning code.&lt;/P&gt;
&lt;P&gt;Please note that Intel Distribution for Python includes Intel optimizations for NumPy, SciPy, Scikit-Learn, and daal4py. Intel Optimized TensorFlow is considered a separate product that is not included or optimized by Intel Distribution of Python.&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;Rachel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Nov 2020 21:00:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-for-Python/Optimization-Sklearn-svm-SVC-not-working/m-p/1226746#M1553</guid>
      <dc:creator>Rachel_O_Intel</dc:creator>
      <dc:date>2020-11-09T21:00:14Z</dc:date>
    </item>
    <item>
      <title>Re: Re:Optimization Sklearn (svm.SVC) not working</title>
      <link>https://community.intel.com/t5/Intel-Distribution-for-Python/Optimization-Sklearn-svm-SVC-not-working/m-p/1226790#M1554</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Thanks for your support. &lt;BR /&gt;&lt;BR /&gt;I am trying to update IDP to version 2020 update 4 but it spent more time i think. &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 09 Nov 2020 23:41:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-for-Python/Optimization-Sklearn-svm-SVC-not-working/m-p/1226790#M1554</guid>
      <dc:creator>cuongnguyengit</dc:creator>
      <dc:date>2020-11-09T23:41:28Z</dc:date>
    </item>
    <item>
      <title>Re: Re:Optimization Sklearn (svm.SVC) not working</title>
      <link>https://community.intel.com/t5/Intel-Distribution-for-Python/Optimization-Sklearn-svm-SVC-not-working/m-p/1227026#M1555</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After i update the software i think it worked. Time for training in my example have only 0.58 s&lt;/P&gt;
&lt;P&gt;and time for testing is 0.6s.&lt;/P&gt;
&lt;P&gt;It is significantly great for my task.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2020 14:36:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-for-Python/Optimization-Sklearn-svm-SVC-not-working/m-p/1227026#M1555</guid>
      <dc:creator>cuongnguyengit</dc:creator>
      <dc:date>2020-11-10T14:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: Re:Optimization Sklearn (svm.SVC) not working</title>
      <link>https://community.intel.com/t5/Intel-Distribution-for-Python/Optimization-Sklearn-svm-SVC-not-working/m-p/1227128#M1556</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am glad to hear that you can now see the performance speedup in your code.&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;Please also look at the &lt;/SPAN&gt;&lt;A style="font-family: inherit; background-color: #ffffff;" href="https://intelpython.github.io/daal4py/" target="_self"&gt;daal4py&lt;/A&gt;&lt;SPAN style="font-family: inherit;"&gt; and accelerated &lt;/SPAN&gt;&lt;A style="font-family: inherit; background-color: #ffffff;" href="https://intelpython.github.io/daal4py/sklearn.html" target="_self"&gt;scikit-learn API&lt;/A&gt;&lt;SPAN style="font-family: inherit;"&gt; documentation for reference.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Is your classical ML issue resolved?&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;Rachel&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2020 20:16:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-for-Python/Optimization-Sklearn-svm-SVC-not-working/m-p/1227128#M1556</guid>
      <dc:creator>Rachel_O_Intel</dc:creator>
      <dc:date>2020-11-10T20:16:23Z</dc:date>
    </item>
    <item>
      <title>Re: Re:Optimization Sklearn (svm.SVC) not working</title>
      <link>https://community.intel.com/t5/Intel-Distribution-for-Python/Optimization-Sklearn-svm-SVC-not-working/m-p/1227249#M1557</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;my issue is solved by update Intel distribution for python version.&lt;/P&gt;
&lt;P&gt;Thank you very much for your supports&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2020 03:12:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-for-Python/Optimization-Sklearn-svm-SVC-not-working/m-p/1227249#M1557</guid>
      <dc:creator>cuongnguyengit</dc:creator>
      <dc:date>2020-11-11T03:12:48Z</dc:date>
    </item>
    <item>
      <title>Re: Re:Optimization Sklearn (svm.SVC) not working</title>
      <link>https://community.intel.com/t5/Intel-Distribution-for-Python/Optimization-Sklearn-svm-SVC-not-working/m-p/1228159#M1559</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;No problem, I am glad your issue was resolved.&lt;/P&gt;
&lt;P&gt;Thanks for the confirmation. This thread will be no longer supported by Intel, please raise a new thread if you have any further issues.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;Rachel&lt;/P&gt;</description>
      <pubDate>Fri, 13 Nov 2020 16:12:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-for-Python/Optimization-Sklearn-svm-SVC-not-working/m-p/1228159#M1559</guid>
      <dc:creator>Rachel_O_Intel</dc:creator>
      <dc:date>2020-11-13T16:12:39Z</dc:date>
    </item>
  </channel>
</rss>

