Inheritance: implements Phpml\NeuralNetwork\ActivationFunction
示例#1
0
 /**
  * @param $beta
  * @param $expected
  * @param $value
  *
  * @dataProvider sigmoidProvider
  */
 public function testSigmoidActivationFunction($beta, $expected, $value)
 {
     $sigmoid = new Sigmoid($beta);
     $this->assertEquals($expected, $sigmoid->compute($value), '', 0.001);
 }