Description Usage Arguments Value
Function to compute (log) weights of component models from the "predictions" output by xgboost
1 | compute_model_weights_from_preds(preds, log = FALSE)
|
preds |
predictions from xgboost in matrix form, with num_models columns and num_obs rows |
log |
boolean; return log of component model weights or just the weights |
a matrix with num_models columns and num_obs rows, with (log) weight for model m at observation i in entry [i, m]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.