Bonjour à tous (English will follow),
puisque la libraire matplotlib n'est pas installée sur mammouth, vous devrez faire un changement à vos fichiers autoencoders.py et rbm.py, afin que la librairie ne soit pas importée par défaut, mais seulement si show_filters est appelé (ce qui n'est pas le cas pour vos expériences de classification).
Pour ce faire, prenez les lignes:
from matplotlib.pylab import show, draw, ion
import mlpython.misc.visualize as mlvis
et placez les plutôt au début de la méthode show_filters, comme suit:
def show_filters(self):
from matplotlib.pylab import show, draw, ion
import mlpython.misc.visualize as mlvis
mlvis.show_filters(0.5*self.W.T,
200,
16,
8,
10,20,2)
show()
Merci à Samuel pour avoir remarqué ce problème!
J'ai fait ces changements également dans les skelettes disponibles sur le site web du cours.
===
Hi all,
since the matplotlib library is not installed on mammouth, you must make a change to your files autoencoders.py and rbm.py, so that the library is only imported within the show_filters method (which isn't called by your classification experiments).
To do this, take the following lines:
from matplotlib.pylab import show, draw, ion
import mlpython.misc.visualize as mlvis
and put them at the beginning of the definition of show_filters, as follows:
def show_filters(self):
from matplotlib.pylab import show, draw, ion
import mlpython.misc.visualize as mlvis
mlvis.show_filters(0.5*self.W.T,
200,
16,
8,
10,20,2)
show()
Thanks to Sam for reporting this issue to me!
I made the same changes to the class skeletons on the website.