LoginSignup
0
0

More than 5 years have passed since last update.

windowsでTensorFlow その2

Last updated at Posted at 2017-04-21

概要

windowsでTensorFlowやってみた。

プログラムの手順

学習データの用意

[]か[,]
0,1かプラスマイナス4パイ以下とか

モデルの作成

Xor問題ならtanhとsquare
Sin問題ならsigmoidとl2_loss
fizzbuzz問題ならreluとsoftmax

入力、出力にplaceholder

x: [none, 1]
y: [none, 1]

重みとバイアス用にVariable

活性化関数を使う

relu,tanh,sigmoid

ロス値を定義

損失関数使う

クロスエントロピーや二乗

最適化の方法定義

Gradient Optimaizerで万能

セッションを定義して学習する。

10000回やる。
Pdedictで学習データを食わせる。

テストデータで取り出す。

argmaxとか
推定ならoutputが1
分類ならoutputが2以上

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0