omar-florez / scratch_mlp

Explaining the Math of how neural networks learn

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ImportError: cannot import name 'utils'

peterjpxie opened this issue · comments

Error:

python scratch_mlp/scratch_mlp.py

Traceback (most recent call last):
  File "scratch_mlp/scratch_mlp.py", line 13, in <module>
    from scratch_mlp import utils
  File "/root/NNs/scratch_mlp/scratch_mlp.py", line 13, in <module>
    from scratch_mlp import utils
ImportError: cannot import name 'utils'

Origin code:

# scratch_mlp.py
from scratch_mlp import utils

Code works for me:

import utils

Tested environments:
Windows 7, Ubuntu 16.04
Python 3.5 and 3.7