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!

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...

Modernize your Splunk Apps – Introducing Python 3.13 in Splunk

We are excited to announce that the upcoming releases of Splunk Enterprise 10.2.x and Splunk Cloud Platform ...

Step into “Hunt the Insider: An Splunk ES Premier Mystery” to catch a cybercriminal ...

After a whole week of being on call, you fell asleep on your keyboard, and you hit a sequence of buttons that ...