Why ModuleNotFoundError: No module named'dataset.mnist' appears in "Deep Learning from scratch".

Purpose

With the GitHub code of "Deep Learning from scratch"

ModuleNotFoundError: No module named 'dataset.mnist'

Is the reason why I understand, so Description. (** I felt that the questions in the world didn't mesh with each other **, so I looked it up a bit.)

Description

Cause

The reason is that ** there is already a module named "dataset" with a different name **. as below, Start python, Import the dataset, You can find out where it is by looking up the location.

C:\_qiita\_zero\deep-learning-from-scratch-master\ch08>python
Python 3.7.2 (tags/v3.7.2:9a3ffc0492, Dec 23 2018, 23:09:28) [MSC v.1916 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>
>>>
>>>
>>> import dataset
>>> dataset.__file__
'C:\\Users\\XYZZZ\\AppData\\Local\\Programs\\Python\\Python37\\lib\\site-packages\\dataset\\__init__.py'
>>>

Countermeasures

For example, changing the dataset this time to dataset_zero, Isn't such a method good?

Summary

This article may be a little useful. If you have any comments, please let us know. : candy: I feel like I've experienced the same thing once before, so maybe ** python is there **.

Recommended Posts

Why ModuleNotFoundError: No module named'dataset.mnist' appears in "Deep Learning from scratch".
"Deep Learning from scratch" in Haskell (unfinished)
Deep Learning from scratch
"Deep Learning from scratch" Self-study memo (No. 11) CNN
"Deep Learning from scratch" Self-study memo (No. 19) Data Augmentation
"Deep Learning from scratch 2" Self-study memo (No. 21) Chapters 3 and 4
An amateur stumbled in Deep Learning from scratch Note: Chapter 1
An amateur stumbled in Deep Learning from scratch Note: Chapter 3
An amateur stumbled in Deep Learning from scratch Note: Chapter 7
An amateur stumbled in Deep Learning from scratch Note: Chapter 5
"Deep Learning from scratch" self-study memo (No. 18) One! Meow! Grad-CAM!
"Deep Learning from scratch" self-study memo (No. 19-2) Data Augmentation continued
An amateur stumbled in Deep Learning from scratch Note: Chapter 4
An amateur stumbled in Deep Learning from scratch Note: Chapter 2
"Deep Learning from scratch" self-study memo (No. 15) TensorFlow beginner tutorial
Deep learning from scratch (cost calculation)
Deep Learning memos made from scratch
ModuleNotFoundError in poetry: No module named'setuptools'
"Deep Learning from scratch" Self-study memo (No. 14) Run the program in Chapter 4 on Google Colaboratory
"Deep Learning from scratch" self-study memo (No. 13) Try using Google Colaboratory
"Deep Learning from scratch" Self-study memo (No. 10-2) Initial value of weight
[Learning memo] Deep Learning made from scratch [Chapter 7]
Deep learning / Deep learning from scratch 2-Try moving GRU
[Learning memo] Deep Learning made from scratch [Chapter 5]
[Learning memo] Deep Learning made from scratch [Chapter 6]
ModuleNotFoundError in Python: No module named story
Deep learning / Deep learning made from scratch Chapter 7 Memo
[Windows 10] "Deep Learning from scratch" environment construction
Learning record of reading "Deep Learning from scratch"
[Deep Learning from scratch] About hyperparameter optimization
"Deep Learning from scratch" Self-study memo (Part 12) Deep learning
[Learning memo] Deep Learning made from scratch [~ Chapter 4]
"Deep Learning from scratch" Self-study memo (9) MultiLayerNet class
Deep Learning from scratch ① Chapter 6 "Techniques related to learning"
Good book "Deep Learning from scratch" on GitHub
Deep Learning from scratch Chapter 2 Perceptron (reading memo)
[Learning memo] Deep Learning from scratch ~ Implementation of Dropout ~
ModuleNotFoundError: No module named'_bz2' error in pyenv Python
Python vs Ruby "Deep Learning from scratch" Summary
Import cv2 ModuleNotFoundError: No module named'cv2' in python3
"Deep Learning from scratch" Self-study memo (10) MultiLayerNet class
[Python] [Natural language processing] I tried Deep Learning ❷ made from scratch in Japanese ①
Lua version Deep Learning from scratch Part 5.5 [Making pkl files available in Lua Torch]
[For beginners] After all, what is written in Deep Learning made from scratch?
ModuleNotFoundError: No module named'py4j'
[Deep Learning from scratch] I implemented the Affine layer
"Deep Learning from scratch" Self-study memo (No. 16) I tried to build SimpleConvNet with Keras
Application of Deep Learning 2 made from scratch Spam filter
[Deep Learning from scratch] I tried to explain Dropout
[Deep Learning from scratch] I tried to explain the gradient confirmation in an easy-to-understand manner.
"Deep Learning from scratch" Self-study memo (Part 8) I drew the graph in Chapter 6 with matplotlib
[Deep Learning from scratch] Implement backpropagation processing in neural network by error back propagation method
[Deep Learning from scratch] Implementation of Momentum method and AdaGrad method
Making from scratch Deep Learning ❷ An amateur stumbled Note: Chapter 5
Making from scratch Deep Learning ❷ An amateur stumbled Note: Chapter 2
Create an environment for "Deep Learning from scratch" with Docker
Making from scratch Deep Learning ❷ An amateur stumbled Note: Chapter 7
Making from scratch Deep Learning ❷ An amateur stumbled Note: Chapter 1
Making from scratch Deep Learning ❷ An amateur stumbled Note: Chapter 4
I tried to implement Perceptron Part 1 [Deep Learning from scratch]
Making from scratch Deep Learning ❷ An amateur stumbled Note: Chapter 6