Giter Site home page Giter Site logo

sentencefunction's People

Contributors

kepei1106 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

Watchers

 avatar  avatar  avatar  avatar

sentencefunction's Issues

training speed

您好啊,非常感谢您公开您的代码,我想问一下当时您训练的时候运行速度怎么样呢,我训练的时候感觉特别慢呢,特别想请教一下您,看看是不是出什么问题了

about keywords

hi,thanks for your opening code.the keyword data is not exist in the opening dataset, how to get it?

best.

训练步数

你好,请问下可以告知下,论文中结果是训练了多少步测试的结果吗

ValueError: setting an array element with a sequence

ValueError: setting an array element with a sequence.
global step 0 learning rate 0.1000 step-time 0.00 perplexity [1.00] kl_loss [0.00] dec_loss [0.00] dis_loss [0.00]
Traceback (most recent call last):
File "main.py", line 342, in
evaluate(model, sess, data_dev)
File "main.py", line 202, in evaluate
outputs = model.step_decoder(sess, batched_data, forward_only=True, global_t = FLAGS.full_kl_step)
File "/home/Documents/code/sentence-function/model.py", line 262, in step_decoder
return session.run(output_feed, input_feed)
File "/home/anaconda3/envs/conda36/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 929, in run
run_metadata_ptr)
File "/home/anaconda3/envs/conda36/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1121, in _run
np_val = np.asarray(subfeed_val, dtype=subfeed_dtype)
File "/home/anaconda3/envs/conda36/lib/python3.6/site-packages/numpy/core/numeric.py", line 538, in asarray
return array(a, dtype, copy=False, order=order)
ValueError: setting an array element with a sequence.

I saw @shaneshbi solved this problem by adjusting .label files, but still can't figure it out.

ValueError: setting an array element with a sequence

ValueError: setting an array element with a sequence.
global step 0 learning rate 0.1000 step-time 0.00 perplexity [1.00] kl_loss [0.00] dec_loss [0.00] dis_loss [0.00]
Traceback (most recent call last):
File "main.py", line 342, in
evaluate(model, sess, data_dev)
File "main.py", line 202, in evaluate
outputs = model.step_decoder(sess, batched_data, forward_only=True, global_t = FLAGS.full_kl_step)
File "/home/Documents/code/sentence-function/model.py", line 262, in step_decoder
return session.run(output_feed, input_feed)
File "/home/anaconda3/envs/conda36/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 929, in run
run_metadata_ptr)
File "/home/anaconda3/envs/conda36/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1121, in _run
np_val = np.asarray(subfeed_val, dtype=subfeed_dtype)
File "/home/anaconda3/envs/conda36/lib/python3.6/site-packages/numpy/core/numeric.py", line 538, in asarray
return array(a, dtype, copy=False, order=order)
ValueError: setting an array element with a sequence.

error occurs when execute sess.run()
it seems like to be some input dim errors .
i tried many ways but haven't do with it
can u help solve it?

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.