GithubHelp home page GithubHelp logo

andreamad8 / qdren Goto Github PK

View Code? Open in Web Editor NEW
14.0 4.0 6.0 15.91 MB

Question Dependent Recurrent Entity Network

License: MIT License

Python 100.00%
recurrent-entity-networks recurrent-neural-networks deep-learning babi-tasks cnn-qa question-answering

qdren's People

Contributors

andreamad8 avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

qdren's Issues

ImportError: No module named 'config'

mldl@mldlUB1604:/ub16_prj/QDREN/CNN$ python3 run_final.py
Traceback (most recent call last):
File "run_final.py", line 10, in
from src.utils.ulilz_CNN import Dataset
File "/home/mldl/ub16_prj/QDREN/CNN/src/utils/ulilz_CNN.py", line 2, in
import config
ImportError: No module named 'config'
mldl@mldlUB1604:
/ub16_prj/QDREN/CNN$

ImportError: No module named 'data.email_util'

mldl@mldlUB1604:/ub16_prj/QDREN/CNN$
mldl@mldlUB1604:
/ub16_prj/QDREN/CNN$ PYTHONPATH=src python3 run_final.py
Traceback (most recent call last):
File "run_final.py", line 11, in
from src.trainer.train import train
File "/home/mldl/ub16_prj/QDREN/CNN/src/trainer/train.py", line 18, in
from data.email_util import send_email
ImportError: No module named 'data.email_util'
mldl@mldlUB1604:~/ub16_prj/QDREN/CNN$

change form 'w' to 'wb' in open to support python3

        with open(ckpt_dir + "training_logs.pik", 'wb') as f:  #yknote for python3 error must be str, not bytes
            pickle.dump((train_loss, train_acc, val_loss, val_acc, test_loss, test_acc), f)

otherwise, it reports error 'must be str, not bytes'

TypeError: only integer scalar arrays can be converted to a scalar index

mldl@mldlUB1604:/ub16_prj/QDREN/bAbI$ PYTHONPATH=src python3 run_final.py 15
/usr/local/lib/python3.5/dist-packages/sklearn/cross_validation.py:44: DeprecationWarning: This module was deprecated in version 0.18 in favor of the model_selection module into which all the refactored classes and functions are moved. Also note that the interface of the new CV iterators are different from that of this module. This module will be removed in 0.20.
"This module will be removed in 0.20.", DeprecationWarning)
/usr/local/lib/python3.5/dist-packages/sklearn/grid_search.py:43: DeprecationWarning: This module was deprecated in version 0.18 in favor of the model_selection module into which all the refactored classes and functions are moved. This module will be removed in 0.20.
DeprecationWarning)
08-07 23:14 Longest sentence length: 6
08-07 23:14 Longest story length: 8
08-07 23:14 Average story length: 8
08-07 23:14 Training sample: 900
08-07 23:14 Validation sample: 100
08-07 23:14 Test sample: 1000
08-07 23:14 Vocab size : 18
08-07 23:14 Embeddings: 18 x 100
08-07 23:14 Loading embedding file: data/glove.6B.100d.txt
08-07 23:14 Pre-trained: 17 (94.44%)
08-07 23:14 Parameters: 49000
08-07 23:14 Initializing Variables!
08-07 23:14 Training stated
08-07 23:14 Epoch 0 Train Loss: 4.137 Train Accuracy: 0.206
08-07 23:14 Start plotting
Traceback (most recent call last):
File "run_final.py", line 88, in
main(task_num=sys.argv[1])
File "run_final.py", line 64, in main
t = train(epoch,params['bz'], data, par, dr=params['dr'], _test=True)
File "/home/mldl/ub16_prj/QDREN/bAbI/src/trainer/train.py", line 128, in train
val_loss[e], val_acc[e] = val_test(all_val,'Validation')
File "/home/mldl/ub16_prj/QDREN/bAbI/src/trainer/train.py", line 85, in val_test
viz(e)
File "/home/mldl/ub16_prj/QDREN/bAbI/src/trainer/train.py", line 59, in viz
for i in range(l):
TypeError: only integer scalar arrays can be converted to a scalar index
mldl@mldlUB1604:
/ub16_prj/QDREN/bAbI$
mldl@mldlUB1604:~/ub16_prj/QDREN/bAbI$

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.