java.lang.Object
com.pervasive.datarush.analytics.knn.ClassificationScheme
com.pervasive.datarush.analytics.knn.VotingClassification
- All Implemented Interfaces:
Serializable
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.pervasive.datarush.analytics.knn.ClassificationScheme
ClassificationScheme.Classifier, ClassificationScheme.Distance -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether the classification method is valid for the specified type.booleanReturns whether the classification is weightednewClassifier(int k) Creates a new classifier for use.Methods inherited from class com.pervasive.datarush.analytics.knn.ClassificationScheme
avg, vote
-
Method Details
-
isWeighted
public boolean isWeighted()Returns whether the classification is weighted- Returns:
- whether the classification is weighted
-
newClassifier
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
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.
-