Start with an easy (w)in


Week 1
Short
Easy
Neural Networks
Start with an easy (w)inWeaver’s Weekly #1
Solve interactively onweavergoldman.com/weekly
0101
1
xx
yy
n=?n=?

How many hidden ReLU units nn does it take to draw this W?

2
xx
yy
w=?\boldsymbol{w=?}
b=?\boldsymbol{b=?}
w=?\boldsymbol{w=?}
b=?\boldsymbol{b=?}
v=?\boldsymbol{v=?}
c=?\boldsymbol{c=?}

Find the weights and biases needed to produce the W.

Solve interactively
nn(hidden units)2
h1h_{1}0101
ww
bb
h2h_{2}0101
ww
bb
Output perceptron
v1v_{1}
v2v_{2}
cc
0101
Reveal solution
Start with an easy (w)inWeaver’s Weekly #1
Full write-up onweavergoldman.com/weekly
h1h_{1}w=4w = -4b=1b = 1
0101
h2h_{2}w=4w = 4b=1b = -1
0101
h3h_{3}w=8w = 8b=4b = -4
0101
h4h_{4}w=8w = 8b=6b = -6
0101
0101

There are multiple possible solutions, but a solution of this type will have 4 hidden units.


One way to arrive at a solution is to start with the first hidden unit with a slope of -4 and a y-intercept of 1.


This creates the downward line from (0,1) to (0.25,0). The line is then cut off by ReLU, which is why the line stops at (0.25,0).


The other tricky aspect is that if you start this way, the output of the third hidden unit will need to be multiplied by -1, which is why the weight from the third hidden unit to the output is -1.

© 2026 Weaver Goldman