Skip to content

Commit

Permalink
Merge pull request rasbt#122 from 4may/ch12-comments
Browse files Browse the repository at this point in the history
add descriptions to the onehot_ function
  • Loading branch information
rasbt authored May 7, 2020
2 parents e6b7d9a + f9df32f commit 54d14eb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ch12/ch12.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -696,6 +696,8 @@
" ------------\n",
" y : array, shape = [n_examples]\n",
" Target values.\n",
" n_classes : int\n",
" Number of classes\n",
"\n",
" Returns\n",
" -----------\n",
Expand Down Expand Up @@ -1339,4 +1341,4 @@
},
"nbformat": 4,
"nbformat_minor": 4
}
}
2 changes: 2 additions & 0 deletions ch12/ch12.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,8 @@ def _onehot(self, y, n_classes):
------------
y : array, shape = [n_examples]
Target values.
n_classes : int
Number of classes
Returns
-----------
Expand Down
2 changes: 2 additions & 0 deletions ch12/neuralnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ def _onehot(self, y, n_classes):
------------
y : array, shape = [n_examples]
Target values.
n_classes : int
Number of classes
Returns
-----------
Expand Down

0 comments on commit 54d14eb

Please sign in to comment.