Skip to content

Commit 86ebc78

Browse files
authored
Merge pull request #43 from danielforsyth/typo-2
Add num_examples variable
2 parents bc701ab + ce193ec commit 86ebc78

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

neural-networks-case-study.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ $$
102102
Given the array of `scores` we've computed above, we can compute the loss. First, the way to obtain the probabilities is straight forward:
103103

104104
```python
105+
num_examples = X.shape[0]
105106
# get unnormalized probabilities
106107
exp_scores = np.exp(scores)
107108
# normalize them for each example

0 commit comments

Comments
 (0)