All Apps and Add-ons

In Splunk MLTK , how do I convert Target variables back to original values after Standard Scaler pre-processing

Shobitha
Explorer

In Splunk MLTK, how do I convert Target variables back to original levels after applying Standard Scaler pre-processing method. What is SPL command perform this conversion back to original levels 

Labels (2)
0 Karma

Shobitha
Explorer

Hi, 

I am looking for command equivalent to inverse_transform in Splunk. after applying Standard scaler pre-processing , all predicted target values are in standard scaler form. which needs to be converted to original levels as shown below, 

sc_y = StandardScaler()

y_pred = sc_y.inverse_transform(regressor.predict(X_test))

 

Regards,

Shobitha

 

0 Karma

Shobitha
Explorer

Found a work around, I skipped preprocessing step for target/dependent variable and it seems to be working fine. Now the actual vs prediction shows actual values and not normalized ones.

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 ...