How to load MinMax scaler from training data in keras/python in DL4j for prediction

I am trying to use DL4j for prediction only while training is done in keras/python. I currently use the minmaxscaler in scikit learn to scale the training data to -1 and 1 before training in keras. I need to import this scaler object to scale any data for prediction in dl4j. Is there a code snipet demonstrating this?

I am aware of the MinMaxscaler load(file… statistics) but is there a code snipet on using it?

Thanks in advance for your help.

@SSdev here’s an example of the min max scaler for you.

1 Like