- 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 boolean
isValidTargetType(ScalarTokenType type)
Indicates whether the classification method is valid for the specified type.boolean
isWeighted()
Returns whether the classification is weightedClassificationScheme.Classifier
newClassifier(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:ClassificationScheme
Creates a new classifier for use.- Specified by:
newClassifier
in classClassificationScheme
- Parameters:
k
- the number of neighbors to expect.- Returns:
- a new classifier
-
isValidTargetType
public final boolean isValidTargetType(ScalarTokenType type)
Description copied from class:ClassificationScheme
Indicates whether the classification method is valid for the specified type. Some classifiers may only be applicable to continuous data.- Specified by:
isValidTargetType
in classClassificationScheme
- Parameters:
type
- the type of the class data- Returns:
true
if the data type is compatible,false
otherwise.
-
-