A1essandro/neural-network

View on GitHub
src/Abstraction/ITeacher.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Neural\Abstraction;


interface ITeacher
{

    /**
     * @param array $input
     * @param array $expectation
     */
    function teach(array $input, array $expectation);

    /**
     * Teach until it learns
     *
     * @param array $kit
     * @param array $expectations
     * @param float $error
     * @param int   $maxIterations
     *
     * @return int Iterations performed (no results if -1)
     */
    function teachKit(array $kit, array $expectations, $error = 0.5, $maxIterations = 10000);

}