Skip to content

Conversation

@lgarithm
Copy link
Member

No description provided.

@lgarithm
Copy link
Member Author

@luomai @zsdonghao could you help setup the webhook for codacy, instruction is here.

@lgarithm
Copy link
Member Author

@luomai @zsdonghao when you finish setup the webhook, please reply to this thread, to trigger a comment event.

zsdonghao
zsdonghao previously approved these changes Feb 22, 2018
@lgarithm lgarithm changed the title remove two dangerous default values (example PR for codacy) [WIP] remove two dangerous default values (example PR for codacy) Feb 22, 2018
@lgarithm
Copy link
Member Author

still not reviewed by codacy, don't merge.

@luomai luomai self-requested a review February 22, 2018 15:44
@luomai luomai dismissed zsdonghao’s stale review February 22, 2018 15:44

need further review

@lgarithm lgarithm changed the title [WIP] remove two dangerous default values (example PR for codacy) remove two dangerous default values (example PR for codacy) Feb 22, 2018
@lgarithm lgarithm changed the title remove two dangerous default values (example PR for codacy) [WIP] remove two dangerous default values (example PR for codacy) Feb 22, 2018
@luomai
Copy link
Member

luomai commented Feb 22, 2018

@lgarithm
Copy link
Member Author

@luomai you can also filter issus by pattern here.

@tensorlayer tensorlayer deleted a comment Feb 22, 2018
# placeholder
x = tf.placeholder(tf.float32, shape=[None, 784], name='x')
y_ = tf.placeholder(
tf.placeholder(
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The whole statement should be removed, not just y_

    y_ = tf.placeholder(
        tf.int64, shape=[
            None,
        ], name='y_')

# Define fine-tune process
y = network.outputs
y_op = tf.argmax(tf.nn.softmax(y), 1)
tf.argmax(tf.nn.softmax(y), 1)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tf.argmax(tf.nn.softmax(y), 1)
should also be removed

@tensorlayer tensorlayer deleted a comment Feb 22, 2018
@tensorlayer tensorlayer deleted a comment Feb 22, 2018
@tensorlayer tensorlayer deleted a comment Feb 22, 2018
@tensorlayer tensorlayer deleted a comment Feb 22, 2018
@tensorlayer tensorlayer deleted a comment Feb 22, 2018
return
print("Converting data into %s ..." % filename)
cwd = os.getcwd()
# cwd = os.getcwd()
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just delete this line if now used.

@tensorlayer tensorlayer deleted a comment Feb 22, 2018
@tensorlayer tensorlayer deleted a comment Feb 22, 2018
import tensorlayer as tl
from PIL import Image
from tensorlayer.layers import *
"""Reimplementation of the TensorFlow official CIFAR-10 CNN tutorials:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Put before imports @zsdonghao

EN: https://medium.com/emergent-future/simple-reinforcement-learning-with-tensorflow-part-0-q-learning-with-tables-and-neural-networks-d195264329d0#.5m3361vlw
CN: https://zhuanlan.zhihu.com/p/25710327
"""
# Q-Table learning algorithm, non deep learning - TD Learning, Off-Policy, e-Greedy Exploration
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@zsdonghao put before imports

from scipy.misc import imread, imresize
from tensorflow.contrib.slim.python.slim.nets.alexnet import alexnet_v2
from tensorflow.contrib.slim.python.slim.nets.inception_v3 import (inception_v3, inception_v3_arg_scope, inception_v3_base)
# from scipy.misc import imread, imresize
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we remove this?

@tensorlayer tensorlayer deleted a comment Feb 22, 2018
@tensorlayer tensorlayer deleted a comment Feb 22, 2018
@luomai luomai changed the title [WIP] remove two dangerous default values (example PR for codacy) Fix codacy issues. Feb 22, 2018
@luomai luomai changed the title Fix codacy issues. Fix issues suggested by codacy. Feb 22, 2018
@tensorlayer tensorlayer deleted a comment Feb 22, 2018
@tensorlayer tensorlayer deleted a comment Feb 22, 2018
@tensorlayer tensorlayer deleted a comment Feb 22, 2018
@tensorlayer tensorlayer deleted a comment Feb 22, 2018
@luomai luomai merged commit 54497ae into master Feb 22, 2018
@luomai luomai deleted the codacy branch February 22, 2018 18:25
luomai pushed a commit that referenced this pull request Nov 21, 2018
* remove two dangerous default values

* fix mnist tutorial based on codacy

* address hao's comments.

* remove unused y_op

* hao conv.py

* hao prepro.py

* hao files.py

* remove str statement

* hao example mnist

* yapf

* hao cifar10

* hao inceptionv3

* hao ptb tfrecord image processing

* hao tutorials

* str comment

* str docs

* Update README.md

* remove unused code

* minor fix

* small fix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants