> Thanks! I was acrually running an obsolete version of h20.
> However, suppose that I need a metric which is not available of the
> shelf (e.g. log(mean absolute error+1)).
> How can I implement that?
The return value of `h2o.predict()` gives you its prediction for each
sample. So you can do calculations directly on them. I think you can
even do most operations without downloading into R. E.g.
test = h2o.getFrame("test")
p = h2o.predict(m, test) #Where m is your model
tmp = h2o.cbind(test[,"answer"], p)
myMetric = mean( log( abs(tmp[,1] - tmp[,2]) + 1) )
Untested, but I think that gives the mean of log-absolute-error-plus-one!
(Substitute `valid` for `test`, to get the metric on your validation
data set, etc.)
Darren
--
Darren Cook, Software Researcher/Developer
My New Book: Practical Machine Learning with H2O,
published by O'Reilly. If interested, let me know and
I'll send you a discount code as soon it is released.