ModuleNotFoundError: No module named 'ioc' in TFlearn Image Classification


February 2019


11 time


I am designing an image classifier using CNN in python, pycharm. I want to plot an accuracy graph at the end. Following is my code to plot the graph:

 hist = {
'Accuracy' : [x.value for x in ea.Scalars('Accuracy')],
'Validation Accuracy' : [x.value for x in     ea.Scalars('Accuracy/Validation')], 
'Loss' : [x.value for x in ea.Scalars('Loss')],
'Validation Loss' : [x.value for x in ea.Scalars     

fig = plt.figure()
keys = ['Accuracy', 'Loss', 'Validation Accuracy', 'Validation Loss']
for i,thing in enumerate(keys):
    trace = hist[thing]
    plt.plot(range(len(trace)), trace)


When I execute this code I get the following error:

Traceback (most recent call last):
  File "E:/VISION - CIFAR 10/CNN - CIFAR Ten/Trainig", line 4,          in <module>
    import ea as ea
  File "C:\Users\Wahab Abid\CNN - CIFAR Ten\lib\site-packages    \ea\", line 1, in <module>
    from ea import cqrs
  File "C:\Users\Wahab Abid\CNN - CIFAR Ten\lib\site-packages\ea\cqrs    \", line 3, in <module>
    from ea.cqrs.command import Command
   File "C:\Users\Wahab Abid\CNN - CIFAR Ten\lib\site-packages\ea\cqrs\command\", line 2, in <module>
    from ea.cqrs.command.provider import CommandHandlerProvider
  File "C:\Users\Wahab Abid\CNN - CIFAR Ten\lib\site-packages\ea\cqrs    \command\", line 3, in <module>
    import ioc.loader
ModuleNotFoundError: No module named 'ioc'

Can Someone Help?? I get it that the problem is with the import:

import ea as ea

I just don't get it that how to solve it and where to look. Thanks.

1 answers

  • Файл -> Настройки -> переводчик проекта:

введите описание изображения здесь

  • таким же образом установить еа библиотеку