I am using a feedforward network from pybrain. I train it with currently available data. I want to store this network in mongodb so that in future with new available data, I could fetch this network and train it with more data(new ones) and save it back.
On saving it in mongodb it is raising error:
Traceback (most recent call last):
File "C:\Users\SATYA\Desktop\Pyth\Real Rail Status\neural_network.py", line 102, in <module>
coll_neural_network.save(data)
File "C:\Python27\lib\site-packages\pymongo\collection.py", line 288, in save
manipulate, safe, check_keys=check_keys, **kwargs)
File "C:\Python27\lib\site-packages\pymongo\collection.py", line 551, in update
docs, check_keys, self.uuid_subtype, client)
InvalidDocument: Cannot encode object: <FeedForwardNetwork 'FeedForwardNetwork-5'>
Is there a way out to do this?