TensorFlow开始

在这节课中,你将把你学到的神经网络的知识,借助TensorFlow ,一个 Google 开源的深度学习框架,应用在真实的数据集中。

你将用 TensorFlow 来辨别 notMNIST 数据集。他是一个英文字母 A 到 J 的数据集,下面是一些示例。

你的目标是根据图片,自动识别里面的字母。你在自己电脑上就可以完成这个项目。不过首先,你要安装 TensorFlow !

安装

跟往常一样,我们用 Conda 来安装 TensorFlow。你也许已经有过 TensorFlow 的环境,但确认一下你有所有必要的包。

OS X 或 Linux

运行下列命令来配置开发环境

conda create -n tensorflow python=3.5
source activate tensorflow
conda install pandas matplotlib jupyter notebook scipy scikit-learn
conda install -c conda-forge tensorflow

Windows

Windows系统,在你的console 或者 Anaconda shell 界面,运行

conda create -n tensorflow python=3.5
activate tensorflow
conda install pandas matplotlib jupyter notebook scipy scikit-learn
conda install -c conda-forge tensorflow

Hello, world!

在你 Python console 下运行下列代码检测 TensorFlow 是否正常安装。如果安装正确,Console 会打印出 "Hello, world!" 。现在还不需要理解它做了什么,你会在下一节学到。

import tensorflow as tf

# Create TensorFlow object called tensor
hello_constant = tf.constant('Hello World!')

with tf.Session() as sess:
    # Run the tf.constant operation in the session
    output = sess.run(hello_constant)
    print(output)
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

ncst

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值