美文网首页
简单使用jupyter notebook

简单使用jupyter notebook

作者: 小蒋KK | 来源:发表于2017-11-10 01:41 被阅读0次

  • 使用TensorFlow库
  • 创建图像数据集 os.listdir 和 plt.imread
  • 使用float或uint8表示图像
  • 裁剪图像


快捷键

  • ’a’:在上方新建cell
  • ’b’:在下方新建cell
  • 双击D:删除当前cell
  • Z:撤销删除
  • Shift-L:为所有cell的代码添加行编号
  • Tab:代码补全

导入库        import os

帮助函数    help(os.listdir)


画图

  • import matplotlib.pyplot as plt
  • %matplotlib inline
  • import numpy as np
  • plt.imread
  • plt.imshow
  • plt.figure

相关文章

网友评论

      本文标题:简单使用jupyter notebook

      本文链接:https://www.haomeiwen.com/subject/nlevmxtx.html