Why the spyder is showing error message Restarting kernel

I am not getting why the spyder is showing error message
Restarting kernel...

every time I am executing the code. Previously it was working fine. I just change the dataset (bigger one) on sam code.

Can anyone guide its urgent!

Regards

Maybe the process is running out of (host) memory, is killed by the OS, and Spyder needs to restart the kernel. Run the script in a terminal and check if you are seeing a better error message.

Sir @ptrblck on terminal it is saying

killed

what to do?

killed is usually reported if the process receives a SIGKILL so I would guess you are running out of memory and the OS kills it.
Check the host RAM usage during the process and verify that it’s indeed the root cause. If so, reduce the memory usage or alternatively increase your swap (this will however slow down your system once the swap is used).

sir @ptrblck what do mean by swap?
sorry but please explain. whether reducting the batch size in training will help?

Regards

This article explains the swap file in detail. In short: you can offload data to the swap file (located on your SSD/HDD) if you are running out of RAM.

Yes, reducing the batch size would help in case you are running out of memory.

I don’t think I can do this for my near work. Sir, I have purchased a new SSD for my desktop, But I think that won’t help either, This is a matter of RAM :frowning: