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!

The Splunk Success Framework: Your Guide to Successful Splunk Implementations

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

Splunk Training for All: Meet Aspiring Cybersecurity Analyst, Marc Alicea

Splunk Education believes in the value of training and certification in today’s rapidly-changing data-driven ...

Investigate Security and Threat Detection with VirusTotal and Splunk Integration

As security threats and their complexities surge, security analysts deal with increased challenges and ...