Open PhilippPro opened 6 years ago
Not sure about the naming. We probably want to avoid name clashes. Maybe ACC uppercase is a good choice?
I prefer a unified prefix which makes it easier to go through measures and this also avoids name clashes with any other package.
But if we begin with "measure" we have the name clash with mlr.
Some ideas:
or err for everything that we minimize and perf for everything we maximize?
I don't like errRMSE because it then stands for error Root Mean Square Error. But I think I like the idea to have a naming that already makes a clear distinction between measures that should be minimized and measures that should be maximized. Maybe loss and gain are more appropiate then err and perf as loss function / gain function are well-established terms (and both terms have the same length, i.e. 4 characters)?
You could also put all measures in a dictionary-like object (like we do in mlrng) and implement a function
measure(y, yhat, [measure])
with [measure]
being either a string or an actual (parametrized) measure.
measures$list()
)measures$list(properties = "multiclass")
mmce = measures$get("mmce")
to get the measureCan't we do mmce = measures$get("mmce")
automatically for the most common ones?
Sure, that would work. But the problem with the name clashes persists.
For example
measureACC
or betterACC
or betteraccuracy
?