question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

This is the error log I get while reinstalling and running the model with python3 main.py. Any fixes/suggestions with keras_wrapper ?

Using Theano backend.
[02/08/2020 11:27:52] <<< Cupy not available. Using numpy. >>>
[02/08/2020 11:27:52] Running training.
[02/08/2020 11:27:52] Building mydata5_enhi dataset
[02/08/2020 11:27:53] 	Applying tokenization function: "tokenize_none".
[02/08/2020 11:27:53] Creating vocabulary for data with data_id 'target_text'.
[02/08/2020 11:27:53] 	 Total: 42963 unique words in 80000 sentences with a total of 466800 words.
[02/08/2020 11:27:53] Creating dictionary of all words
[02/08/2020 11:27:53] Loaded "train" set outputs of data_type "text" with data_id "target_text" and length 80000.
[02/08/2020 11:27:53] Loaded "train" set outputs of type "file-name" with id "raw_target_text".
[02/08/2020 11:27:53] 	Applying tokenization function: "tokenize_none".
[02/08/2020 11:27:53] Loaded "val" set outputs of data_type "text" with data_id "target_text" and length 1800.
[02/08/2020 11:27:53] Loaded "val" set outputs of type "file-name" with id "raw_target_text".
[02/08/2020 11:27:53] 	Applying tokenization function: "tokenize_none".
[02/08/2020 11:27:53] Loaded "test" set outputs of data_type "text" with data_id "target_text" and length 1200.
[02/08/2020 11:27:53] Loaded "test" set outputs of type "file-name" with id "raw_target_text".
[02/08/2020 11:27:53] 	Applying tokenization function: "tokenize_none".
[02/08/2020 11:27:53] Creating vocabulary for data with data_id 'source_text'.
[02/08/2020 11:27:54] 	 Total: 34428 unique words in 80000 sentences with a total of 401199 words.
[02/08/2020 11:27:54] Creating dictionary of all words
Traceback (most recent call last):
  File "main.py", line 49, in <module>
    train_model(parameters, args.dataset)
  File "/home/pandramish.vinay/nmt-keras/nmt_keras/training.py", line 62, in train_model
    dataset = build_dataset(params)
  File "/home/pandramish.vinay/nmt-keras/data_engine/prepare_data.py", line 192, in build_dataset
    bpe_codes=params.get('BPE_CODES_PATH', None))
  File "/home/pandramish.vinay/.local/lib/python3.5/site-packages/keras_wrapper/dataset.py", line 1255, in setInput
    add_additional)
  File "/home/pandramish.vinay/.local/lib/python3.5/site-packages/keras_wrapper/dataset.py", line 1282, in __setInput
    self.__checkLengthSet(set_name)
  File "/home/pandramish.vinay/.local/lib/python3.5/site-packages/keras_wrapper/dataset.py", line 4978, in __checkLengthSet
    lengths.append(len(getattr(self, 'Y_' + set_name)[id_out]))
KeyError: 'raw_target_text'

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
VP007-pycommented, Aug 3, 2020

Hey, apologies for not updating…the current version works perfectly fine !

0reactions
lvapeabcommented, Aug 13, 2020

Sometimes it fails… but other times it works? Weird

Can you share your config.py file?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Definition of data error - PCMag
A condition in which data on a digital medium has been altered erroneously. The error can manifest as several incorrect bits or even...
Read more >
Data error definition and meaning | Collins English Dictionary
Data error definition: You can refer to information as data , especially when it is in the form of facts or... | Meaning,...
Read more >
Data error - Encyclopedia - The Free Dictionary
A condition in which data on a digital medium has been altered erroneously. The error can manifest as several incorrect bits or even...
Read more >
5 Common data entry errors and ways to prevent them
5 common data entry errors · Inaccurate data inputs · Wrong data formatting · Transposition error · Representation/unit inconsistencies · Data ...
Read more >
DATA and ERROR ANALYSIS
DATA and ERROR ANALYSIS. Performing the experiment and collecting data is only the beginning of the process of completing an experiment in science....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found