[PYTHON] A story that I wondered if it stopped working at mglearn.plots.plot_nmf_faces and was an error?

Introduction

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.

problem

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.

solution

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

in conclusion

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

A story that I wondered if it stopped working at mglearn.plots.plot_nmf_faces and was an error?
A story that I was addicted to at np.where
A story that Seaborn was easy, convenient and impressed
I wondered if Python 3.4 was faster, but it was slower
A story that was terrible if SELinux was properly disabled
A story that an error occurred when PyInstaller was used in a program that uses googleapiclient
The story that I set transparent proxy and it worked for some reason without a certificate
A story that I was addicted to calling Lambda from AWS Lambda.
I thought a Python class variable was an instance variable and died
A python program that resizes a video and turns it into an image
The story that Apache dealt with because it was down at AH00144
The story that an error occurred in pyenv install (It is an epic story, and the critical cause is unknown after all)
The story of IPv6 address that I want to keep at a minimum
I want to write an element to a file with numpy and check it.
A story that I was addicted to when I made SFTP communication with python
I set up TensowFlow and was addicted to it, so make a note
I made a tool in Python that right-clicks an Excel file and divides it into files for each sheet.
A story that I was very convinced when I wrote the code for the Monty Hall problem and calculated the winning percentage
python memo-"if not A and B" was "if (not A) and B"
A story that was convenient when I tried using the python ip address module
I made a Docker Image that reads RSS and automatically tweets regularly and released it.
I made a web application that maps IT event information with Vue and Flask