I'm still studying "machine learning starting with Python". Today, there was something wrong when I used the mglearn dataset, so I will share it.
mglearn.plots.plot_nmf_faces(X_train, X_test, image_shape) plt.show() An error? Is displayed at the command prompt and I checked it, but I couldn't find it easily. In cmd
[Memory] Calling mglearn.plot_nmf.nmf_faces... nmf_faces(array([[0.899346, ..., 0.146405], ..., [0.09281 , ..., 0.639216]], dtype=float32), array([[0.179085, ..., 0.420915], ..., [0.317647, ..., 0.888889]], dtype=float32)) C:\Users\com.conda\envs\tensorflow\lib\site-packages\sklearn\decomposition_nmf.py:1077: ConvergenceWarning: Maximum number of iterations 200 reached. Increase it to improve convergence. " improve convergence." % max_iter, ConvergenceWarning)
There is a display that I have never seen, and I do not understand well even if I search. However, it does not stop from running.
After leaving it alone for a while, it was finished. The program worked fine without any errors. Are you getting a dataset? It didn't move easily, so I was impatient, but it worked.
[Memory] Calling mglearn.plot_nmf.nmf_faces... nmf_faces(array([[0.899346, ..., 0.146405], ..., [0.09281 , ..., 0.639216]], dtype=float32), array([[0.179085, ..., 0.420915], ..., [0.317647, ..., 0.888889]], dtype=float32)) C:\Users\com.conda\envs\tensorflow\lib\site-packages\sklearn\decomposition_nmf.py:1077: ConvergenceWarning: Maximum number of iterations 200 reached. Increase it to improve convergence. " improve convergence." % max_iter, ConvergenceWarning) C:\Users\com.conda\envs\tensorflow\lib\site-packages\sklearn\decomposition_nmf.py:1077: ConvergenceWarning: Maximum number of iterations 200 reached. Increase it to improve convergence. " improve convergence." % max_iter, ConvergenceWarning) C:\Users\com.conda\envs\tensorflow\lib\site-packages\sklearn\decomposition_nmf.py:1077: ConvergenceWarning: Maximum number of iterations 200 reached. Increase it to improve convergence. " improve convergence." % max_iter, ConvergenceWarning) C:\Users\com.conda\envs\tensorflow\lib\site-packages\sklearn\decomposition_nmf.py:1077: ConvergenceWarning: Maximum number of iterations 200 reached. Increase it to improve convergence. " improve convergence." % max_iter, ConvergenceWarning) C:\Users\co.conda\envs\tensorflow\lib\site-packages\sklearn\decomposition_nmf.py:1077: ConvergenceWarning: Maximum number of iterations 200 reached. Increase it to improve convergence. " improve convergence." % max_iter, ConvergenceWarning) ______________________________________________________nmf_faces - 356.4s, 5.9min
I'm worried when I see an error I've never seen or the text of cmd. Make a note of the fact that there are other beginners besides me who find it strange.
Recommended Posts