Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions lib/nn.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ let tanh = new ActivationFunction(
y => 1 - (y * y)
);

let tanh = new ActivationFunction(

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it should be "let relu" instead

x => (x<0)?0:x,
y => (x<0)?0:1
);


class NeuralNetwork {
/*
Expand Down