mase12 <- metric_tweak("mase12", mase, m = 12)
# Defaults to `m = 1`
mase(solubility_test, solubility, prediction)
# Updated to use `m = 12`. `mase12()` has this set already.
mase(solubility_test, solubility, prediction, m = 12)
mase12(solubility_test, solubility, prediction)
# This is most useful to set optional argument values ahead of time when
# using a metric set
mase10 <- metric_tweak("mase10", mase, m = 10)
metrics <- metric_set(mase, mase10, mase12)
metrics(solubility_test, solubility, prediction)
Run the code above in your browser using DataLab