public static class KnnRegressionEvaluator.KnnRegressionTuple extends Tuple
MapWriter.EntryWriter
EOF, EXCEPTION, fieldLabels, fieldNames, fields
Constructor and Description |
---|
KnnRegressionTuple(Matrix observations,
double[] outcomes,
int k,
org.apache.commons.math3.ml.distance.DistanceMeasure distanceMeasure,
Map<?,?> map,
boolean scale,
boolean robust,
boolean bivariate) |
Modifier and Type | Method and Description |
---|---|
boolean |
getBivariate() |
boolean |
getScale() |
double |
predict(double[] values) |
double[] |
scale(double[] predictors) |
Matrix |
scale(Matrix predictors) |
clone, EOF, EXCEPTION, EXCEPTION, get, getBool, getBools, getDate, getDates, getDouble, getDoubles, getException, getFieldLabels, getFieldNames, getFields, getLong, getLongs, getMap, getMaps, getMetrics, getString, getStrings, merge, put, remove, setFieldLabels, setFieldNames, setMaps, setMetrics, writeMap
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
_forEachEntry, _forEachEntry, _forEachEntry, _get, _get, _getStr, _getStr, _size
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.