|
The Encog Project | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.encog.normalize.segregate.index.IndexSegregator
org.encog.normalize.segregate.index.IndexRangeSegregator
public class IndexRangeSegregator
An index segregator is used to segregate the data according to its index. Nothing about the data is actually compared. This makes the index range segregator very useful for breaking the data into training and validation sets. For example, you could very easily determine that 70% of the data is for training, and 30% for validation. This segregator takes a starting and ending index. Everything that is between these two indexes will be used.
| Constructor Summary | |
|---|---|
IndexRangeSegregator()
Default constructor for reflection. |
|
IndexRangeSegregator(int startingIndex,
int endingIndex)
Construct an index range segregator. |
|
| Method Summary | |
|---|---|
int |
getEndingIndex()
|
int |
getStartingIndex()
|
void |
passInit()
Nothing needs to be done to setup for a pass. |
boolean |
shouldInclude()
Determines if the current row should be included. |
| Methods inherited from class org.encog.normalize.segregate.index.IndexSegregator |
|---|
getCurrentIndex, getNormalization, init, rollIndex |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IndexRangeSegregator()
public IndexRangeSegregator(int startingIndex,
int endingIndex)
startingIndex - The starting index to allow.endingIndex - The ending index to allow.| Method Detail |
|---|
public int getEndingIndex()
public int getStartingIndex()
public boolean shouldInclude()
public void passInit()
|
The Encog Project | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||