Skip to content

Commit 3409551

Browse files
committed
revert changes
1 parent 4c7bcc2 commit 3409551

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

Examples/Classify2DDemo/Program.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ namespace Classify2DDemo
1010
{
1111
internal class Program
1212
{
13-
private static int k;
14-
1513
private static void Classify2DDemo()
1614
{
1715
var net = new Net<double>();
@@ -54,7 +52,7 @@ private static void Classify2DDemo()
5452
labels.Add(1);
5553
var n = labels.Count;
5654

57-
var trainer = new SgdTrainer<double>(net) { LearningRate = 0.01, L2Decay = 0, BatchSize = n };
55+
var trainer = new SgdTrainer<double>(net) { LearningRate = 0.01, L2Decay = 0.001, BatchSize = n };
5856

5957
// Training
6058
do
@@ -97,7 +95,7 @@ private static void Classify2DUpdate(int n, List<double[]> data, TrainerBase<dou
9795
}
9896

9997
avloss /= 50.0;
100-
Console.WriteLine(k++ + " Loss:" + avloss);
98+
Console.WriteLine(" Loss:" + avloss);
10199
}
102100

103101
private static void Main(string[] args)

0 commit comments

Comments
 (0)