Intel(R) Extension for Scikit-learn is easily built from sources with the majority of the necessary prerequisites available on conda or pip. The instructions below detail how to gather the prerequisites, and finally build and install the completed package. The package can be built for all three major platforms (Windows, Linux, macOS).
- Python version >= 3.6
- SKLEARNEX_VERSION: sets package version
To install the package:
cd <checkout-dir>
python setup_sklearnex.py install
To install the package in the development mode:
cd <checkout-dir>
python setup_sklearnex.py develop
To install scikit-learn-intelex without downloading daal4py:
cd <checkout-dir>
python setup_sklearnex.py install --single-version-externally-managed --record=record.txt
cd <checkout-dir>
python setup_sklearnex.py develop --no-deps
--single-version-externally-managed
and --no-deps
are required so that daal4py is not downloaded after installation of Intel(R) Extension for Scikit-learn
develop
mode will not install the package but it will create a .egg-link
in the deployment directory
back to the project source code directory. That way you can edit the source code and see the changes
without having to reinstall package every time you make a small change.
--single-version-externally-managed
is an option used for Python packages instructing the setuptools module
to create a Python package that can be easily managed by the package manager on the host.
- sphinx
- sphinx_rtd_theme
cd doc && make html
- The documentation will be in
doc/_build/html