Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions tests/TestNeuralTraining.pas
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ procedure TTestNeuralTraining.TestXORLearningConvergence;
TNNetFullConnectReLU.Create(8),
TNNetFullConnectLinear.Create(1)
]);
NN.SetLearningRate(0.01, 0.9);
NN.SetLearningRate(0.001, 0.9);

// Calculate initial error
ErrorSum := 0;
Expand All @@ -82,7 +82,7 @@ procedure TTestNeuralTraining.TestXORLearningConvergence;
InitialError := ErrorSum;

// Train for several epochs
for Epoch := 1 to 500 do
for Epoch := 1 to 5000 do
begin
for I := 0 to 3 do
begin
Expand Down Expand Up @@ -143,10 +143,10 @@ procedure TTestNeuralTraining.TestANDLearningConvergence;
TNNetFullConnectReLU.Create(4),
TNNetFullConnectLinear.Create(1)
]);
NN.SetLearningRate(0.01, 0.9);
NN.SetLearningRate(0.001, 0.9);

// Train for several epochs
for Epoch := 1 to 200 do
for Epoch := 1 to 5000 do
begin
for I := 0 to 3 do
begin
Expand Down