Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

About paysage.models.model #118

Open
xiaowangzai opened this issue Oct 17, 2018 · 2 comments
Open

About paysage.models.model #118

xiaowangzai opened this issue Oct 17, 2018 · 2 comments

Comments

@xiaowangzai
Copy link

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
Copy link
Owner

drckf commented Oct 17, 2018

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
Copy link
Author

OK. Thanks !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants