public function __construct() { $srand = 8; mt_srand($srand); srand($srand); $neuralNetwork = new NeuralNetwork(4, [7, 2]); $neuralNetwork2 = new NeuralNetwork(4, [7, 2]); $neuralNetwork2->setLambda(0); $this->prepareData(); $this->learn($neuralNetwork, $this->allTrainingData); $this->learn($neuralNetwork2, $this->allTrainingData); echo '<hr>'; echo '<h2>bez weight decay</h2>'; $this->test($neuralNetwork); echo '<h2>weight decay</h2>'; $this->test($neuralNetwork2); }