Build a network The board is a small playground. Choose the layers, the neurons per layer, the activation and the learning rate, then train. It trains on the older 80% of matches and checks on the latest 20%. Each change starts again from fresh random weights.
Before training, look at the parameter count for 1 layer of 4 neurons. Work it out yourself first: 2 · 4 + 4 + 4 + 1. Set the activation to linear and train 1,000 steps. Can the map show anything but a slope? Switch to ReLU and find a network whose validation loss beats the linear model's, shown below the buttons. Google's solution for its own dataset was one hidden layer of 3 neurons, ReLU and a learning rate of 0.01. Football is noisier, so expect to search. Now try 2 layers of 16 neurons and train 2,000 steps. Watch the training loss fall and the validation loss climb, chapter 7's overfitting. Check yourself You add a second hidden layer after the first. Which values change for the same match, before any training? A Only the output, the layers before it compute the same as beforeB Every neuronC Only the first hidden layer
You change the weight from home strength into the second neuron of the first hidden layer. Which values can change? A That neuron, everything in later layers that depends on it, and the outputB NoneC Every neuron in the network
League Premier League La Liga Serie A Bundesliga Champions League Ligue 1 Primeira Liga 111 matches · 17 parameters
Arsenal FC 3–0 Coventry City FC Hull City AFC 2–0 Manchester United FC Ipswich Town FC 2–1 Sunderland AFC Nottingham Forest FC 0–1 Leeds United FC Everton FC 2–0 Crystal Palace FC Brentford FC 3–0 Tottenham Hotspur FC Manchester City FC 2–1 AFC Bournemouth Brighton & Hove Albion FC 4–0 Aston Villa FC Newcastle United FC 2–2 Liverpool FC Fulham FC 2–3 Chelsea FC Crystal Palace FC 1–4 Manchester City FC Liverpool FC 2–2 Nottingham Forest FC AFC Bournemouth 1–1 Everton FC Coventry City FC 0–1 Hull City AFC Tottenham Hotspur FC 0–2 Newcastle United FC Sunderland AFC 1–0 Fulham FC Chelsea FC 4–3 Brighton & Hove Albion FC Leeds United FC 1–1 Brentford FC Manchester United FC 5–2 Ipswich Town FC Aston Villa FC 0–1 Arsenal FC Ipswich Town FC 0–2 Liverpool FC Newcastle United FC 2–2 AFC Bournemouth Nottingham Forest FC 0–0 Tottenham Hotspur FC Manchester City FC 1–0 Coventry City FC Brighton & Hove Albion FC 1–1 Leeds United FC Brentford FC 1–1 Sunderland AFC Fulham FC 2–3 Crystal Palace FC Hull City AFC 0–0 Aston Villa FC Everton FC 2–2 Manchester United FC Arsenal FC 2–1 Chelsea FC Crystal Palace FC 2–3 Ipswich Town FC Liverpool FC 0–0 Fulham FC Aston Villa FC 1–2 Nottingham Forest FC AFC Bournemouth 2–2 Brentford FC Chelsea FC 2–2 Hull City AFC Tottenham Hotspur FC 0–0 Everton FC Sunderland AFC 0–2 Arsenal FC Coventry City FC 0–5 Brighton & Hove Albion FC Manchester United FC 0–1 Manchester City FC Leeds United FC 4–1 Newcastle United FC Brentford FC 3–0 Chelsea FC Tottenham Hotspur FC 2–3 Aston Villa FC Everton FC 1–0 Ipswich Town FC Brighton & Hove Albion FC 3–0 Arsenal FC Newcastle United FC 2–1 Hull City AFC Nottingham Forest FC 0–1 Coventry City FC AFC Bournemouth 0–1 Liverpool FC Leeds United FC 0–0 Crystal Palace FC Manchester City FC 5–3 Sunderland AFC Fulham FC 1–1 Manchester United FC Arsenal FC 2–1 Leeds United FC Sunderland AFC 0–2 Brighton & Hove Albion FC Chelsea FC 5–1 AFC Bournemouth Ipswich Town FC 2–1 Fulham FC Aston Villa FC 2–2 Brentford FC Manchester United FC 1–1 Tottenham Hotspur FC Hull City AFC 2–2 Everton FC Crystal Palace FC 3–1 Nottingham Forest FC Liverpool FC 0–3 Manchester City FC Coventry City FC 4–1 Newcastle United FC Everton FC 0–2 Chelsea FC Fulham FC 1–0 Hull City AFC Manchester City FC 3–2 Ipswich Town FC Brentford FC 1–2 Liverpool FC Newcastle United FC 0–1 Aston Villa FC AFC Bournemouth 2–0 Sunderland AFC Leeds United FC 1–1 Manchester United FC Brighton & Hove Albion FC 5–0 Crystal Palace FC Nottingham Forest FC 0–1 Arsenal FC Tottenham Hotspur FC 3–1 Coventry City FC Ipswich Town FC 1–1 Nottingham Forest FC Aston Villa FC 2–1 Manchester City FC Arsenal FC 2–0 Everton FC Coventry City FC 0–1 Fulham FC Chelsea FC 0–2 Tottenham Hotspur FC Liverpool FC 2–0 Brighton & Hove Albion FC Crystal Palace FC 0–2 Newcastle United FC Manchester United FC 0–3 AFC Bournemouth Hull City AFC 1–1 Brentford FC Sunderland AFC 0–0 Leeds United FC Chelsea FC 2–0 Manchester United FC Manchester City FC 0–1 Brighton & Hove Albion FC AFC Bournemouth 2–0 Leeds United FC Coventry City FC 3–1 Sunderland AFC Hull City AFC 2–2 Ipswich Town FC Brentford FC 2–0 Nottingham Forest FC Tottenham Hotspur FC 2–0 Crystal Palace FC Aston Villa FC 1–1 Fulham FC Liverpool FC 0–1 Arsenal FC Newcastle United FC 0–1 Everton FC Everton FC 3–1 Coventry City FC Leeds United FC 1–0 Tottenham Hotspur FC Arsenal FC 1–0 Hull City AFC Fulham FC 1–1 Newcastle United FC Nottingham Forest FC 3–1 Manchester City FC Crystal Palace FC 1–3 Liverpool FC Sunderland AFC 1–0 Chelsea FC Ipswich Town FC 1–2 AFC Bournemouth Brighton & Hove Albion FC 2–0 Brentford FC Manchester United FC 4–4 Aston Villa FC Manchester City FC 1–1 Fulham FC Chelsea FC 1–4 Leeds United FC Aston Villa FC 0–0 Sunderland AFC AFC Bournemouth 2–0 Nottingham Forest FC Tottenham Hotspur FC 2–0 Ipswich Town FC Coventry City FC 3–2 Crystal Palace FC Newcastle United FC 2–2 Arsenal FC Hull City AFC 2–0 Brighton & Hove Albion FC Liverpool FC 4–0 Manchester United FC Brentford FC 4–0 Everton FC Nottingham Forest FC 3–2 Chelsea FC −2 +2 home goal difference per game → away goal difference per game → draw · home or away win · darker: higher draw chance · dashed: equal teams
Activation linear ReLU sigmoid tanh
10 steps 100 steps 1,000 steps Reset
Steps 0
Training loss 0.788
Validation loss 0.813 Solid: training loss, orange: validation loss. The linear model scores 0.543 on the same validation matches.
← Multi-class classification All chapters Glossary Next: Programming exercise →