Skip to content

Commit

Permalink
Update to layer1_size
Browse files Browse the repository at this point in the history
  • Loading branch information
tmylk committed Mar 7, 2017
1 parent 1dfa432 commit e40face
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Document classification with word embeddings tutorial.ipynb
Expand Up @@ -1722,7 +1722,7 @@
}
],
"source": [
"wv.layer_size"
"wv.layer1_size"
]
},
{
Expand Down Expand Up @@ -1842,7 +1842,7 @@
" if not mean:\n",
" logging.warning(\"cannot compute similarity with no input %s\", words)\n",
" # FIXME: remove these examples in pre-processing\n",
" return np.zeros(wv.layer_size,)\n",
" return np.zeros(wv.layer1_size,)\n",
"\n",
" mean = gensim.matutils.unitvec(np.array(mean).mean(axis=0)).astype(np.float32)\n",
" return mean\n",
Expand Down

0 comments on commit e40face

Please sign in to comment.