GithubHelp home page GithubHelp logo

ne7ermore / deeping-flow Goto Github PK

View Code? Open in Web Editor NEW
50.0 50.0 14.0 31.13 MB

Deep-learning by using TensorFlow. Basic nns like Logistic, CNN, RNN, LSTM and some examples are implemented by complex model.

License: MIT License

Python 99.61% Makefile 0.39%
tensorflow

deeping-flow's People

Contributors

ne7ermore avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

deeping-flow's Issues

Loss rate is weird in lstm-cnn-classfication

After I run the lstm-cnn-classfication, the output turns out that the val-loss rate is increased.
But in the result.png, the train-loss is decreased. How can I make the train-loss displayed in terminal? so that I can debug with it.

A error of deeping-flow/reinforced-translate

hi,
I tried to run deeping-flow/reinforced-translate/ but got an error:

Traceback (most recent call last):
File "train.py", line 65, in
rl = Reinforced(model, args)
File "/Users/zhengwenjia/Workspace/Temp/deeping-flow/reinforced-translate/model.py", line 176, in init
mask = pad_mask(model.tgt, EOS, [args.batch_size, args.max_len])
NameError: name 'EOS' is not defined

dynamic_rnn的outputs似乎不能保存for循环前几步的输出

dec_out: decode out, size - [bsz*time*dec_hsz]

这里说dec_out的形状是bsz * time * dec_hsz。而dec_out是model.py中tf.nn.dynamic_rnn的输出。因为你每个时间步的对dynamic_rnn的输入形状是bsz * 1 * emb_dim,所以dec_out的形状应该是bsz * 1 * dec_hsz,他不会保存前几个时间步的状态。麻烦您看看我的疑问是否正确。

关于采样结果不能直接计算 compute_levenshtein()

Hi,

https://github.com/ne7ermore/deeping-flow/blob/master/reinforced-translate/model.py

b_words = model.sample(self.prev)
s_words, s_props = model.sample(self.prev, False)

rewards = self.compute_levenshtein(model.tgt, s_words)
baseline = self.compute_levenshtein(model.tgt, b_words)
advantage = rewards - baseline

其中的 b-words 和 s-words 都是 Tensor 类型, 而计算 compute_levenshtein 里面直接用的 for 循环展开,用的 eager 模式?

Thanks

UnicodeDecodeError in corpus.py

Sorry, I have encountered a UnicodeDecodeError when I run the corpus.py with python3.6.
The problem is following:

Traceback (most recent call last):
File "corpus.py", line 136, in
Corpus()
File "corpus.py", line 69, in init
self.parse_data("data/train.txt", True)
File "corpus.py", line 75, in parse_data
for line in open(inf):
File "/home/guest/Users/Wangyue/virtualenv/tensorflow_py36/lib/python3.6/codecs.py", line 321, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe4 in position 513: invalid continuation byte

Can you help me to solve this problem?
Thank you.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.