Description Usage Arguments Details Value Examples
gbt.ksval
transforms observations to U(0,1) if the model
is correct and performs a Kolmogorov-Smirnov test for uniformity.
1 | gbt.ksval(object, y, x)
|
object |
Object or pointer to object of class |
y |
Observations to be tested |
x |
design matrix for training. Must be of type |
Model validation of model passed as object
using observations y
.
Assuming the loss is a negative log-likelihood and thus a probabilistic model,
the transformation
u = F_Y(y;x,θ) \sim U(0,1),
is usually valid. One parameter, μ=g^{-1}(f(x)), is given by the model. Remaining parameters are estimated globally over feature space, assuming they are constant. This then allow the above transformation to be exploited, so that the Kolmogorov-Smirnov test for uniformity can be performed.
If the response is a count model (poisson
or negbinom
), the transformation
u_i = F_Y(y_i-1;x,θ) + Uf_Y(y_i,x,θ), ~ U \sim U(0,1)
is used to obtain a continuous transformation to the unit interval, which, if the model is correct, will give standard uniform random variables.
Kolmogorov-Smirnov test of model
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.