Jupyter Notebook 中 Google Colaboratory 上的 IOPub 错误 [英] IOPub Error on Google Colaboratory in Jupyter Notebook

查看:36
本文介绍了Jupyter Notebook 中 Google Colaboratory 上的 IOPub 错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道下面的命令

jupyter notebook --NotebookApp.iopub_data_rate_limit=1.0e10 

让我设置数据速率.但是在 Colab 上,我无法运行此命令,因为笔记本已打开.

would let me set the data rate. But on Colab, I cannot run this command since the notebook is already open.

有什么办法可以避免在 Colab 上的活动笔记本中出现 IOPub 错误?

Is there any way I can avoid getting the IOPub error in an active notebook on Colab?

我正在运行 keras 代码,但在训练神经网络时出现此错误.我真的需要查看输出,因为它让我知道已经完成了多少个 epoch 以及准确度.

I am running keras code and I get this error when I train my neural network. I really need to see the output since it lets me know how many epochs have been completed and the accuracy.

推荐答案

IoPub 错误发生在 Colab 中,因为您试图在控制台本身上显示非常大的输出(例如 print() 语句).

IoPub Error is occurring in Colab because you are trying to display the output on the console itself(Eg. print() statements) which is very large.

所以解决方法是,将输出写入文件(而不是打印语句)并从 Colab 下载文件

So the work around would be, Write the output to the file(instead of print statements) and download the file from the Colab

注意:在使用大型数据集进行训练时,请避免编写简单的打印语句(只是为了打印数据集中的内容)

Note: Please do avoid writing simple print statements(just to print your contents in datasets) when you are training with large dataset

这篇关于Jupyter Notebook 中 Google Colaboratory 上的 IOPub 错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