Class VotingClassification

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:
  • Method Details

    • 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 class ClassificationScheme
      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 class ClassificationScheme
      Parameters:
      type - the type of the class data
      Returns:
      true if the data type is compatible, false otherwise.