About the ML-SPL API
The Splunk Machine Learning Toolkit (MLTK) contains 30 algorithms natively. For users who want to port their own custom algorithm into the MLTK, you can access the machine learning extensibility API. To add a custom algorithm to the Machine Learning Toolkit, you must write a Python class and register it to the MLTK app. This ML-SPL API Guide covers the process of adding a custom algorithm to the MLTK as well as the option to make that algorithm available to other users through Splunkbase.
You can also extend the Splunk Machine Learning Toolkit with over 300 open source Python algorithms from scikit-learn, pandas, statsmodel, numpy, and scipy libraries. These open source algorithms are available to the Splunk Machine Learning Toolkit through the Python for Scientific Computing add-on available on Splunkbase. You can also package your custom algorithm as a separate app to share on Splunkbase so that other Splunk Machine Learning Toolkit users can use it.
Coding is required to add a custom algorithm to the Splunk Machine Learning Toolkit. Being an advanced Python user or having development experience is an asset.
Add algorithms using GitHub
On-prem customers looking for solutions that fall outside of the 30 native algorithms can also use GitHub to add more algorithms. Solve custom uses cases through sharing and reusing algorithms in the Splunk Community for MLTK on GitHub. Here you can also learn about new machine learning algorithms from the Splunk open source community, and help fellow users of the toolkit.
Cloud customers can also use GitHub to add more algorithms via an app. The Splunk GitHub for Machine learning app provides access to custom algorithms and is based on the Machine Learning Toolkit open source repo. Cloud customers need to create a support ticket to have this app installed.
To access the Machine Learning Toolkit open source repo, see the MLTK GitHub repo.
The Machine Learning Toolkit and Python for Scientific computing add-on must be installed in order for GitHub to work in your Splunk environment.
Add a custom algorithm to the Machine Learning Toolkit overview
This documentation applies to the following versions of Splunk® Machine Learning Toolkit: 4.4.0, 4.4.1, 4.4.2, 4.5.0, 5.0.0