Skip to content
Permalink
1868c2be46
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
23 lines (20 sloc) 479 Bytes
<?php
namespace Rubix\Engine\NeuralNetwork\ActivationFunctions;
interface ActivationFunction
{
/**
* Compute the activation of the neuron.
*
* @param float $value
* @return float
*/
public function compute(float $value) : float;
/**
* Compute the derivative.
*
* @param float $value
* @param float $computed
* @return float
*/
public function differentiate(float $value, float $computed) : float;
}