question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

JupyterLab notebook kernel crashes when using AutoSklearnClassifier

See original GitHub issue

Describe 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

  1. 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
  1. 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:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
mfeurercommented, Mar 8, 2021

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.

0reactions
fkromercommented, Feb 24, 2021

I’ve setup Ubuntu 20.04 for WSL2 recently. With Python 3.8.5 and swig 4.0.1-5build1 I could install auto-sklearn 0.12.3 without trouble.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found