Area Under the Curve¶
- auc(df, traces=None, per_traces=True)¶
Calculate the Area Under the Curve (AUC) for the given DataFrame.
- Parameters:
df (pd.DataFrame) – DataFrame containing ‘timeStamp’ and ‘y’ columns.
traces (dict) – A dictionary with keys as (sessionId) and values as lists of DataFrames. If None, traces will be computed from df.
per_traces (bool) – Whether to compute traces by sessionId, by default True.
- Returns:
A tuple (Geometric Auc, Execution Auc) as values if not per traces. dict: Dictionary sessionId as keys and a list with a tuple (Geometric Auc, Execution Auc) as values if per traces.
- Return type:
tuple