Skip to content

Commit ce193ec

Browse files
author
forsythd
committed
Add num_examples variable
1 parent e3caafa commit ce193ec

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
@@ -96,6 +96,7 @@ $$
9696
Given the array of `scores` we've computed above, we can compute the loss. First, the way to obtain the probabilities is straight forward:
9797

9898
```python
99+
num_examples = X.shape[0]
99100
# get unnormalized probabilities
100101
exp_scores = np.exp(scores)
101102
# normalize them for each example

0 commit comments

Comments
 (0)