KlugerLab / SpectralNet

Deep network that performs spectral clustering
MIT License
321 stars 103 forks source link

Error running SpectralNet #6

Closed gareththegeek closed 6 years ago

gareththegeek commented 6 years ago
>python run.py --dset=mnist
Using TensorFlow backend.
Traceback (most recent call last):
  File "run.py", line 16, in <module>
    from spectralnet import run_net
  File "C:\dev\spectral-clustering\SpectralNet\src\applications\spectralnet.py", line 19, in <module>
    from core import train
  File "C:\dev\spectral-clustering\SpectralNet\src\core\train.py", line 5, in <module>
    from keras.engine.training import _make_batches
ImportError: cannot import name '_make_batches'
lihenryhfl commented 6 years ago

Hey thanks for pointing this out! The code used a function that no longer exists in the newest version of Keras. I've made the change, just gonna make sure everything still runs correctly, and then I'll push it.

lihenryhfl commented 6 years ago

The error should be fixed. Let me know if there are any problems!

gareththegeek commented 6 years ago

Looks like it's all sorted in latest, cheers!