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

Pickling the trained model #7

Closed
gsvijayraajaa opened this issue Sep 28, 2015 · 2 comments
Closed

Pickling the trained model #7

gsvijayraajaa opened this issue Sep 28, 2015 · 2 comments

Comments

@gsvijayraajaa
Copy link

Hi,

I am not able to serialise the trained som using python pickle module. I am trying to do the following:

som = MiniSom(4,4,40,sigma=.8,learning_rate=0.5)
som.train_random(Training_data,2000) # random training

output_som = open('som.pickle', 'wb')
pickle.dump(som, output_som, -1)
output_som.close()

I get the following error:
PicklingError: Can't pickle <type 'instancemethod'>: it's not found as builtin.instancemethod

Regards,
Vijay Raajaa G S

@JustGlowing
Copy link
Owner

Hi,

Check out the comments under this post:

http://glowingpython.blogspot.co.uk/2013/09/self-organizing-maps.html?m=1

@gsvijayraajaa
Copy link
Author

Thanks.. It did work !!

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