Commit ec672e4
committed
Clarify label encoding comment in char_rnn_classification_tutorial
The previous comment 'Cache the tensor representation of the labels' was
misleading, especially for beginners. The code actually creates a numerical
representation by storing unique labels in alphabetical order and converting
each label to its corresponding index as a tensor.
Updated the comment to clearly explain what's happening: creating numerical
representations rather than caching.1 parent 86b1c62 commit ec672e4
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
182 | | - | |
| 182 | + | |
| 183 | + | |
183 | 184 | | |
184 | 185 | | |
185 | 186 | | |
| |||
0 commit comments