Skip to content

Instantly share code, notes, and snippets.

@NMZivkovic
Created July 15, 2018 16:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NMZivkovic/08abb9e492c13547b286bcdef42e0696 to your computer and use it in GitHub Desktop.
Save NMZivkovic/08abb9e492c13547b286bcdef42e0696 to your computer and use it in GitHub Desktop.
// Performs the following operation on a vector X: Y = (X - M) / D, where M is mean and D is either L2 norm, L1 norm or LInf norm.
pipeline.Add(new LogMeanVarianceNormalizer("FeatureName"));
// Normalizes the data based on the computed mean and variance of the data.
pipeline.Add(new MeanVarianceNormalizer("FeatureName") { FixZero = true});
// Normalize the columns only if needed.
pipeline.Add(new ConditionalNormalizer("FeatureName"));
// The values are assigned into equidensity bins and a value is mapped to its bin_number/ number_of_bins.
pipeline.Add(new BinNormalizer("FeatureName") { NumBins = 2});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment