forked from SciSharp/Bigtree.Algorithm
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
34 lines (29 loc) · 809 Bytes
/
Copy pathProgram.cs
File metadata and controls
34 lines (29 loc) · 809 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
using Bigtree.Algorithm.NeuralNetwork;
using NumSharp;
using System;
using System.Collections.Generic;
using System.Linq;
namespace Bigtree.Algorithm.Console
{
class Program
{
static void Main(string[] args)
{
/*NetworkModel model = new NetworkModel();
model.Layers.Add(new NeuralLayer(2, "INPUT"));
model.Layers.Add(new NeuralLayer(1, "OUTPUT"));
model.Build();
NeuralData X = new NeuralData(4);
X.Add(0, 0);
X.Add(0, 1);
X.Add(1, 0);
X.Add(1, 1);
NeuralData Y = new NeuralData(4);
Y.Add(0);
Y.Add(0);
Y.Add(0);
Y.Add(1);
model.Train(X, Y, iterations: 10, learningRate: 0.1);*/
}
}
}