JupyterLab notebook kernel crashes when using AutoSklearnClassifier
See original GitHub issueDescribe the bug
I’m running JupyterLab and am using AutoSklearnClassifier
in a notebook cell. If I execute the cell I get an error and the notebook kernel crashes.
To Reproduce
- Open JupyterLab.
2 . Paste this code into a notebook cell.
model = autosklearn.classification.AutoSklearnClassifier(
time_left_for_this_task=5*60, # 5 Minuten Gesamtlaufzeit
per_run_time_limit=30, # Hyperparameter pro Algorithmus 30 Sekunden optimieren
memory_limit=4*1024, # Freeze von Notebook verhindern
n_jobs=8, # auf 8 CPU-Cores laufen lassen
ensemble_size=1, # Overfitting vermeiden (ensemble_size + initial_configurations_via_metalearning)
initial_configurations_via_metalearning=0, # Overfitting vermeiden (ensemble_size + initial_configurations_via_metalearning)
)
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.25, random_state=1)
model.fit(X_train, y_train)
y_hat = model.predict(X_test)
mae = mean_absolute_error(y_test, y_hat)
mae
- Execute the cell.
Expected behavior
Code executed, JupyterLab notebook not crashing.
Actual behavior, stacktrace or logfile
Output in output cell:
/home/florian/gitlab/data-processing/.venv/lib/python3.8/site-packages/pyparsing.py:3190: FutureWarning: Possible set intersection at position 3
self.re = re.compile(self.reString)
The notebook kernel crashes:
Kernel Restarting
The kernel for notebooks/honey.ipynb appears to have died. It will restart automatically.
(OK button)
Environment and installation:
Please give details about your installation:
- OS: Ubuntu 20.04
- Is your installation in a virtual environment or conda environment? virtual environment
- Python version: 3.8.2
- Auto-sklearn version: 0.11.1
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:12 (4 by maintainers)
Top Results From Across the Web
Unable to run auto-sklearn on JupyterLab as kernal keeps ...
I am running this code on JupyterLab and use Anaconda. I have 12 GB RAM free before running the program and none seems...
Read more >How to reset a Jupyter notebook(to resolve kernel crashes)
Solution · TLDR: Run /dsa/scripts/nbclean.py with the path to the offending notebook to clear all code cell outputs when you cause your jupyter ......
Read more >What to do when things go wrong - The Jupyter Notebook
If you need to run the kernel from different environments than your Notebook server, check out IPython's documentation for using kernels from different ......
Read more >Run Jupyter notebooks in your workspace - Azure Machine ...
Kernel crash : If your kernel crashed and was restarted, you can run the following command to look at jupyter log and find...
Read more >Crash Course in Python and Matplotlib using Jupyter
Notebooks are an interface to kernel, the kernel executes your code and outputs back to you through the notebook. The kernel is essentially...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Dear all, we have finally pushed wheels of the pyrfr package to pypi so this should no longer be an issue (on platforms that support the manylinux2010 and manylinux2014 tag). If you find any issues with those wheels, please reopen this issue.
I’ve setup Ubuntu 20.04 for WSL2 recently. With
Python 3.8.5
andswig 4.0.1-5build1
I could installauto-sklearn 0.12.3
without trouble.