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

Make autoencoder.py more Windows compatible #1561

Open
isaacgerg opened this issue Oct 29, 2015 · 1 comment
Open

Make autoencoder.py more Windows compatible #1561

isaacgerg opened this issue Oct 29, 2015 · 1 comment

Comments

@isaacgerg
Copy link

See: https://groups.google.com/forum/#!searchin/pylearn-users/example3_weights/pylearn-users/RVpBfdfYJFg/blpTqYYTEAAJ

I figured out the problem and I wonder if this is a bug. In autoencoder.py, the following code (at line 33):

def save(self, fname):
    fp = open(fname, 'w')
    pickle.dump([self.W, self.bias_vis, self.bias_hid], fp)
    fp.close()

should be:

def save(self, fname):
    fp = open(fname, 'wb')
    pickle.dump([self.W, self.bias_vis, self.bias_hid], fp)
    fp.close()
@nouiz
Copy link
Member

nouiz commented Nov 18, 2015

That is a good food. If you make a pr we will merge it.

Fred
Le 29 oct. 2015 17:27, "isaacgerg" [email protected] a écrit :

See:
https://groups.google.com/forum/#!searchin/pylearn-users/example3_weights/pylearn-users/RVpBfdfYJFg/blpTqYYTEAAJ

I figured out the problem and I wonder if this is a bug. In
autoencoder.py, the following code (at line 33):

def save(self, fname):
fp = open(fname, 'w')
pickle.dump([self.W, self.bias_vis, self.bias_hid], fp)
fp.close()

should be:

def save(self, fname):
fp = open(fname, 'wb')
pickle.dump([self.W, self.bias_vis, self.bias_hid], fp)
fp.close()


Reply to this email directly or view it on GitHub
#1561.

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