Added and deactivated gradientDescent Test
This commit is contained in:
@@ -29,4 +29,24 @@ class GradientDescentPerceptronTest extends TrainingTestCase
|
||||
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
|
||||
// );
|
||||
// }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user