All Apps and Add-ons

How to do Upsampling of Minority Class in Splunk MLTK?

sc2019
New Member

I am working on a classification problem in Splunk Machine Learning Toolkit. The data is highly imbalanced. The majority class constitute 99% of the data and the rest is Minority Class. Is there anyway to up sample the minority class in the data or any other methods to add the synthetic data to level the imbalanced classes?

0 Karma

grana_splunk
Splunk Employee
Splunk Employee

To my knowledge, MLTK do not have any algorithm specific to imbalance dataset but they do have a github app i.e. a repo/app for algorithms: https://splunkbase.splunk.com/app/4403/ and it uses MLTK libraries.

One of the algorithm under github app modifies the DecisionTreeClassifier and has a class weight parameter added to it.

So install github app and make it global and use the following

.| fit CustomDecisionTreeClassifier class_weight="{'Yes':1,'No':0.1}">

Need to check the algo before installing github app, then checkout : https://github.com/splunk/mltk-algo-contrib/blob/master/src/bin/algos_contrib/CustomDecisionTreeClas...

0 Karma
Get Updates on the Splunk Community!

Index This | Forward, I’m heavy; backward, I’m not. What am I?

April 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

A Guide To Cloud Migration Success

As enterprises’ rapid expansion to the cloud continues, IT leaders are continuously looking for ways to focus ...

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...