Module datarush.analytics
Class TargetCounts
java.lang.Object
com.pervasive.datarush.analytics.decisiontree.learner.TargetCounts
- All Implemented Interfaces:
Serializable
Public only as a matter of implementation; clients should not use this class.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic TargetCountsfromNode(DynamicEnum targetType, TreeNode node) Public only as a matter of implementation; clients should not use this method.intReturns the most common target classdoublegetTargetCount(int ordinal) Returns the count for the given ordinalReturns the target typedoubleReturns the total count across all classestoString()
-
Method Details
-
fromNode
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
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
-