-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ch.06(Tuning hyperparameters via grid search) #71
Comments
Hi there, with "infinitely," you mean that the graphs from the previously executed code are still shown and don't go away? In Python, you usually need to close the plot manually if you are executing the code from the interactive Python interpreter or via a Python script (.py file). Usually, you see a window on your screen somewhere, and you can then close it by clicking on the "window close" button (I think this is similar to macOS & Linux in Windows, i.e., a small "x" button in the left or right top corner). |
Thank you, master, for the reply, and sorry for responding late. And I'm sorry I had to tell the further detail. I implemented the whole code in ch.06, and when doing that part, first, the program shows four graphs, actually the learning curve it showed before. So that is the detail. Please tell me some of what may be the cause. |
Hi there, I am not sure why this is happening. My guess is that you may have run the plotting code multiple times before closing the current plot, and after you close it the previous plots show up. My guess it's not really "infinitely" but rather a certain number of times given how often you executed the code before. Other than that, maybe try to change the backend that is used by matplotlib to create the plots. I have never used Windows 10 before, so I can't help you with the details here, but I found some Stackoverflow that might be helpful: https://stackoverflow.com/questions/40747104/set-matplotlib-backend-when-using-windows-subsystem-for-linux |
Thank you, I'll try it. |
I'm now learning machine learning using the Japanese translation of this book, and when I run this program, I always get stuck on the part using sklearn.svm.
When the program do the part"gs=gs.fit(X_train,y_train)", it always show the past two graphs infinitely. I don't know the reason, so tell me what may be the cause.
My PC's spec:
Window10, python3.6.5, scikit-learn0.19.1
The text was updated successfully, but these errors were encountered: