mcordingley/Regression

View on GitHub
src/Algorithm/GradientDescent/StoppingCriteria/StoppingCriteria.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

declare(strict_types = 1);

namespace MCordingley\Regression\Algorithm\GradientDescent\StoppingCriteria;

interface StoppingCriteria
{
    /**
     * @param array $gradient
     * @param array $coefficients
     * @return bool
     */
    public function converged(array $gradient, array $coefficients): bool;
}