java.lang.Object
com.pervasive.datarush.analytics.decisiontree.learner.TargetCounts
All Implemented Interfaces:
Serializable

public final class TargetCounts extends Object implements Serializable
Public only as a matter of implementation; clients should not use this class.
See Also:
  • Method Details

    • fromNode

      public static TargetCounts fromNode(DynamicEnum targetType, TreeNode node)
      Public only as a matter of implementation; clients should not use this method.
      Parameters:
      targetType - the target type
      node - the tree node
      Returns:
      the target counts for the node
    • getTargetType

      public DynamicEnum getTargetType()
      Returns the target type
      Returns:
      the target type
    • getBestClass

      public int getBestClass()
      Returns the most common target class
      Returns:
      the most common target class
    • getTotalCount

      public double getTotalCount()
      Returns the total count across all classes
      Returns:
      the total count across all classes
    • getTargetCount

      public double getTargetCount(int ordinal)
      Returns the count for the given ordinal
      Parameters:
      ordinal - the ordinal
      Returns:
      the count
    • toString

      public String toString()
      Overrides:
      toString in class Object