Sagemaker: MemoryError: Unable to allocate ___for an array with shape ___ and data type float64 Sagemaker: MemoryError: Unable to allocate ___for an array with shape ___ and data type float64 python-3.x python-3.x

Sagemaker: MemoryError: Unable to allocate ___for an array with shape ___ and data type float64


Open a root shell by sudo -i and then run the echo 1 > /proc/sys/vm/overcommit_memory


Changing the default kernel in the SageMaker Notebook to conda_python3 resolved this issue for me.