No module named 'util'

Post Reply
H_T_
Posts: 3
Joined: Sun Sep 02, 2018 6:53 am

No module named 'util'

Post by H_T_ » Sun Sep 02, 2018 7:18 am

Dear Lazy Programmer,
I am trying to code along to the tutorial on:
DeepLearningInPythonPart1_58_FacialExpressionRecognitionInCode(BinarySigmoid)
But when I get to the line:
from util import getBinaryData, sigmoid, sigmoid_cost, error_rate, relu
On all of my Python setups (Windows, Ubuntu, Mac),
I get this error:
ModuleNotFoundError: No module named 'util'
I have tried to pip install this, but cannot do it.
Can you please give some guidance on how to make this work please?
Thank you,
Kind Regards, H

lazyprogrammer
Site Admin
Posts: 9
Joined: Sat Jul 28, 2018 3:46 am

Re: No module named 'util'

Post by lazyprogrammer » Sun Sep 02, 2018 7:35 am

Thanks for your question!

The intention is for you to clone the code repository from Github, which provides you with all the files simultaneously.

util.py is part of those files, and also, its contents are described in the lectures.

H_T_
Posts: 3
Joined: Sun Sep 02, 2018 6:53 am

Re: No module named 'util'

Post by H_T_ » Mon Sep 03, 2018 3:53 am

Thank you for your prompt response. :-)
I'll give that a go.

Post Reply

Return to “Data Science: Deep Learning in Python”