Chap 15, pg 513 : ModuleNotFoundError: No module named 'torchdata.datapipes'

Open
#199 14 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
pytorch

Research direction

Start with the Chapter 15, page 513 IMDB example and reproduce the torchtext import and torchdata installation error. Check the dependency versions used by the chapter against currently installable versions; done when the train and test IMDB dataset calls run without ModuleNotFoundError.

Written by the indexing model from the issue text.

Description

`
from torchtext.datasets import IMDB
train_dataset = IMDB(split='train')
test_dataset = IMDB(split='test')

`
I keep getting this error despite manually installing torchdata. When I tried installing the exact version of torchtext used in the chapter, version 0.10.0, pip couldn't recognize as a valid version.

I can't find any solution to it online

Dominant language
Jupyter Notebook
Stars
5.4k
Forks
1.8k
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from rasbt/machine-learning-book

All issues in rasbt/machine-learning-book

Similar issues

More Machine Learning issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.