How to restart kernel in python through code in spyder to avoid repetitively and manually doing it?

限于喜欢 提交于 2019-12-11 17:21:21

问题


I am ensemble 2 models in syder. ( A RNN and an encoder-decoder both running on same data set). Each of them has 100 models saved in .h5 format. After loading and running RNN if I try to load models for Encoder-Decoder the system becomes slow. The solution that I found was to restart the kernel by pressing ctrl+. . How do I automate it through code so that both the models can be run in single script?

来源:https://stackoverflow.com/questions/55554746/how-to-restart-kernel-in-python-through-code-in-spyder-to-avoid-repetitively-and

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!