Skip to content

Commit 67a377d

Browse files
committed
Ctrl+K D
1 parent a7601d2 commit 67a377d

1 file changed

Lines changed: 14 additions & 14 deletions

File tree

Examples/Classify2DDemo/Program.cs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -26,35 +26,35 @@ private static void Classify2DDemo()
2626
// Data
2727
var data = new List<double[]>();
2828
var labels = new List<int>();
29-
data.Add(new[] {-0.4326, 1.1909});
29+
data.Add(new[] { -0.4326, 1.1909 });
3030
labels.Add(1);
31-
data.Add(new[] {3.0, 4.0});
31+
data.Add(new[] { 3.0, 4.0 });
3232
labels.Add(1);
33-
data.Add(new[] {0.1253, -0.0376});
33+
data.Add(new[] { 0.1253, -0.0376 });
3434
labels.Add(1);
35-
data.Add(new[] {0.2877, 0.3273});
35+
data.Add(new[] { 0.2877, 0.3273 });
3636
labels.Add(1);
37-
data.Add(new[] {-1.1465, 0.1746});
37+
data.Add(new[] { -1.1465, 0.1746 });
3838
labels.Add(1);
39-
data.Add(new[] {1.8133, 1.0139});
39+
data.Add(new[] { 1.8133, 1.0139 });
4040
labels.Add(0);
41-
data.Add(new[] {2.7258, 1.0668});
41+
data.Add(new[] { 2.7258, 1.0668 });
4242
labels.Add(0);
43-
data.Add(new[] {1.4117, 0.5593});
43+
data.Add(new[] { 1.4117, 0.5593 });
4444
labels.Add(0);
45-
data.Add(new[] {4.1832, 0.3044});
45+
data.Add(new[] { 4.1832, 0.3044 });
4646
labels.Add(0);
47-
data.Add(new[] {1.8636, 0.1677});
47+
data.Add(new[] { 1.8636, 0.1677 });
4848
labels.Add(0);
49-
data.Add(new[] {0.5, 3.2});
49+
data.Add(new[] { 0.5, 3.2 });
5050
labels.Add(1);
51-
data.Add(new[] {0.8, 3.2});
51+
data.Add(new[] { 0.8, 3.2 });
5252
labels.Add(1);
53-
data.Add(new[] {1.0, -2.2});
53+
data.Add(new[] { 1.0, -2.2 });
5454
labels.Add(1);
5555
var n = labels.Count;
5656

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

5959
// Training
6060
do

0 commit comments

Comments
 (0)