Splunk® Machine Learning Toolkit

ML-SPL API Guide

Acrobat logo Download manual as PDF


Acrobat logo Download topic as PDF

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
PREVIOUS
About the ML-SPL API
  NEXT
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


Was this documentation topic helpful?


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