我试图以下列方式使用sklearn进行模型预测:
clf = MultinomialNB()
clf.fit(Xtrain,Ytrain)
Yans=clf.predict(Xtest)
但我收到以下警告:
/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)
因此,我没有得到预期的预测。我该如何解决这个问题?
答案 0 :(得分:1)
似乎是issue import org.apache.commons.net.util.Base64;
String plainPassword = vars.get("plainpassword");
String encodedPassword = new String(Base64.encodeBase64(plainPassword.getBytes()));
vars.put("encodedpassword", encodedPassword);
。尝试升级它:
scipy