Skip to content

Commit

Permalink
add descriptions to the onehot_ function
Browse files Browse the repository at this point in the history
  • Loading branch information
4may committed Apr 21, 2020
1 parent 5d63c16 commit f9df32f
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 f9df32f

Please sign in to comment.