All Apps and Add-ons

MLTK training run failing with 'Usecols do not match columns, columns expected but not found' error

dfphere
Explorer

I'm utilizing Principal Component Analysis (PCA) on a RandomForestRegressor model to process some of the text fields in my data, which results in a certain number of PCA fields (around 30, I would say). The model look good upon the initial `fit` from within the experiment window, so I saved the model and scheduled a training run to occur every morning.

However, the scheduled training fails with a 'Usecols do not match columns, columns expected but not found' failure. It normally reports a handful of PC_* fields on the higher end of the range (like PC_27 - PC_31) not being found. The error appears to be related directly to the pandas python library but I don't have the capability to troubleshoot the code itself and hoping to resolve the issue via MLTK. Can anyone assist?

Labels (2)
Tags (3)
0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

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

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...

Index This | How many sevens are there between 1 and 100?

August 2025 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with this ...