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.
Get Updates on the Splunk Community!

.conf25 Global Broadcast: Don’t Miss a Moment

Hello Splunkers, .conf25 is only a click away.  Not able to make it to .conf25 in person? No worries, you can ...

Observe and Secure All Apps with Splunk

 Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

What's New in Splunk Observability - August 2025

What's New We are excited to announce the latest enhancements to Splunk Observability Cloud as well as what is ...