- java.lang.Object
-
- com.pervasive.datarush.analytics.knn.ClassificationScheme
-
- com.pervasive.datarush.analytics.knn.VotingClassification
-
- All Implemented Interfaces:
Serializable
public class VotingClassification extends ClassificationScheme
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.pervasive.datarush.analytics.knn.ClassificationScheme
ClassificationScheme.Classifier, ClassificationScheme.Distance
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisValidTargetType(ScalarTokenType type)Indicates whether the classification method is valid for the specified type.booleanisWeighted()Returns whether the classification is weightedClassificationScheme.ClassifiernewClassifier(int k)Creates a new classifier for use.-
Methods inherited from class com.pervasive.datarush.analytics.knn.ClassificationScheme
avg, vote
-
-
-
-
Method Detail
-
isWeighted
public boolean isWeighted()
Returns whether the classification is weighted- Returns:
- whether the classification is weighted
-
newClassifier
public final ClassificationScheme.Classifier newClassifier(int k)
Description copied from class:ClassificationSchemeCreates a new classifier for use.- Specified by:
newClassifierin classClassificationScheme- Parameters:
k- the number of neighbors to expect.- Returns:
- a new classifier
-
isValidTargetType
public final boolean isValidTargetType(ScalarTokenType type)
Description copied from class:ClassificationSchemeIndicates whether the classification method is valid for the specified type. Some classifiers may only be applicable to continuous data.- Specified by:
isValidTargetTypein classClassificationScheme- Parameters:
type- the type of the class data- Returns:
trueif the data type is compatible,falseotherwise.
-
-