pae

hhpy.ds.pae(*args, times_hundred: bool = True, pmax: int = 999, **kwargs) → Union[pandas.core.frame.DataFrame, float][source]

wrapper for f_score using percentage absolute error

Parameters:
  • args – passed to f_score
  • times_hundred – Whether to multiply by 100 for human readable percentages
  • pmax – Max value for the percentage absolute error, used as a fallback because pae can go to infinity as y_true approaches zero
  • kwargs – passed to f_score
Returns:

if groupby is supplied: pandas DataFrame, else: scalar value