Nothing
quantile.ngradient <- function(y, f, tau, exact.fit){
if(exact.fit) {
return(tau * ((y - f) > 0) + (tau - 1) * ((y - f) < 0))
} else {
return(tau * ((y - f) > 0) + (tau - 1) * ((y - f) <= 0))
}
}
quantile.risk <- function(y, f, tau, weights){
loss <- (tau * (y - f) * ((y - f) > 0) +
(tau - 1) * (y - f) * ((y - f) <= 0))
sum(loss * weights)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.