How to do it...

  1. Create a standard normalizer and fit the data:
DataNormalization normalization = new NormalizerStandardize();
normalization.fit(trainIterator);
  1. Call the setPreprocessor() method to normalize the data on the fly:
trainIterator.setPreProcessor(normalization);
testIterator.setPreProcessor(normalization);

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset