mirror of
https://github.com/fastai/fastbook.git
synced 2025-04-04 18:00:48 +00:00
Fixing a couple of statements
This commit is contained in:
parent
2c5db23a34
commit
29d1f7931e
@ -1252,7 +1252,7 @@
|
||||
"source": [
|
||||
"#### Taking the Log\n",
|
||||
"\n",
|
||||
"Recall that cross entropy loss may involve the multiplication of many numbers. Multiplying lots of negative numbers together can cause problems like [numerical underflow](https://en.wikipedia.org/wiki/Arithmetic_underflow) in computers. Therefore, we want to transform these probabilities to larger values so we can perform mathematical operations on them. There is a mathematical function that does exactly this: the *logarithm* (available as `torch.log`). It is not defined for numbers less than 0, and looks like this between 0 and 1:"
|
||||
"Recall that cross entropy loss may involve the multiplication of many numbers. Multiplying lots of small numbers together can cause problems like [numerical underflow](https://en.wikipedia.org/wiki/Arithmetic_underflow) in computers. Therefore, we want to transform these probabilities to larger values so we can perform mathematical operations on them. There is a mathematical function that does exactly this: the *logarithm* (available as `torch.log`). It is not defined for numbers less or equal than 0, and looks like this between 0 and 1:"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user