[source]

Aggregate Report#

A report that aggregates the output of multiple reports into one report.

Estimator Compatibility: Depends on base reports

Parameters#

# Param Default Type Description
1 reports array An array of report objects to aggregate indexed by a user-given name.

Example#

use Rubix\ML\CrossValidation\Reports\AggregateReport;
use Rubix\ML\CrossValidation\Reports\ConfusionMatrix;
use Rubix\ML\CrossValidation\Reports\MulticlassBreakdown;

// Import labels and make predictions

$report = new AggregateReport([
    'breakdown' => new MulticlassBreakdown(),
    'matrix' => new ConfusionMatrix(),
]);

$result = $report->generate($predictions, $labels);