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.

Is character-level RNN example not ready to use yet?

See original GitHub issue

It seems data is not connected nor processed for the model yet.

simply run kur -v train kurfile.yml in the language model, I got the following error message:

Traceback (most recent call last):
  File "/Users/Natsume/miniconda2/envs/dlnd-tf-lab/bin/kur", line 11, in <module>
    load_entry_point('kur', 'console_scripts', 'kur')()
  File "/Users/Natsume/Downloads/kur_road/kur/kur/__main__.py", line 382, in main
    sys.exit(args.func(args) or 0)
  File "/Users/Natsume/Downloads/kur_road/kur/kur/__main__.py", line 61, in train
    func = spec.get_training_function()
  File "/Users/Natsume/Downloads/kur_road/kur/kur/kurfile.py", line 259, in get_training_function
    provider = self.get_provider('train')
  File "/Users/Natsume/Downloads/kur_road/kur/kur/kurfile.py", line 240, in get_provider
    sources=Supplier.merge_suppliers(suppliers),
  File "/Users/Natsume/Downloads/kur_road/kur/kur/supplier/supplier.py", line 130, in merge_suppliers
    sources = supplier.get_sources()
  File "/Users/Natsume/Downloads/kur_road/kur/kur/supplier/jsonl_supplier.py", line 80, in get_sources
    self._load()
  File "/Users/Natsume/Downloads/kur_road/kur/kur/supplier/jsonl_supplier.py", line 59, in _load
    with open(self.source, 'r') as infile:
FileNotFoundError: [Errno 2] No such file or directory: '../data/train.jsonl'

When and how can I try this example? Thanks a lot!

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
noajshucommented, Mar 7, 2017

Yes, reduced data set size takes less time to generate and train.

0reactions
EmbraceLifecommented, Mar 4, 2017

@noajshu Thank you very much! This example is great, I really want to see it in kur.

  • with your solution above, make_data.py only takes a few seconds
  • kur -v train kurfile.yaml only takes less than 4 mins, compared to default setting’s estimated 5 hours training
  • Also the previous 30 minutes loading time is gone too Now, I would like to be clear about what made it take 30 mins to load previously? was it the large dataset? with smaller dataset, loading time reduced?

Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Character Level RNN Exercise | Neurotic Networking
In this notebook, I'll construct a character-level LSTM with PyTorch. The network will train character by character on some text, ...
Read more >
Classifying Names with a Character-Level RNN
We will be building and training a basic character-level RNN to classify words. A character-level RNN reads words as a series of characters...
Read more >
Character Level NLP - LightTag
Usually, in language, we work with words. This post explores the merits and drawbacks of another, unintuitive, choice, working at the character level....
Read more >
Recurrent Neural Networks (RNNs) - Towards Data Science
The main objective of this post is to implement an RNN from scratch and provide an easy explanation as well to make it...
Read more >
How to Develop a Character-Based Neural Language Model ...
It is also possible to develop language models at the character level using neural networks. The benefit of character-based language models ...
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