Skip to content

Commit 070c5d5

Browse files
authored
Update README.md
1 parent cc5380a commit 070c5d5

File tree

1 file changed

+30
-1
lines changed

1 file changed

+30
-1
lines changed

README.md

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,36 @@ function build(){
5151

5252
net.addLayer(2); // input
5353
net.addLayer(2); // hidden
54-
net.addLayer(1); // ouput
54+
net.addLayer(1); // output
55+
56+
return net;
57+
58+
}
59+
60+
```
61+
## Viewing the Built Neural Network
62+
63+
- Open `index.html` in the browser to view the built network.
64+
- To run the forward pass and backpropagation click on the button on the top left corner or press space bar.
65+
66+
67+
## Adjusting the Speed
68+
69+
- To adjust the learning speed go to `dimes.js.
70+
- Change the value of `DELAY` variable.
71+
- The value is in milliseconds.
72+
73+
## Adding Activation Function
74+
75+
- You can add an activation function to a layer while building the network in `builder.js` file.
76+
77+
```javascript
78+
function build(){
79+
var net = new Net();
80+
81+
net.addLayer(2); // input
82+
net.addLayer(2, ReLu); // hidden with activation function
83+
net.addLayer(1); // output
5584

5685
return net;
5786

0 commit comments

Comments
 (0)