Skip to content

Commit

Permalink
OffsetSum starts with zero offset
Browse files Browse the repository at this point in the history
  • Loading branch information
gAldeia committed Jul 8, 2024
1 parent d003203 commit 9368414
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/program/node.h
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,10 @@ struct Node {

void init(){

W = 1.0;
// starting weights with neutral element of the operation. offsetsum
// is the only node that does not multiply the weight --- instead, it adds it
W = (node_type == NodeType::OffsetSum) ? 0.0 : 1.0;

// set_node_hash();
fixed=false;
set_prob_change(1.0);
Expand Down

0 comments on commit 9368414

Please sign in to comment.