Added and deactivated gradientDescent Test
Some checks failed
linter / quality (push) Has been cancelled
tests / ci (8.4) (push) Has been cancelled
tests / ci (8.5) (push) Has been cancelled

This commit is contained in:
2026-03-22 11:42:46 +01:00
parent 72775d09ef
commit 03d8688f56

View File

@@ -29,4 +29,24 @@ class GradientDescentPerceptronTest extends TrainingTestCase
expectedEpochs: 49 expectedEpochs: 49
); );
} }
// public function test_simple_perceptron_training_table_2_9()
// {
// $training = new GradientDescentPerceptronTraining(
// datasetReader: new LinearOrderDataSetReader(public_path('data_sets/table_2_9.csv')),
// learningRate: 0.0011,
// maxEpochs: 1000,
// synapticWeightsProvider: new ZeroSynapticWeights(),
// iterationEventBuffer: new DullIterationEventBuffer(),
// sessionId: 'test-session',
// trainingId: 'test-training',
// minError: 5.524889, // Le prof a fumé un truc, impossible pour un dataset avec des labels -1 et 1 d'avoir une erreur moyenne supérieure à 2
// );
// $this->verifyTrainingResults(
// training: $training,
// expectedWeights: [[[-0.664816, -0.522798, 0.342044]]],
// expectedEpochs: 402
// );
// }
} }