public abstract class ClassificationScheme extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static interface |
ClassificationScheme.Classifier
Resolves the class of a query record from
a set of neighbors.
|
static class |
ClassificationScheme.Distance
Representation of the distance between two points.
|
| Constructor and Description |
|---|
ClassificationScheme() |
| Modifier and Type | Method and Description |
|---|---|
static ClassificationScheme |
avg()
Resolves the class of the query record by doing a straight
average of all neighbors.
|
abstract boolean |
isValidTargetType(ScalarTokenType type)
Indicates whether the classification method is valid for the specified
type.
|
abstract ClassificationScheme.Classifier |
newClassifier(int k)
Creates a new classifier for use.
|
static ClassificationScheme |
vote()
Resolves the class of the query records by simple
plurality of all neighbors (alternatively, the mode
of the neighbors).
|
public abstract boolean isValidTargetType(ScalarTokenType type)
type - the type of the class datatrue if the data type is compatible,
false otherwise.public abstract ClassificationScheme.Classifier newClassifier(int k)
k - the number of neighbors to expect.public static ClassificationScheme avg()
This scheme is only applicable when the target feature is a continuous data type.
public static ClassificationScheme vote()
Copyright © 2021 Actian Corporation. All rights reserved.