php-ml/src/NeuralNetwork/ActivationFunction.php
2018-02-10 12:08:58 +01:00

20 lines
342 B
PHP

<?php
declare(strict_types=1);
namespace Phpml\NeuralNetwork;
interface ActivationFunction
{
/**
* @param float|int $value
*/
public function compute($value): float;
/**
* @param float|int $value
* @param float|int $computedvalue
*/
public function differentiate($value, $computedvalue): float;
}