用jupyter notebook 运行教程中下面这个cell时,总会报"The kernel appears to have died. It will restart automatically"错误。

params = {'n_trees': 50,'max_depth': 3,'n_batches_per_layer': 1,# You must enable center_bias = True to get DFCs. This will force the model to # make an initial prediction before using any features (e.g. use the mean of # the training labels for regression or log odds for classification when# using cross entropy loss).'center_bias': True
}est = tf.estimator.BoostedTreesClassifier(feature_columns, **params)
est.train(train_input_fn, max_steps=100)
results = est.evaluate(eval_input_fn)
pd.Series(results).to_frame()

在网上搜了一圈后,大致有两种原因:

  • OOM:OUT OF MEMORY
  • 软件版本不一致

但是基于训练数据只有30k, 627条,我首先排除了OOM的可能行,把可能相关的包更新了一遍,然而这个错还在。
最终在fast.ai论坛上找到了解决方法:

Alex.Nikitin Alexander
Hi! Had the same issue on AWS P2.xlarge. Choosing lower batch size from the beginning should help.

因为数据量小,源代码将所有数据直接作为一个batch,将batch_size改小后,it works for me too!

The kernel appears to have died. It will restart automatically问题相关推荐

  1. 成功解决错误The kernel appears to have died. It will restart automatically

    关于内核死亡的错误 mac系统在运行jupter 出现了 The kernel appears to have died. It will restart automatically cpu无占用 解 ...

  2. jupyter notebook 上用matplotlib绘图,出现The kernel appears to have died.It will restart automatically

    环境 anaconda3+自定义python环境+jupyter notebook jupyter notebook 上用matplotlib绘图,出现The kernel appears to ha ...

  3. jupyter notebook中,对tensorflow运行时经常出现“The kernel appears to have died. It will restart automatically”

    在jupyter notebook 或者spyder上运行tensorflow的代码时(主要是代码 包含CNN),如果软件安装有问题,会出现"The kernel appears to ha ...

  4. 对jupyter notebook运行时出现“The kernel appears to have died. It will restart automatically”的解决方案

    1.前天在jupyter notebook 上运行tensorflow的代码时(主要是卷积神经网络,用小笔记本上的GPU),运行没多久,出现"The kernel appears to ha ...

  5. 【已解决】导入tensorflow报错/python已停止工作/The kernel appears to have died

    目录 背景 问题1:in future version of numpy, it will be understaood as(type,(1,)) 原因 解决 问题2:python已停止工作/The ...

  6. Kernel Restarting

    Jupyter Notebook运行过程中, kernel died. 报错信息: The kernel appears to have died. It will restart automatic ...

  7. python怎么重启内核_解决jupyter运行pyqt代码内核重启的问题

    在jupyter notebook或者是 Qtconsole下编译运行一个简单的pyqt程序,总是报错: The kernel appears to have died. It will restar ...

  8. python内核死亡的原因_Python的内核由于DLL而死亡

    对于机器学习课程,我正在用python做练习.我们的作业必须使用Jupyter笔记本.虽然这在我的笔记本电脑和我的办公桌上运行得很好,但我不能在家里的桌面上运行任何东西.在 因为我不确定是否允许我发布 ...

  9. AttributeError: 'module' object has no attribute 'get_frontal_face_detector'

    AttributeError: 'module' object has no attribute 'get_frontal_face_detector' 报错原因: 命名为的文件将遮盖dlib具有所需 ...

最新文章

  1. SharePoint 检测页面编辑模式
  2. PHP 安全问题入门:10 个常见安全问题 + 实例讲解
  3. 10月网民上网高峰时段为晚上8点 比例升至6.64%
  4. html新年倒计时代码_js实现倒计时
  5. Object与RTTI
  6. 处理gateway service使用过程中遇到的400 error - Malformed URI literal syntax
  7. vant toast 指定挂载到指定位置_docker卷挂载技术
  8. 2019年第十届C/C++ B组蓝桥杯省赛真题
  9. 使用Foxmail登录阿里企业邮箱(钉钉邮箱)
  10. 计算机三级考点2:管理和运营宽带城域网的关键技术
  11. Android studio 教程入门
  12. c++实现植物大战僵尸修改器
  13. 【模拟试题】czy的后宫3 莫队
  14. whistle抓包工具
  15. Apache网页优化
  16. flash player 9 安装错误:您尝试安装的adobeflashplayer版本不是最新版本
  17. Linux man中文手册的安装与使用
  18. java获取键盘整数_Java中从键盘输入多个整数的方法
  19. Github:Semantic-Segmentation-Suite分割网络集锦--使用小结
  20. Doxygen 使用说明

热门文章

  1. echarts双向条形图案例
  2. android获取录音音量大小,Android 获取麦克风音量
  3. 安装 HDF5r 包(自用)
  4. UGUI 图片倒影效果
  5. SQLiteStudio | 使用SQL语句操作表格
  6. 将SharePoint站点另存为模板并根据模板创建站点!
  7. 利用IDL输出影像快视图、拇指图
  8. 中国无线充电系统市场趋势报告、技术动态创新及市场预测
  9. 京东智联云张晓东cdn_京东智联云 云智联世界
  10. .data数据转化为.xlsx文件以及excle中多列数据的分隔