Skip to main content

PyZSS AOCL Data Analytics scikit-learn Extension and Python Interfaces

Project description

The latest AMD plugin for scikit-learn is here!

AMD’s AOCL Data Analytics Library provides optimized building blocks for data analysis and classical machine learning applications. The package leverages the AMD optimizing CPU libraries (AOCL) to provide outstanding performance, not just on AMD processors but on other x86 hardware too.

Existing scikit-learn users can benefit from the performance of the AOCL Data Analytics Library without making any code changes, by simply patching existing scikit-learn code so that it automatically calls the library. The AOCL Data Analytics Library also comes with additional Python APIs, providing access to algorithms not included in scikit-learn, such as nonlinear least squares optimization.

Installation

The easiest way to access the AOCL Data Analytics Library is via the pip install command, which will download and install an appropriate wheel directly from PyPI.

Python wheels can also be downloaded directly from AMD’s AOCL-DA page and installed using pip.

For Linux users, Python packages can also be downloaded and built using Spack.

The AOCL Data Analytics Source code and compilation instructions are available at https://github.com/amd/aocl-data-analytics/.

Using the scikit-learn extension

Existing scikit-learn users can patch code to replace the scikit-learn symbols with AOCL Data Analytics symbols. This can be done by inserting the following lines prior to the scikit-learn import statement.

from aoclda.sklearn import skpatch, undo_skpatch
skpatch()

You can switch back to standard scikit-learn using

undo_skpatch()

Note that after calling undo_skpatch, you must reimport scikit-learn.

The skpatch and undo_skpatch functions can also be called with string or list arguments, specifying which scikit-learn package should be patched, for example:

skpatch("PCA")
skpatch(["LinearRegression", "Ridge"])

Alternatively, you may wish to use the aoclda.sklearn module from the command line, without making any changes to your own code:

python -m aoclda.sklearn your_python_script.py
python -m aoclda.sklearn -m your_python_module

Python APIs

In addition to the scikit-learn patch, AOCL Data Analytics contains its own set of Python APIs providing additional functionality. The package comes with numerous example scripts. To locate these examples, the following commands can be used in your Python interpreter:

>>> from aoclda.examples import info
>>> info.examples_path()
>>> info.examples_list()

Alternatively, from your command prompt, you can call aocl.examples.info as a module to obtain the same information:

python -m aoclda.examples.info

The examples can then be run as standard Python scripts from the command prompt. For example:

python path/to/examples/pca_ex.py

You can also inspect and run the examples from a Python interpreter. For example:

>>> from aoclda.examples import pca_ex
>>> import inspect
>>> print(''.join(inspect.getsourcelines(pca_ex)[0]))
>>> pca_ex.pca_example()

License

The EULA.txt and NOTICE.txt file is included in the licenses directory of the Python package installation. Copyrighted code in AOCL Data Analytics is subject to the licenses set forth in the source code file headers of such code.

Further information

Full documentation of the Python APIs can be found in the AMD technical information portal.

Note that Windows packages do not include the LBFGSB linear model solver or the nonlinear least squares solver. To access these, building from source is required. Source code and compilation instructions are available at https://github.com/amd/aocl-data-analytics/.

The AOCL Data Analytics library is part of AMD Zen Software Studio. It is developed and maintained by AMD. For support or queries, you can e-mail us on toolchainsupport@amd.com.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

aoclda-5.3.0-cp314-cp314-win_amd64.whl (17.8 MB view details)

Uploaded CPython 3.14Windows x86-64

