Documentation of 'org.encog.util.normalize.segregate.index.IndexSegregator' Java class
IndexSegregator
org.encog.util.normalize.segregate.index

Class IndexSegregator

  • All Implemented Interfaces:
    java.io.Serializable, Segregator
    Direct Known Subclasses:
    IndexRangeSegregator, IndexSampleSegregator


    public abstract class IndexSegregator
    extends java.lang.Object
    implements Segregator
    The index segregator. An abstract class to build index based segregators off of. 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.
    See Also:
    Serialized Form
    • Constructor Detail

      • IndexSegregator

        public IndexSegregator()
    • Method Detail

      • getCurrentIndex

        public int getCurrentIndex()
        Returns:
        The current index.
      • init

        public void init(DataNormalization normalization)
        Setup this class with the specified normalization object.
        Specified by:
        init in interface Segregator
        Parameters:
        normalization - Normalization object.
      • rollIndex

        public void rollIndex()
        Used to increase the current index as data is processed.
      • passInit

        public void passInit()
        Reset the counter to zero.
        Specified by:
        passInit in interface Segregator

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.