When I implemented OPF model for anomaly detection, my idea is to feed test data to the trained model to detect the anomaly score. In order to avoid the process of training for multiple times and in the meantime not to pollute the fine-trained model by the previous test data, I want to keep a deepcopy of the trained model. However, it goes wrong with SwigPyObject error when trying to deep copy nupic.engine.Network object, I guess it is because Network is wrapped in C++ and there is not any
__copy__ function for the wrapped class. Also, I notice there is not any nupic API for copy or deepcopy a nupic.frameworks.opf.model.Model object.
So could anyone provide any precious hints or solutions for this? I would appreciate the attention of nupic developers for this issue. Thanks for time and patience!
The error is as follows:
TypeError: object.__new__(SwigPyObject) is not safe, use SwigPyObject.__new__()