OdysseasKr / neural-disaggregator

Code for NILM experiments using Neural Networks. Uses Keras/Tensorflow and the NILMTK.
MIT License
138 stars 58 forks source link

ImportError: cannot import name 'Disaggregator' from 'nilmtk.disaggregate' (unknown location) #21

Closed chenyuliang1996 closed 4 years ago

chenyuliang1996 commented 4 years ago

Why am I wrong here?

image

chenyuliang1996 commented 4 years ago

After I added the new disaggregator library, a new problem appeared. image

OdysseasKr commented 4 years ago

Hi @Timelesssssss. This code does not run with the latest version of NILMTK yet. I would say please use this disaggregator class if you are willing to tinker with NILMTK.

Otherwise please consider using this instead. It features algorithms compatible with the latest NILMTK.

chenyuliang1996 commented 4 years ago

OK,thanku very much,I will try these!

ChristoferNal commented 4 years ago

Hi @Timelesssssss , you can also try: from nilmtk.legacy.disaggregate import Disaggregator