Splunk® Machine Learning Toolkit

ML-SPL API Guide

Adding a custom algorithm to the Splunk Machine Learning Toolkit

Complete the following steps to add a custom algorithm to the Splunk Machine Learning Toolkit (MLTK):

  1. Register the custom algorithm in the MLTK app.
  2. Create a Python script file for the custom algorithm.
  3. Write a Python algorithm class.
    1. The algorithm class must implement methods which are outlined in the BaseAlgo class in $SPLUNK_HOME/etc/apps/Splunk_ML_Toolkit/bin/base.py.

Coding knowledge, advanced Python experience, or development experience is an asset when adding custom algorithms.

Custom algorithm examples

You can view end-to-end examples for the following custom algorithms:

Last modified on 10 February, 2024
About the ML-SPL API   Register the custom algorithm in the MLTK app

This documentation applies to the following versions of Splunk® Machine Learning Toolkit: 5.4.0, 5.4.1, 5.4.2, 5.5.0


Was this topic useful?







You must be logged into splunk.com in order to post comments. Log in now.

Please try to keep this discussion focused on the content covered in this documentation topic. If you have a more general question about Splunk functionality or are experiencing a difficulty with Splunk, consider posting a question to Splunkbase Answers.

0 out of 1000 Characters