19 lines
317 B
PHP
Raw Normal View History

<?php
2016-11-20 22:53:17 +01:00
declare(strict_types=1);
namespace Phpml\Tests\NeuralNetwork\Node;
use Phpml\NeuralNetwork\Node\Bias;
2017-02-03 12:58:25 +01:00
use PHPUnit\Framework\TestCase;
2017-02-03 12:58:25 +01:00
class BiasTest extends TestCase
{
public function testBiasOutput(): void
{
$bias = new Bias();
2018-10-28 07:44:52 +01:00
self::assertEquals(1.0, $bias->getOutput());
}
}