Renamed tests + added some + misc
This commit is contained in:
@@ -107,7 +107,7 @@ class PerceptronController extends Controller
|
||||
}
|
||||
break;
|
||||
case 'table_2_11':
|
||||
$dataset['defaultMinError'] = 1.0;
|
||||
$dataset['defaultMinError'] = 0.02;
|
||||
break;
|
||||
}
|
||||
$datasets[] = $dataset;
|
||||
|
||||
@@ -82,7 +82,7 @@ class ADALINEPerceptronTraining extends NetworkTraining
|
||||
|
||||
protected function stopCondition(): bool
|
||||
{
|
||||
$condition = $this->epochError <= $this->minError && $this->perceptron->getSynapticWeights() !== [[0.0, 0.0, 0.0]];
|
||||
$condition = $this->epochError <= $this->minError;
|
||||
if ($condition === true) {
|
||||
event(new PerceptronTrainingEnded('Le perceptron à atteint l\'erreur minimale', $this->sessionId, $this->trainingId));
|
||||
}
|
||||
|
||||
@@ -78,7 +78,7 @@ class GradientDescentPerceptronTraining extends NetworkTraining
|
||||
|
||||
protected function stopCondition(): bool
|
||||
{
|
||||
$condition = $this->epochError <= $this->minError && $this->perceptron->getSynapticWeights() !== [[0.0, 0.0, 0.0]];
|
||||
$condition = $this->epochError <= $this->minError;
|
||||
if ($condition === true) {
|
||||
event(new PerceptronTrainingEnded('Le perceptron à atteint l\'erreur minimale', $this->sessionId, $this->trainingId));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user