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

19 lines
317 B
PHP
Raw Normal View History

<?php
2016-11-20 21:53:17 +00:00
declare(strict_types=1);
namespace Phpml\Tests\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();
2018-10-28 06:44:52 +00:00
self::assertEquals(1.0, $bias->getOutput());
}
}