|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.encog.util.normalize.segregate.IntegerBalanceSegregator
public class IntegerBalanceSegregator
Balance based on an input value. This allows you to make sure that one input class does not saturate the training data. To do this, you specify the input value to check and the number of occurrences of each integer value of this field to allow.
Constructor Summary | |
---|---|
IntegerBalanceSegregator()
Default constructor. |
|
IntegerBalanceSegregator(InputField target,
int count)
Construct an integer balance segregator. |
Method Summary | |
---|---|
String |
dumpCounts()
|
int |
getCount()
|
DataNormalization |
getNormalization()
|
Map<Integer,Integer> |
getRunningCounts()
|
InputField |
getTarget()
|
void |
init(DataNormalization normalization)
Init the segregator with the owning normalization object. |
void |
passInit()
Init for a new pass. |
boolean |
shouldInclude()
Determine of the current row should be included. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IntegerBalanceSegregator(InputField target, int count)
target
- The input field to use.count
- The number of each unique integer to allow.public IntegerBalanceSegregator()
Method Detail |
---|
public String dumpCounts()
public int getCount()
public DataNormalization getNormalization()
getNormalization
in interface Segregator
public Map<Integer,Integer> getRunningCounts()
public InputField getTarget()
public void init(DataNormalization normalization)
init
in interface Segregator
normalization
- The data normalization object to use.public void passInit()
passInit
in interface Segregator
public boolean shouldInclude()
shouldInclude
in interface Segregator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |