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!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...