← Back
Editing: Metric.php
<?php namespace Rubix\ML\CrossValidation\Metrics; use Rubix\ML\Tuple; use Stringable; interface Metric extends Stringable { /** * Return a tuple of the min and max score for this metric. * * @return \Rubix\ML\Tuple{float,float} */ public function range() : Tuple; /** * The estimator types that this metric is compatible with. * * @internal * * @return list<\Rubix\ML\EstimatorType> */ public function compatibility() : array; /** * Score a set of predictions and their ground-truth labels. * * @param list<string|int|float> $predictions * @param list<string|int|float> $labels * @return float */ public function score(array $predictions, array $labels) : float; }
Save File
Cancel