title: Kmeans fit_predict with word2vec
body: <p>I am trying to cluster my word vectors using kmeans as described <a href="https://www.kaggle.com/c/word2vec-nlp-tutorial/details/part-3-more-fun-with-word-vectors" rel="nofollow">here</a>. 
  The code snippet I am using</p>
  
  <pre><code># Set "k" (num_clusters) to be 1/5th of the vocabulary size, or an
  # average of 5 words per cluster
  word_vectors = model.syn0
  num_clusters = word_vectors.shape[0] / 5
  
  # Initalize a k-means object and use it to extract centroids
  kmeans_clustering = KMeans( n_clusters = num_clusters )
  idx = kmeans_clustering.fit_predict( word_vectors )
  </code></pre>
  
  <p>I am getting the following error
  TypeError: 'float' object cannot be interpreted as an integer</p>
  
  <p>Could someone please help</p>