es.ucm.fdi.gaia.jcolibri.method.reuse.classification.KNNClassificationConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jCOLIBRI Show documentation
Show all versions of jCOLIBRI Show documentation
jCOLIBRI is a java framework for the development of Case-Based Reasoning systems.
package es.ucm.fdi.gaia.jcolibri.method.reuse.classification;
import es.ucm.fdi.gaia.jcolibri.method.retrieve.NNretrieval.NNConfig;
/**
* This class stores the configuration for the KNN classification methods.
* @author Lisa Cummins
*/
public class KNNClassificationConfig extends NNConfig {
/**
* The type of classification method being used by this
* config object.
*/
KNNClassificationMethod classificationMethod;
/**
* Returns the classification method stored in this
* config object.
* @return the classification method stored in this
* config object.
*/
public KNNClassificationMethod getClassificationMethod()
{ return classificationMethod;
}
/**
* Sets the classification method for this
* config object to be classificationMethod.
* @param classificationMethod the classification
* method to be used for this config object.
*/
public void setClassificationMethod(KNNClassificationMethod classificationMethod)
{ this.classificationMethod = classificationMethod;
}
private int K = Integer.MAX_VALUE;
/**
* @return Returns the k.
*/
public int getK() {
return K;
}
/**
* @param k The k to set.
*/
public void setK(int k) {
K = k;
}
}