-
Notifications
You must be signed in to change notification settings - Fork 0
/
CreateNet.java
61 lines (52 loc) · 1.15 KB
/
CreateNet.java
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package Back;
/**
*
* @author Sachin
*/
public class CreateNet {
Nuron N1=new Nuron(0.3,0.4,0.5,0.6);
Nuron N2=new Nuron(0.4,0.5,0.6,0.7);
Nuron N3=new Nuron(0.7,0.2,0.1,0.6);
Nuron N4=new Nuron(0.2,0.8,0.4,0.5);
int [][] inputVal=new int[][]{
{0,0,0,0},
{0,0,1,1},
{0,0,1,0},
{0,1,0,1},
{0,1,0,0},
{0,1,1,1},
{0,1,1,0},
{1,0,0,1},
{1,0,0,0},
{1,0,1,1},
{1,0,1,0},
{1,1,0,1},
{1,1,0,0},
{1,1,1,1},
{1,1,1,0},
{1,1,1,1}
};
int[][] trainData = new int[][]{
{1,1,0},
{0,1,1},
{0,1,0},
{1,0,1},
{1,0,0},
{1,1,1},
{1,1,0},
{0,0,1},
{0,0,0},
{0,1,1},
{0,1,0},
{1,0,1},
{1,0,0},
{1,1,1},
{1,1,0},
{1,1,1}
};
}