public interface CMetricFunc
Modifier and Type | Method and Description |
---|---|
double[] |
map(double[] preds,
float[] yact,
double weight,
double offset,
Model m)
Compute temporary state for given row of data.
|
double |
metric(double[] r)
Get value of metric for given computation state.
|
double[] |
reduce(double[] l,
double[] r)
Combine two map-call results together.
|
double[] map(double[] preds, float[] yact, double weight, double offset, Model m)
preds
- predicted response valueyact
- actual response valueweight
- weight of rowoffset
- offset of rowm
- modeldouble[] reduce(double[] l, double[] r)
l
- a result of map callr
- a result of map calldouble metric(double[] r)
r
- computation state