Growing Neural Gas can't be pickled
See original GitHub issueHi, When I pickle GNG model, and then load it, it can’t continue training. It gives an error, connecting with edges. dill library has the same error.
~/python3.6/site-packages/neupy/algorithms/competitive/growing_neural_gas.py in train(self, input_train, summary, epochs)
299 input_test=None, target_test=None,
300 epochs=epochs, epsilon=None,
--> 301 summary=summary)
302
303 def train_epoch(self, input_train, target_train=None):
~/python3.6/site-packages/neupy/algorithms/base.py in train(self, input_train, target_train, input_test, target_test, epochs, epsilon, summary)
407
408 try:
--> 409 train_error = train_epoch(input_train, target_train)
410
411 if can_compute_validation_error:
~/python3.6/site-packages/neupy/algorithms/competitive/growing_neural_gas.py in train_epoch(self, input_train, target_train)
346 for to_neuron in list(graph.edges_per_node[closest_neuron]):
347 edge_id = make_edge_id(to_neuron, closest_neuron)
--> 348 age = graph.edges[edge_id]
349
350 if age >= max_edge_age:
KeyError: (<neupy.algorithms.competitive.growing_neural_gas.NeuronNode object at 0x7f2d9ecff780>, <neupy.algorithms.competitive.growing_neural_gas.NeuronNode object at 0x7f2d9ecff7f0>)
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Neural gas - Wikipedia
Neural gas is an artificial neural network, inspired by the self-organizing map and introduced in 1991 by Thomas Martinetz and Klaus Schulten.
Read more >neupy.algorithms.competitive.growing_neural_gas module
Growing Neural Gas (GNG) algorithm. ... It means that if edge won't be updated for max_edge_age iterations than it would be removed.
Read more >Growing Neural Gas Implementation - GitHub
This is an implementation of Growing Neural Gas (GNG) algorithm, an unsupervised machine learning model based on Self-organizing Map (SOM) useful for learning ......
Read more >Olives: Safe Methods for Home Pickling - ANR Catalog
The gas is naturally produced by the bacteria that are responsible for the fermentation. If brine leaks out, replace it with fresh strong...
Read more >Quantifying hard retinal exudates using Growing Neural Gas ...
The general idea of the growing neural gas algorithm: begin by two randomly placed neurons, and add new neurons every once in a...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thank you very much!
I will test it and will let you know about results.
Best regards, Violetta Mishechkina
ср, 16 янв. 2019 г., 23:55 Yurii Shevchuk notifications@github.com:
Release 0.7.3 works fine, thanks!