tensorflow 入門

Download TensorFlow 入門

Post on 08-Jan-2017

3.205 views

Category:

Technology

0 download

Embed Size (px)

TRANSCRIPT

  • TensorFlow

  • Agenda

    Neural Network

    TensorFlow

  • Attention

  • (Machine Learning)

    : ()

    : ()

  • -

    ()()

  • -

    Q

  • Neural Network

    CC BY: zcool.com.cn

  • Neural Network

    2:

    ():

    2: Deep Neural Network

  • Neural Network

    w

    b

    x

    x1

    x2

    xn

    w1

    w2

    wn

    y

  • Neural Network

    ()

  • Backpropagation

  • Deep Learning

    Deep Neural Network

    Backpropagation

    Dropout

  • Dropout

    ()

  • TensorFlow

    Google

    C++ Python

    Android

    Windows Docker

  • Tutorial

    Docker (Docker )

    TensorFlow https://hub.docker.com/r/tensorflow/tensorflow/

    $ docker pull tensorflow/tensorflow:0.7.1

    https://hub.docker.com/r/tensorflow/tensorflow/

  • Run

    port 8888 Jupyter

    port 6006 TensorBoard ()

    $ docker run -itd --name tf \ -p 8888:8888 -p 6006:6006 \ tensorflow/tensorflow:0.7.1

  • Exec

    Windows SSH Jupyter

    $ docker exec -it tf bash

  • Jupyter

    IPython Notebook

  • Jupyter

    Terminal

  • Jupyter

    Terminal

  • TensorFlow

    Python

    $ python

  • TensorFlow

    TensorFlow Hello World

    > import tensorflow as tf > msg = tf.constant("Hello World") > sess = tf.Session() > print sess.run(msg)

    Tensor

  • TensorFlow

    1 + 1

    m + m sess.run

    > m = tf.constant(1) > print sess.run(m + m)

  • TensorFlow

    TensorFlow sigmoid

    > a = tf.constant(5) > x = tf.placeholder(tf.float32) > sigmoid = 1 / (1 + tf.exp(-a * x)) > print sess.run(sigmoid, feed_dict={x: 0})

  • Fetch TensorFlow Repository tarball Tutorial

    # curl -Lo tensorflow.tar.gz https://github.com/tensorflow/tensorflow/archive/v0.7.1.tar.gz

    # tar xzvf tensorflow.tar.gz # cd tensorflow*

    https://github.com/tensorflow/tensorflow/archive/v0.7.1.tar.gz

  • 0~9

    4

    # cd tensorflow/examples/tutorials/mnist # python fully_connected_feed.py

  • TensorBoard

    TensorFlow

    tf.train.SummaryWriter

    # tensorboard --logdir data

  • ()

    (, )

    ,

    (waifu2x)

    https://github.com/nagadomi/waifu2x