Adding Python 3 libraries
Users of MLTK version 5.0.0 and higher have the option to add Python 3 libraries as a means to enhance their machine learning efforts.
Follow these steps to add a Python 3 library to your MLTK instance:
- Clone the GitHub repo for the Python for Scientific Computing add-on: https://github.com/splunk/Splunk-python-for-scientific-computing.git
- Navigate to https://repo.anaconda.com/pkgs/ to check the list of packages supported through Anaconda. You can only add packages listed on this site.
- In GitHub, choose the package you need and add it in
package.txt
. - Specify the version of the package in
package.txt
. The latest version is selected by default. - Run
bash repack.sh
to create the environment and install the package within the environment. - When the repacking in complete, run the
bash build.sh
script which creates a .tgz file for the PSC add-on. On Windows, run abuild.psl
script. - In your Splunk platform instance, not in the Splunk CLI or web installer, extract the .tgz file. The final .tgz app is stored in the build directory.