File tree Expand file tree Collapse file tree 1 file changed +26
-4
lines changed Expand file tree Collapse file tree 1 file changed +26
-4
lines changed Original file line number Diff line number Diff line change 1
1
# netflow.js
2
- netflow.js is a javascript library for visualizing neural network structure and training on the browser.
2
+ ** netflow.js** is a javascript library for visualizing neural network structure and training on the browser.
3
3
4
4
The library is ment to be used for explanation purposes.
5
5
6
6
powered by [ p5.js] ( https://p5js.org/ ) .
7
7
8
- Getting Started:
8
+ ## Getting Started:
9
9
10
- netflow.js is easy to use. you need add some js files to your html file.
10
+ ** netflow.js** is splited into multiple js files. You need to add the js files as shown below to your html file.
11
11
12
+ ** netflow.js** depends on [ ` p5.js ` ] ( https://p5js.org/ ) library for drawing on the html canvas.
12
13
13
14
``` html
14
15
<html >
@@ -31,6 +32,27 @@ netflow.js is easy to use. you need add some js files to your html file.
31
32
</body >
32
33
</html >
33
34
```
35
+ ## Building a Neural Network
36
+
37
+ To build a neural network, go to ` builder.js `
38
+
39
+ Below is a sample 3-layer (input (2), hidden (2) and output (1) ) neural network.
40
+ The first added layer is always the ** input** layer, while the last is the ** output** . Any layer added in between is a hidden layer.
41
+
42
+ ``` javascript
43
+ function build (){
44
+ var net = new Net ();
45
+
46
+ net .addLayer (2 ); // input
47
+ net .addLayer (2 ); // hidden
48
+ net .addLayer (1 ); // ouput
49
+
50
+ return net;
51
+
52
+ }
53
+
54
+ ```
55
+
56
+
34
57
35
58
36
- ` builder.js `
You can’t perform that action at this time.
0 commit comments