public class VotingClassification extends ClassificationScheme
ClassificationScheme.Classifier, ClassificationScheme.Distance
Modifier and Type | Method and Description |
---|---|
boolean |
isValidTargetType(ScalarTokenType type)
Indicates whether the classification method is valid for the specified
type.
|
boolean |
isWeighted()
Returns whether the classification is weighted
|
ClassificationScheme.Classifier |
newClassifier(int k)
Creates a new classifier for use.
|
avg, vote
public boolean isWeighted()
public final ClassificationScheme.Classifier newClassifier(int k)
ClassificationScheme
newClassifier
in class ClassificationScheme
k
- the number of neighbors to expect.public final boolean isValidTargetType(ScalarTokenType type)
ClassificationScheme
isValidTargetType
in class ClassificationScheme
type
- the type of the class datatrue
if the data type is compatible,
false
otherwise.Copyright © 2020 Actian Corporation. All rights reserved.