I am working on sklearn for model prediction using the code below:
clf = MultinomialNB()
clf.fit(Xtrain,Ytrain)
Yans=clf.predict(Xtest)
I am getting a warning as shown below:
/usr/local/lib/python3.4/dist-packages/numpy/core/fromnumeric.py:2641: VisibleDeprecationWarning: `rank` is deprecated; use the `ndim` attribute or function instead. To find the rank of a matrix see `numpy.linalg.matrix_rank`.
VisibleDeprecationWarning)
I am not able to the desired results due to this. how can I solve it?