drckf / paysage

Unsupervised learning and generative models in python/pytorch.
Other
119 stars 25 forks source link

About paysage.models.model #118

Open xiaowangzai opened 6 years ago

xiaowangzai commented 6 years ago

In your notebook, you use from paysage.models.model import Model to construct the model, but i find there is no such function , have you ever change that part code?

drckf commented 6 years ago

I assume you are referring to the notebooks from the paper A high bias low-variance introduction to Machine Learning for physicists.

The paysage repo has been updated since the initial version of the paper was published on the arXiv. The notebooks at the above link have also been updated. If you download the python versions of the notebooks at the link above, you should see that the import statements are of the form:

# for Boltzmann machines
from paysage import preprocess as pre
from paysage.layers import BernoulliLayer, GaussianLayer
from paysage.models import BoltzmannMachine
from paysage import batch
from paysage import fit
from paysage import optimizers
from paysage import samplers
from paysage import backends as be
from paysage import schedules
from paysage import penalties as pen

However, it appears that the html versions of the notebooks have not been updated. I don't maintain that site, but will ask them to update the html versions so that they match the python versions asap.

xiaowangzai commented 6 years ago

OK. Thanks !