/** * The default evaluation method simply computes the score for the example and returns a * {@link DiscretePrimitiveStringFeature} set to either the second value from the label * classifier's array of allowable values if the score is greater than or equal to * {@link #threshold} or the first otherwise. * * @param exampleFeatures The example's array of feature indices * @param exampleValues The example's array of feature values * @return The computed feature (in a vector). **/ public FeatureVector classify(int[] exampleFeatures, double[] exampleValues) { return new FeatureVector(featureValue(exampleFeatures, exampleValues)); }