mirror of
https://github.com/Llewellynvdm/php-ml.git
synced 2024-06-07 02:50:48 +00:00
16 lines
217 B
PHP
16 lines
217 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Phpml\NeuralNetwork;
|
|
|
|
interface ActivationFunction
|
|
{
|
|
/**
|
|
* @param float|int $value
|
|
*
|
|
* @return float
|
|
*/
|
|
public function compute($value): float;
|
|
}
|