Documentation of 'org.encog.util.normalize.segregate.IntegerBalanceSegregator' Java class
IntegerBalanceSegregator
org.encog.util.normalize.segregate

Class IntegerBalanceSegregator

  • All Implemented Interfaces:
    java.io.Serializable, Segregator


    public class IntegerBalanceSegregator
    extends java.lang.Object
    implements Segregator
    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.
    See Also:
    Serialized Form
    • Constructor Detail

      • IntegerBalanceSegregator

        public IntegerBalanceSegregator(InputField target,
                                        int count)
        Construct an integer balance segregator.
        Parameters:
        target - The input field to use.
        count - The number of each unique integer to allow.
      • IntegerBalanceSegregator

        public IntegerBalanceSegregator()
        Default constructor.
    • Method Detail

      • dumpCounts

        public java.lang.String dumpCounts()
        Returns:
        A string that contains the counts for each group.
      • getCount

        public int getCount()
        Returns:
        The amout of data allowed by this segregator.
      • getRunningCounts

        public java.util.Map<java.lang.Integer,java.lang.Integer> getRunningCounts()
        Returns:
        The current count for each group.
      • getTarget

        public InputField getTarget()
        Returns:
        The input field being used.
      • init

        public void init(DataNormalization normalization)
        Init the segregator with the owning normalization object.
        Specified by:
        init in interface Segregator
        Parameters:
        normalization - The data normalization object to use.
      • passInit

        public void passInit()
        Init for a new pass.
        Specified by:
        passInit in interface Segregator
      • shouldInclude

        public boolean shouldInclude()
        Determine of the current row should be included.
        Specified by:
        shouldInclude in interface Segregator
        Returns:
        True if the current row should be included.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.