Module datarush.analytics
Class TargetCounts
- 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:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TargetCounts
fromNode(DynamicEnum targetType, TreeNode node)
Public only as a matter of implementation; clients should not use this method.int
getBestClass()
Returns the most common target classdouble
getTargetCount(int ordinal)
Returns the count for the given ordinalDynamicEnum
getTargetType()
Returns the target typedouble
getTotalCount()
Returns the total count across all classesString
toString()
-
-
-
Method Detail
-
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 typenode
- 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
-
-