All Apps and Add-ons

Why is SGDClassifier not listening to configuration files (mlspl.conf)?

Kermit1007
Engager

Hi,

My classifier (SGDClassifier) is allowing only 100 distinct cat values. I followed the link Configure algorithm performance costs - Splunk Documentation and modified the file mlspl.conf as follows :

 

 

[SGDClassifier]
max_distinct_cat_values=2000
max_distinct_cat_values_for_classifiers=2000

 

 

However my splunk search is giving me the error :

Kermit1007_0-1659441152393.png

I had already change this value for another classifier (LinearSVC) and everything was fine, what did i miss here ? I just copied and pasted from it and change the Stanza name 

I'm using MLTK 5.3.1

Labels (3)
1 Solution

Kermit1007
Engager

Update :

I have found the culprit :

In apps/Splunk_ML_Toolkit/bin/algos/SGDClassifier.py

at line 78 AND 116 

Change line 

Kermit1007_0-1659948358703.png

to

Kermit1007_1-1659948383747.png

 (There is a missing 'S' in the config parameter)

I think this is a bug from splunk and woud like to report it to the MLTK Team do you know a way ?

View solution in original post

0 Karma

Kermit1007
Engager

Update :

I have found the culprit :

In apps/Splunk_ML_Toolkit/bin/algos/SGDClassifier.py

at line 78 AND 116 

Change line 

Kermit1007_0-1659948358703.png

to

Kermit1007_1-1659948383747.png

 (There is a missing 'S' in the config parameter)

I think this is a bug from splunk and woud like to report it to the MLTK Team do you know a way ?

0 Karma
Get Updates on the Splunk Community!

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...