php-ml/tests/Phpml/NeuralNetwork/Node/BiasTest.php

19 lines
318 B
PHP
Raw Normal View History

<?php
2016-11-20 21:53:17 +00:00
declare(strict_types=1);
namespace tests\Phpml\NeuralNetwork\Node;
use Phpml\NeuralNetwork\Node\Bias;
2017-02-03 11:58:25 +00:00
use PHPUnit\Framework\TestCase;
2017-02-03 11:58:25 +00:00
class BiasTest extends TestCase
{
public function testBiasOutput(): void
{
$bias = new Bias();
$this->assertEquals(1.0, $bias->getOutput());
}
}