Class kNNwithPAWandADWIN

    • Field Detail

      • marker

        protected int marker
      • prob

        protected double prob
      • time

        protected int time
    • Constructor Detail

      • kNNwithPAWandADWIN

        public kNNwithPAWandADWIN()
    • Method Detail

      • resetLearningImpl

        public void resetLearningImpl()
        Description copied from class: AbstractClassifier
        Resets this classifier. It must be similar to starting a new classifier from scratch.

        The reason for ...Impl methods: ease programmer burden by not requiring them to remember calls to super in overridden methods. Note that this will produce compiler errors if not overridden.
        Overrides:
        resetLearningImpl in class kNN
      • trainOnInstanceImpl

        public void trainOnInstanceImpl​(Instance inst)
        Description copied from class: AbstractClassifier
        Trains this classifier incrementally using the given instance.

        The reason for ...Impl methods: ease programmer burden by not requiring them to remember calls to super in overridden methods. Note that this will produce compiler errors if not overridden.
        Overrides:
        trainOnInstanceImpl in class kNN
        Parameters:
        inst - the instance to be used for training
      • getModelDescription

        public void getModelDescription​(StringBuilder out,
                                        int indent)
        Description copied from class: AbstractClassifier
        Returns a string representation of the model.
        Overrides:
        getModelDescription in class kNN
        Parameters:
        out - the stringbuilder to add the description
        indent - the number of characters to indent
      • isRandomizable

        public boolean isRandomizable()
        Description copied from interface: Learner
        Gets whether this learner needs a random seed. Examples of methods that needs a random seed are bagging and boosting.
        Specified by:
        isRandomizable in interface Learner<Example<Instance>>
        Overrides:
        isRandomizable in class kNN
        Returns:
        true if the learner needs a random seed.