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 License 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aoclda-5.2.0-cp313-cp313-win_amd64.whl.
File metadata
- Download URL: aoclda-5.2.0-cp313-cp313-win_amd64.whl
- Upload date:
- Size: 15.1 MB
- Tags: CPython 3.13, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c7c4511e8664e0f6f60d2a2a0171edcdb324b53acf265bc9cb4aeb8f051c08cd
|
|
| MD5 |
e0b803264e31b35d48abb0c31da3ff72
|
|
| BLAKE2b-256 |
c0f25a7d629ba30bee453ea741e03465e6ee8314657cb0aa955b1f367ec933ab
|
File details
Details for the file aoclda-5.2.0-cp313-cp313-manylinux_2_28_x86_64.whl.
File metadata
- Download URL: aoclda-5.2.0-cp313-cp313-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 24.9 MB
- Tags: CPython 3.13, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b2e3d2dbcfcf7992c029bad5baf83455e78e5d105fa095c691d8798da07677d2
|
|
| MD5 |
fe99a80c6ca49636c9e97c78717e1b7a
|
|
| BLAKE2b-256 |
78e4846d8c8b9c9263b560df5577fa44a83ea52aaba654891e6ffa0f8e1b4769
|
File details
Details for the file aoclda-5.2.0-cp312-cp312-win_amd64.whl.
File metadata
- Download URL: aoclda-5.2.0-cp312-cp312-win_amd64.whl
- Upload date:
- Size: 15.1 MB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6b6bee4ca4621cb1c35df44a3fb99e696bd78aa95620183f8434f585d149f0e1
|
|
| MD5 |
6b7e9a110d722f61cd34c79c100d50ad
|
|
| BLAKE2b-256 |
c1a13ffd869dbb10625d8ac1fb9b2eeff26daa1f6be62dc0ac1e8783fc4d7f7e
|
File details
Details for the file aoclda-5.2.0-cp312-cp312-manylinux_2_28_x86_64.whl.
File metadata
- Download URL: aoclda-5.2.0-cp312-cp312-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 24.9 MB
- Tags: CPython 3.12, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c57af005200883b9791b881aedf50923ba6d419f38001a7ef812b02b8feabb20
|
|
| MD5 |
cb8330d1b82d2caf111cf7bfed068473
|
|
| BLAKE2b-256 |
10e98232f9f4cd86ddec37f597aef8d2adbfec0c005a4432d053a4dadbe06a16
|
File details
Details for the file aoclda-5.2.0-cp311-cp311-win_amd64.whl.
File metadata
- Download URL: aoclda-5.2.0-cp311-cp311-win_amd64.whl
- Upload date:
- Size: 15.1 MB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bddf4ed86f7e46ab26ff835f668abd7002d47188b9f5748236e40e3e83ccfc86
|
|
| MD5 |
0fcfc63e741ca76ee274d2a5abe0dd29
|
|
| BLAKE2b-256 |
f2a66b4f4cdae5b7aef73f34119972563d392daf6cba62f1db6f7d1688e3f62a
|
File details
Details for the file aoclda-5.2.0-cp311-cp311-manylinux_2_28_x86_64.whl.
File metadata
- Download URL: aoclda-5.2.0-cp311-cp311-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 24.9 MB
- Tags: CPython 3.11, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c57cfd9139b5a5446b998b6e98709e2949cb9b94dfe8bcddb52f416d3e5030f5
|
|
| MD5 |
036b5e063b742a3d6c230b94ea4d9bfb
|
|
| BLAKE2b-256 |
15a665b0cc98956bdd1bcebef252cf1ee2463fc57f5a3728e5a75527a48114f1
|
File details
Details for the file aoclda-5.2.0-cp310-cp310-win_amd64.whl.
File metadata
- Download URL: aoclda-5.2.0-cp310-cp310-win_amd64.whl
- Upload date:
- Size: 15.1 MB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7d315bd434a4192b645038aef9fddb3f10e584ea9f3fcd1d44ffd8cb8fc709bc
|
|
| MD5 |
145381c9677071ed105d477f8368743c
|
|
| BLAKE2b-256 |
daf43a38be99e0a1927dafbe549a96a04b3a484f20503802a4380df3438fde43
|
File details
Details for the file aoclda-5.2.0-cp310-cp310-manylinux_2_28_x86_64.whl.
File metadata
- Download URL: aoclda-5.2.0-cp310-cp310-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 24.9 MB
- Tags: CPython 3.10, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
08873a8eea6960dee2081b0147d5912e98ebdce9d67df71d56094c126f186ebb
|
|
| MD5 |
090855a0441aca3b6b473a600a1e7b0f
|
|
| BLAKE2b-256 |
15ee82e97cc787e00aa5916bca264358d8098aef8f22e94305a9530d5558985d
|