MonoLayer Perceptron
This commit is contained in:
@@ -14,8 +14,8 @@ class TrainingTestCase extends TestCase
|
||||
$training->start();
|
||||
|
||||
// Assert that the final synaptic weights are as expected withing the margin of error
|
||||
// $finalWeights = $training->getSynapticWeights();
|
||||
// $this->assertEqualsWithDelta($expectedWeights, $finalWeights, $marginOfError, "Final synaptic weights do not match expected values.");
|
||||
$finalWeights = $training->getSynapticWeights();
|
||||
$this->assertEqualsWithDelta($expectedWeights, $finalWeights, $marginOfError, "Final synaptic weights do not match expected values.");
|
||||
|
||||
// Assert that the number of epochs taken is as expected
|
||||
$this->assertEquals($expectedEpochs, $training->getEpoch(), "Expected training to take $expectedEpochs epochs, but it took {$training->getEpoch()} epochs.");
|
||||
|
||||
Reference in New Issue
Block a user