All Downloads are FREE. Search and download functionalities are using the official Maven repository.

es.ucm.fdi.gaia.jcolibri.method.reuse.classification.KNNClassificationConfig Maven / Gradle / Ivy

Go to download

jCOLIBRI is a java framework for the development of Case-Based Reasoning systems.

There is a newer version: 3.2
Show newest version
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;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy