|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.penguinwerks.jodene.data.Scaler
com.penguinwerks.jodene.data.ClassificationScaler
This scaler is used to translate an input value for a classifier, 1.0 or 0.0 usually, to an intermediate value like 0.1 and 0.9. This can sometimes aid training because 1.0 and 0.0 sometimes drive the network towards saturation - for example trying to achieve a 1.0 response from a sigmoid is impossible.
| Constructor Summary | |
ClassificationScaler()
Constructor - no argument constructor. |
|
ClassificationScaler(double min,
double max)
Constructor - sets the min and the max. |
|
| Method Summary | |
double |
getMaxScale()
This is the maximum value for a classifier, usually considered the "on" or "yes" value. |
double |
getMinScale()
This is the minimum value for a classifier, usually considered the "off" or "no" value. |
double |
scale(double input)
Scales the input value. |
void |
setMaxScale(double maxScale)
This is the maximum value for a classifier, usually considered the "on" or "yes" value. |
void |
setMinScale(double minScale)
This is the minimum value for a classifier, usually considered the "off" or "no" value. |
| Methods inherited from class com.penguinwerks.jodene.data.Scaler |
addScaler |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ClassificationScaler()
public ClassificationScaler(double min,
double max)
min - The minimum end of the scale.max - The maximum end of the scale.| Method Detail |
public double getMaxScale()
public void setMaxScale(double maxScale)
maxScale - The maxScale to set.public double getMinScale()
public void setMinScale(double minScale)
minScale - The minScale to set.public double scale(double input)
scale in class Scalerinput - The unscaled input value.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||