Compute a weighted sum

Keep a steady rhythm through each period. · 137 words

A weight sets how much an input contributes to a score. Suppose a model multiplies hours by two and practice sessions by three. With four hours and one session, the contributions are eight and three. Their sum is eleven. Increasing the session count by one raises the score by three.

Look at the units before interpreting the result. If hours become minutes while the weight stays at two, the score jumps even though the learner did no extra work. To preserve the contribution, divide the old hourly weight by sixty when time is measured in minutes. A model can also add a constant called a bias. With a bias of five, the original score of eleven becomes sixteen. The bias changes the starting level while the weights still control how much a change in each input matters.

Check your recall

What is the score for four hours and two sessions?

Check your answer

Four times two plus two times three gives fourteen.

Sources and credits

Original KeyTouch lesson. Background reading · Zhang et al. · Dive into Deep Learning.