This reference class object is used to store the AMS metric of a classification model at different decision thresholds. AMS is a performance measure which includes the sample weightings and is defined by the Higgs Boson Kaggle Competition. A vector of true sample classifications (0 or 1), a vector of estimated probabilities from a model, and a vector of scaled sample weights are needed to initialise.
yA vector of true sample classifications (0 or 1),
probA vector of the samples estimated probabilities from a model
weightsA vector of scaled sample weights.
thresholdsA vector of 30 decision thresholds.
amsA vector of the AMS metric at each threshold.
max_amsmaximum ams
max_threshthreshold of maximum ams
calc_ams()Calculate the AMS at each thresholds.
initialize(y, prob, weights)Provide true sample lables, estimated probabilities, and sample weights. A vector of descision thresholds is initalised.
plot_ams()Plot AMS against threshold.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.