* Default value: {@code 1} *
** Key: {@code -knnclassifier.k} *
*/ public static final OptionID K_ID = new OptionID("knnclassifier.k", "The number of neighbors to take into account for classification."); /** * Holds the value of @link #K_PARAM}. */ protected int k; @Override protected void makeOptions(Parameterization config) { super.makeOptions(config); IntParameter kP = new IntParameter(K_ID, 1)// .addConstraint(CommonConstraints.GREATER_EQUAL_ONE_INT); if(config.grab(kP)) { k = kP.intValue(); } } @Override protected KNNClassifier