Skip to content
This repository has been archived by the owner on Jan 23, 2024. It is now read-only.

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
sugyan committed May 18, 2016
1 parent 0e4b1b1 commit 2aeb71b
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 16 deletions.
3 changes: 0 additions & 3 deletions .gitmodules

This file was deleted.

3 changes: 2 additions & 1 deletion README.md
Expand Up @@ -7,7 +7,8 @@

### Requirement ###

- Python 2.7
- Python >=3.4
- TensorFlow 0.8.0
- Node >=4.0

### Setup ###
Expand Down
11 changes: 6 additions & 5 deletions mnist/convolutional.py
@@ -1,6 +1,7 @@
import os
import tensorflow as tf

import input_data
from tensorflow.examples.tutorials.mnist import input_data
data = input_data.read_data_sets("/tmp/data/", one_hot=True)

# model
Expand All @@ -25,10 +26,10 @@
batch = data.train.next_batch(50)
if i % 100 == 0:
train_accuracy = accuracy.eval(feed_dict={x:batch[0], y_: batch[1], keep_prob: 1.0})
print "step %d, training accuracy %g"%(i, train_accuracy)
print("step %d, training accuracy %g" % (i, train_accuracy))
sess.run(train_step, feed_dict={x: batch[0], y_: batch[1], keep_prob: 0.5})

print sess.run(accuracy, feed_dict={x: data.test.images, y_: data.test.labels, keep_prob: 1.0})
print(sess.run(accuracy, feed_dict={x: data.test.images, y_: data.test.labels, keep_prob: 1.0}))

path = saver.save(sess, "data/convolutional.ckpt")
print "Saved:", path
path = saver.save(sess, os.path.join(os.path.dirname(__file__), "data/convolutional.ckpt"))
print("Saved:", path)
1 change: 0 additions & 1 deletion mnist/input_data.py

This file was deleted.

9 changes: 5 additions & 4 deletions mnist/simple.py
@@ -1,6 +1,7 @@
import os
import tensorflow as tf

import input_data
from tensorflow.examples.tutorials.mnist import input_data
data = input_data.read_data_sets("/tmp/data/", one_hot=True)

# model
Expand All @@ -24,7 +25,7 @@
batch_xs, batch_ys = data.train.next_batch(100)
sess.run(train_step, feed_dict={x: batch_xs, y_: batch_ys})

print sess.run(accuracy, feed_dict={x: data.test.images, y_: data.test.labels})
print(sess.run(accuracy, feed_dict={x: data.test.images, y_: data.test.labels}))

path = saver.save(sess, "data/simple.ckpt")
print "Saved:", path
path = saver.save(sess, os.path.join(os.path.dirname(__file__), "data/simple.ckpt"))
print("Saved:", path)
2 changes: 1 addition & 1 deletion requirements.txt
Expand Up @@ -5,4 +5,4 @@ Jinja2==2.8
MarkupSafe==0.23
Werkzeug==0.11.2
wheel==0.24.0
https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.6.0-cp27-none-linux_x86_64.whl
https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.8.0-cp34-cp34m-linux_x86_64.whl
1 change: 1 addition & 0 deletions runtime.txt
@@ -0,0 +1 @@
python-3.4.3
1 change: 0 additions & 1 deletion submodules/tensorflow
Submodule tensorflow deleted from 8242b4

0 comments on commit 2aeb71b

Please sign in to comment.