aoclda-5.3.0-cp314-cp314-manylinux_2_28_x86_64.whl (29.1 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.28+ x86-64

aoclda-5.3.0-cp313-cp313-win_amd64.whl (17.8 MB view details)

Uploaded CPython 3.13Windows x86-64

aoclda-5.3.0-cp313-cp313-manylinux_2_28_x86_64.whl (29.1 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

aoclda-5.3.0-cp312-cp312-win_amd64.whl (17.8 MB view details)

Uploaded CPython 3.12Windows x86-64

aoclda-5.3.0-cp312-cp312-manylinux_2_28_x86_64.whl (29.1 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

aoclda-5.3.0-cp311-cp311-win_amd64.whl (17.8 MB view details)

Uploaded CPython 3.11Windows x86-64

aoclda-5.3.0-cp311-cp311-manylinux_2_28_x86_64.whl (29.1 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

aoclda-5.3.0-cp310-cp310-win_amd64.whl (17.8 MB view details)

Uploaded CPython 3.10Windows x86-64

aoclda-5.3.0-cp310-cp310-manylinux_2_28_x86_64.whl (29.1 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

File details

Details for the file aoclda-5.3.0-cp314-cp314-win_amd64.whl.

File metadata

  • Download URL: aoclda-5.3.0-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 17.8 MB
  • Tags: CPython 3.14, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for aoclda-5.3.0-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 6bad52f04d0f5039f3d5efbb387138c3b83a399cede8f0c258901d5ee02c079d
MD5 0d925a51dc672251c36073f2db500a4d
BLAKE2b-256 f01e70c6d73c9d9dd583651efb04f862e7c42752b727a47abb51e6e437e20a4e

See more details on using hashes here.

File details

Details for the file aoclda-5.3.0-cp314-cp314-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for aoclda-5.3.0-cp314-cp314-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 63176cf90d3c2baae48ad64ed6bb3322736eb58cc96908e91c4bb65f9819d7ed
MD5 184e48caab6d666c916ee396a046b6b1
BLAKE2b-256 ddf40a8a11fb207e6a004d955e899bed3c9a175f3a101e0d849a1d78a23d5e8f

See more details on using hashes here.

File details

Details for the file aoclda-5.3.0-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: aoclda-5.3.0-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 17.8 MB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for aoclda-5.3.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 654040ba1f8a7f7b1b8888068c278a9374d3f12969c5e5560f5c9af54eee5662
MD5 143a52343dc57a5dea39960a7e9ae988
BLAKE2b-256 b983ee3e39f903f9fa7705ad0b435315a7ac71d5d273c28a046a297165bea454

See more details on using hashes here.

File details

Details for the file aoclda-5.3.0-cp313-cp313-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for aoclda-5.3.0-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 1cdc2e653b0163de7fe4a4411abd10297507398e54e13fe8d126673449b76571
MD5 535d4cab480881a058544067b3da14dd
BLAKE2b-256 9b961d85bb87db5c9c0c3d6156b811a71533ea5ed189227516a81a6a7e719e6c

See more details on using hashes here.

File details

Details for the file aoclda-5.3.0-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: aoclda-5.3.0-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 17.8 MB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for aoclda-5.3.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 63642460fa5bcce507c4904cf147216764435cb7ee4aea7fbe30f7b038f600a4
MD5 edf43a345f50657fb59db99f7ec6485b
BLAKE2b-256 b8061fe0f562c999c76a8d7e010caa2d8395a77975f22a37eaac8f485ac57efb

See more details on using hashes here.

File details

Details for the file aoclda-5.3.0-cp312-cp312-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for aoclda-5.3.0-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 4e81724c4b90952a928709e71a72c0b184395329ee21b257d99a2f820f561380
MD5 284da1d7e0e2f61f537d812d2b1dc25a
BLAKE2b-256 c870876800ebfd46b3d1f11d211eb4a9794c6a53cb3dd5b17239aa0c7e7d2569

See more details on using hashes here.

File details

Details for the file aoclda-5.3.0-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: aoclda-5.3.0-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 17.8 MB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for aoclda-5.3.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 d5be68348a03edc59e2b0f0210d051bf1f6bbf0f334d3afd4e6da0adf6e1f9f5
MD5 4b2b114e796fd829ca925d4d3e1effe3
BLAKE2b-256 47bdb46ce1a89ad09220bf9014a559d002da9fcecd1ddd59b639a49c96d2b74c

See more details on using hashes here.

File details

Details for the file aoclda-5.3.0-cp311-cp311-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for aoclda-5.3.0-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 616cd98d623af9197e574b4fffc84142f2adc5815d536d369f50091a9e9504df
MD5 0cffdeed5c7f5f1cec99c2616960129b
BLAKE2b-256 15d40dd908bb947cc5476e6e4a041f23c63711244e2d5fdce313680fb3b355ef

See more details on using hashes here.

File details

Details for the file aoclda-5.3.0-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: aoclda-5.3.0-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 17.8 MB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for aoclda-5.3.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 3f0164aec65bd0379208eb6a378e54140f97b09d2e7d87e47b0428c278ff285e
MD5 2161a4075579b6b686f7bf651ee21cb1
BLAKE2b-256 50f566aecb97cede3da0943e925c8365d7e51c2be8eb15a8a5d1626db7b09261

See more details on using hashes here.

File details

Details for the file aoclda-5.3.0-cp310-cp310-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for aoclda-5.3.0-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 08bcb7a4a6213b96df829b10b12d24437568d9edff7ac980de332b3c8e73d3ee
MD5 bade55aa08f648c7864a2c105ac9f191
BLAKE2b-256 4d1fbe04b36d51f734bea96adcd81c25e6bc5f0a99db2308fe78c7cb5b60ae72

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page