miml.report.report.Report#

class miml.report.report.Report(y_pred: ndarray, label_probs: ndarray, dataset_test: MIMLDataset, metrics: list[str] | None = None, header: bool = True, per_label: bool = False)#

Bases: object

Class to generate a report

calculate_metrics(beta: int = 0.5)#

Calculate metrics of the predicted data

Parameters#

betaint, default = 0.5

Beta value for the fbeta_score function

to_csv(path: str | None = None, metrics: list[str] | None = None)#

Print/save data as csv format

Parameters#

pathstr, default=None

Path to csv where the data would be stored

metricslist[str], default=None

List of metrics to show. If empty, show all metrics.

to_string(metrics: list[str] | None = None)#

Print data as string format

Parameters#

metricslist[str], default=None

List of metrics to show. If empty, show all metrics.