fix bugs of ValueError: Expected 2D array
fix bugs of ValueError: Expected 2D array

Envs: Python 2.7 and Python 3.6
parameter 'vocab' is a 1D array, but sklearn.preprocessing.StandardScaler.scale.tranform(vocab) can only recieve a 2D array. 
However, what we need is 1D. 
I changed vocab to "vocab = np.array( [[ 0 for i in range(self.no_clusters)]])" and "vocab[0][each] += 1"
After being modified, the program worked well on python 2.7 and python 3.6 on my computers.
kushalvyas/Bag-of-Visual-Words-Python