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.

Kernel appears to have died on fitting the model

See original GitHub issue

I have the code like this:

# importing the libraries
import numpy as np
from lightfm.datasets import fetch_movielens
from lightfm import LightFM as lf
# fetch data and format it
data = fetch_movielens(min_rating=5.0)
# print training and testing data
print(repr(data["train"]))
print(repr(data["test"]))
# creating and fitting the model
model = lf(loss="warp")
model.fit(data["train"], epochs=30, num_threads=2)

And I always receive an error “Kernel appear to have died” on the line “model.fit” System is Ubuntu, IDLE is jupyter notebook. I tried to reduce the number of epochs to 1 and the number of threads to 1, but it still doesn’t work. What can be a problem?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9

github_iconTop GitHub Comments

4reactions
balancycommented, Jul 1, 2018

Finally, conda install gxx_linux-64 solved my problem. Thanks.

1reaction
maciejkulacommented, Jul 1, 2018

The Intel Core designation covers quite a lot of different CPUs with different architectures. In this case I suspect you have a CPU that’s older than the CPUs used to build the wheels (maybe it doesn’t support AVX instructions?).

The solution is to have a working C compiler and install from source, which is what installing from pip does.

On Sun, 1 Jul 2018, 12:10 balancy, notifications@github.com wrote:

I am using Intel i7. Normally, pip install works for a lot of libraries like keras, numpy, matplotlib, etc. It’s just lightfm which doesn’t want to be installed on my machine.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/lyst/lightfm/issues/321#issuecomment-401597059, or mute the thread https://github.com/notifications/unsubscribe-auth/ACSCA01gJ1-Ih6As3Q_h6R9EYtIYoncrks5uCKASgaJpZM4U95Q4 .

Read more comments on GitHub >

github_iconTop Results From Across the Web

The kernel appears to have died | Data Science and ... - Kaggle
My kernel dies whenever I run mode.fit on my cnn model using keras within jupyter notebook. Any idea what might be causing this?...
Read more >
The kernel appears to have died. It will restart ... - YouTube
Apologies for the audio distortion in the beginning of the video: I am a robot.In this video, I'll show you how to fix...
Read more >
The kernel appears to have died. It will restart automatically ...
Its possible you are using some package thats gettig called in the 3rd cell thats causing the kernel to die. Does this issue...
Read more >
Jupyter | The kernel appears to have died. It will restart ...
This is the error message that I am getting: Kernel Restarting The kernel appears to have died. It will restart automatically. And, here...
Read more >
Issues while importing Keras? — Kernel appears to have died.
The kernel appears to have died. It will restart automatically. “Issues while installing Keras? — Kernel appears to have died.
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