Git Product home page Git Product logo

robsut-wrod-reocginiton's Introduction

robsut-wrod-reocginiton's People

Contributors

dzahedibm avatar keisks avatar

Stargazers

 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

robsut-wrod-reocginiton's Issues

Hi, I have a problem implementing your predict.py

Firstly, I appreciate your sprits for sharing your code. It helped me a lot. But when I am trying to run predict.py, I am in trouble with the command "python predict.py -m models/train_j-INT_n-JUMBLE_u-650_batch-20_ep-10_model.h5". I have prepared the file and the command ends with the error information as follows:

Traceback (most recent call last):
File "predict.py", line 135, in <module>
  model = load_model(model_file)
File "C:\Python35\lib\site-packages\keras\models.py", line 280, in load_model
  model.optimizer.set_weights(optimizer_weight_values)
File "C:\Python35\lib\site-packages\keras\optimizers.py", line 79, in set_weights
  'provided weight shape ' + str(w.shape))
ValueError: Optimizer weight shape (2600,) not compatible with provided weight shape (650, 10002)

It seems like the shape does not match. I am a beginner and I can't figure out what is going wrong. If you can give me some advice, it will help me a lot. Looking forword to your reply.

IOError: [Errno 2] No such file or directory: './results/train_j-INT_n-JUMBLE_u-650_batch-20.result'

Can you tell me why I am geting this error

.conda/envs/py27/lib/python2.7/site-packages/h5py/__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.
  from ._conv import register_converters as _register_converters
Using TensorFlow backend.
===== EXP SETTING =====
num epoch:	30
num units:	650
batch size:	20
noise type:	JUMBLE
jumble type:	INT
is pilot?:	False
===== LOADING VOCAB =====
#vocab:	 10000
#tokens in training:	 990180
#tokens in validation:	 41821
===== VECTORIZING DATA =====
99 % for train data
99 % for dev data
data shape (#_batches, batch_size, vector_size)
X_train (49509, 20, 228)
Y_train (49509, 20, 10002)
X_dev (2091, 20, 228)
Y_dev (2091, 20, 10002)
Traceback (most recent call last):
  File "train.py", line 182, in <module>
    result_file = open('./results/' + EXP_NAME +'.result', 'w')
IOError: [Errno 2] No such file or directory: './results/train_j-INT_n-JUMBLE_u-650_batch-20.result'

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.