Home | History | Annotate | Download | only in autofill

Lines Matching defs:scores

40  * A service that calculates field classification scores.
49 * when calculating the scores).
80 public static final String EXTRA_SCORES = "scores";
87 final float[][] scores = onGetScores(algorithmName, algorithmArgs, actualValues,
89 if (scores != null) {
90 data.putParcelable(EXTRA_SCORES, new Scores(scores));
114 * Calculates field classification scores in a batch.
123 * specified by the caller when calculating the scores).
164 * @param algorithm name of the algorithm to be used to calculate the scores. If invalid or
169 * @return the calculated scores of {@code actualValues} x {@code userDataValues}.
200 public static final class Scores implements Parcelable {
202 public final float[][] scores;
204 private Scores(Parcel parcel) {
207 scores = new float[size1][size2];
210 scores[i][j] = parcel.readFloat();
215 private Scores(@NonNull float[][] scores) {
216 this.scores = scores;
221 final int size1 = scores.length;
222 final int size2 = size1 > 0 ? scores[0].length : 0;
223 final StringBuilder builder = new StringBuilder("Scores [")
226 builder.append(i).append(": ").append(Arrays.toString(scores[i])).append(' ');
238 int size1 = scores.length;
239 int size2 = scores[0].length;
244 parcel.writeFloat(scores[i][j]);
249 public static final Creator<Scores> CREATOR = new Creator<Scores>() {
251 public Scores createFromParcel(Parcel parcel) {
252 return new Scores(parcel);
256 public Scores[] newArray(int size) {
257 return new Scores[size];