public class SoftmaxNormalizer extends ZScoreNormalizer
Usage: <r>
Constructor and Description |
---|
SoftmaxNormalizer() |
Modifier and Type | Method and Description |
---|---|
double |
getR()
Get the scaling constant
|
protected double |
normalizationFunction(double variable,
double mean,
double stdev)
Compute the normalized value of a variable
|
java.lang.String |
printUsage()
Print out required format for options.
|
protected double |
restorationFunction(double variable,
double mean,
double stdev)
Compute the restored value a variable
|
void |
setOptions(java.util.List<java.lang.Object> Options)
Set any options for this object.
|
void |
setR(double R)
Set the scaling constant
|
clone, computeAttributeStatistics, computeClassStatistics, normalizeAttributes, normalizeClassVariable, prepareAttributeArrays, restoreAttributes, restoreClassVariable
normalizeAttributes, normalizeClassVariable, restoreAttributes, restoreClassVariable, trainOnAttributes, trainOnMeasuredClass
about, isTrained, normalize, printCommand, printDescription, restore, runCommand, setToNormalizeAttributes, setToNormalizeClass, test, train, willNormalizeAttributes, willNormalizeClass
public void setOptions(java.util.List<java.lang.Object> Options) throws java.lang.Exception
Options
setOptions
in interface Options
setOptions
in class ZScoreNormalizer
Options
- Array of options as Objects - can be null
java.lang.Exception
- if problem with inputspublic java.lang.String printUsage()
Options
printUsage
in interface Options
printUsage
in class ZScoreNormalizer
public void setR(double R)
R
- Scaling constant (should be positive, default is 1)public double getR()
protected double normalizationFunction(double variable, double mean, double stdev)
ZScoreNormalizer
normalizationFunction
in class ZScoreNormalizer
variable
- Value of variable to be normalizedmean
- Mean of this variable (from training set)stdev
- Standard deviation of this variableprotected double restorationFunction(double variable, double mean, double stdev)
ZScoreNormalizer
restorationFunction
in class ZScoreNormalizer
variable
- Value of variable to be restoredmean
- Mean of variable (from training set)stdev
- Measured standard deviation of variable