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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

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

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...