sklearn-pmml-model icon indicating copy to clipboard operation
sklearn-pmml-model copied to clipboard

Support implicit feature scaling

Open iamDecode opened this issue 4 years ago • 0 comments

SVM models exported from R using the e1071 library will apply feature scaling by default, which is also translated into the resulting PMML model. This feature scaling is currently ignored, so users have to scale the features themselves before using the model in Python. To ensure generated models from R can be used directly in Python without addditional steps, its worth checking out whether we can support feature scaling.

I expect the best place to implement this will be setting up the scaler in PMMLBaseEstimator.__init__(), and applying that scaler in PMMLBaseEstimator._prepare_data().

iamDecode avatar Jul 27 '21 10:07 iamDecode