All Apps and Add-ons

Getting out of the Machine Learning add-on basic

celianou
New Member

Hi everyone,

I'm doing machine learning on machine data and trying to predict whether my machine will be knocked out or not.

I have difficulties to use the Machine Learning Toolkit module since I try to predict rare events (knockouts). As a result my algorithms predict almost always OK and the accuracy is good, while for me it is very bad.

(1) I have tried to add new templates in the module configuration files but I can't do it. I don't know where to put my commands from scikit learn in the .py script (in init or fit, I don't really know the difference).

(2) I also wanted to add a preprocessing to allow data resample but it's the same as problem number 1.

(3) I would like to review the way the module cuts the train and the test and I don't know if it's possible. I don't want it to be random, I want my classes to be balanced in the train.

(4) I would like to do cross validation but it's the same problem I don't know if it's possible.

I have a lot of questions so if you could help me I would like to do it !
Have a nice day !

0 Karma

bangalorep
Communicator

Hello,

Have you also installed the Python for Scientific Learning App as well? You can add your custom algorithms there.
If you want to make any changes in teh algorithm, you can copy it and make the changes in the new file.

0 Karma

celianou
New Member

Hey, thank you for your answer. Yes I needed the Python add on to install the machine learning toolkit. I tried to make the changes in the algorithms but when I look at the scripts, I never know where to do my modifications. That's why I posted this question. For example, I wanna add "weight" to the KO versus the OK.

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

At .conf26, Don’t Just See What’s Next. Help Shape It at Innovation Labs.

Long before a new capability reaches the keynote stage, it begins as an idea waiting to be tested. At ...

Forwarder Topology Guidance: Intermediate HF vs Intermediate UF

If you are designing a Splunk forwarding architecture, it can be tempting to place a Universal Forwarder (UF) ...

Data Management Digest – August 2026

Data Management Digest   Welcome to the August 2026 edition of Data Management Digest! August was a big month ...