keras_1-2

1. Why Tensorflow

  1. key idea:

    • For a framework to be useful in production:

      it needs to be efficient, scalable, and maintainable.

    • For research:

      the framework needs to have flexible operations that can be combined in novel ways.

    Alternative frameworks are either flexible enough for research but less scalable, such as Chainer and PyTorch, or scalable but less flexible, such as Caffe and MXNet. TensorFlow is both flexible and scalable, allowing users to streamline from research into production.

  2. summary:
    • Python API
    • Portability: deploy computation to one or more cpus or GPUs in a desktop, server, or mobile device with a single API
    • flexibility: from RaspBerry Pi, Android, Windows, iOS, Linux to server farms
    • Visualization (TensorBoard is da bomb)
    • Save and restore models, graphs
    • Auto-differentiation autodiff (no more taking derivatives by hand. Yay)
    • Large community (~300k commits, ~85k repositories)
    • Awesome projects already using TensorFlow

2. Some cool projects using Tensorflow

  1. WaveNet: A Generative Model for Raw Audio (DeepMind, 2016)
  2. Dermatologist-level classification of skin cancer with deep neural networks (Esteva, Kuprel, et al., Nature 2017)
  3. magenta(https://magenta.tensorflow.org/) (Google)

3. High level APIs on top of TensorFlow

  1. Keras, TFLearn, and Sonnet

  2. But

    However, the primary purpose of TensorFlow is not to provide out-of-the-Box machine learning solutions. Instead, TensorFlow provides an extensive suite of functions and classes that allow users to define models from scratch. This is more complicated, but offers much more flexibility. You can build almost any architecture you can think of in TensorFlow.

4. Resources

We won’t be using any textbook for this class. The library is changing so fast that it’s hard for any book to keep up. We will be using mainly lecture notes and lecture slides. There are several resources that you might want to refer to become fluent in TensorFlow.

The official documentations

TensorFlow official sample models

StackOverflow should be your first port of call should you run into any problem with TensorFlow

There are also several introductory books on TensorFlow.

  • Aurélien Géron’s Hands-On Machine Learning with Scikit-Learn and TensorFlow (O’Reilly, march 2017)
  • François Chollet’s Deep Learning with Python (Manning Publications, November 2017)
  • Nishant Shukla’s Machine Learning with TensorFlow (Manning Publications, January 2018)
  • Lieder et al.’s Learning TensorFlow A Guide to Building Deep Learning Systems (O’Reilly, August 2017)

5. TensorFlow Basics

The first thing we need to understand about TensorFlow is its computation graph approach. Any TensorFlow program consists of two phases:

Phase 1: assemble a graph

Phase 2: use a session to execute operations in the graph.

Note that this might change in the future with TensorFlow’s eager mode, currently experimental.

相关文章

MNIST数据集可以说是深度学习的入门,但是使用模型预测单张M...
1、新建tensorflow环境(1)打开anacondaprompt,输入命令行...
这篇文章主要介绍“张量tensor是什么”,在日常操作中,相信...
tensorflow中model.fit()用法model.fit()方法用于执行训练过...
https://blog.csdn.net/To_be_little/article/details/12443...
根据身高推测体重const$=require('jquery');const...