Home>
When I ran the following program in Jupiter Notebook,
Kernel Restarting
The kernel appears to have died. It will restart automatically.
Is displayed and the program cannot be executed.
If anyone knows, please let me know.
Kernel Restarting
The kernel appears to have died. It will restart automatically.
Corresponding source code
import numpy as np
from sklearn.linear_model import LogisticRegression
ar2_data = np.loadtxt (fname = "spamdata1000.csv", delimiter = ",")
array_y = ar2_data [:, 0]
ar2_X = ar2_data [:, 1:]
lrg = LogisticRegression (solver ='lbfgs', multi_class ='auto', max_iter = 1000)
lrg.fit (ar2_X, array_y)
print (lrg.score (ar2_X, array_y))
What I tried
I searched on the internet and found out how to update numpy and how to increase memory with docker. I tried a few things but it didn't work.
Supplementary information (FW/tool version, etc.)Please provide more detailed information here.
-
Answer # 1
Related articles
- python - using tensorflow with jupyter, kernel crashes when cnn model fit
- python - using tensorflow with jupyter, kernel crashes when cnn model fit
- python - about launching jupyter notebook from windows powershell
- python 3x - when splitting data using iloc, settingwithcopywarning appears even if copy () is added
- python - the problem that timeouterror appears while getting tweet data through twitter api and saving it in csv i had no proble
- python - the print output of jupyter notebook is hard to see
- [python] an error message appears when trying to convert a string of numbers entered in input to a float function
- python - runtime warning appears while running pca
- python - jupyter notebook doesn't work with vs code
- python - keyerror: 0 and an error appears
- python - it can be run with jupyter notebook, not vscode
- an init error that is not used in python and ldl appears
- python - [errno 2] no such file or directory appears when running otree
- python - i want to know the cause of the error that occurs when kernel density estimation is performed with high-dimensional dat
Trends
- python - you may need to restart the kernel to use updated packages error
- php - coincheck api authentication doesn't work
- php - i would like to introduce the coincheck api so that i can make payments with bitcoin on my ec site
- [php] i want to get account information using coincheck api
- the emulator process for avd pixel_2_api_29 was killed occurred when the android studio emulator was started, so i would like to
- javascript - how to check if an element exists in puppeteer
- dart - flutter: the instance member'stars' can't be accessed in an initializer error
- sh - 'apt-get' is not recognized as an internal or external command, operable program or batch file
- i want to call a child component method from a parent in vuejs
- python 3x - typeerror: 'method' object is not subscriptable
Solved by doing numpy update, scikit-leran update, conda update numpy mkl in the terminal