This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const targetObject = { | |
message1: "hello", | |
message2: "everyone", | |
test1: function () { console.log(this); }, | |
test2: () => { console.log(this); }, | |
test3: () => ({ nest1: () => ({ nest2: () => "value" }) }), | |
test4: { foo: { bar: () => ({ a: 1 }) } }, | |
}; | |
const proxy1 = proxify(targetObject, { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
float activate(float x) | |
{ | |
return 1.0/(1.0+exp(-x)); | |
} | |
float activateDerivative(float x) | |
{ | |
return activate(x)*(1.0 - activate(x)); | |
} |