Open yaowang74 opened 4 years ago
I think you need to use "dill"
Thank you Dekken, but I got same error when using dill
TypeError Traceback (most recent call last)
I'm not sure if we've configured serialization for this object.
if you'd like to give it a shot PRs are welcome
try something like this
git diff
diff --git a/lib/swig/tick/hawkes/inference/hawkes_adm4.i b/lib/swig/tick/hawkes/inference/hawkes_adm4.i
index 3ff65be..c9cbebf 100644
--- a/lib/swig/tick/hawkes/inference/hawkes_adm4.i
+++ b/lib/swig/tick/hawkes/inference/hawkes_adm4.i
@@ -26,3 +26,5 @@ class HawkesADM4 : public ModelHawkesList {
void set_rho(const double rho);
};
+
+TICK_MAKE_PICKLABLE(HawkesADM4);
Indeed we did not add the code to make this one picklable. Here is a tutorial that could guide you if you want to submit a PR :).
Thank you Mbompr for your reply. I am thinking of, for a short term workaround, can I just save all essential parameters of all my ADM4 learners, then is it possible to "recover" those learner by using one of simulator, e.g. SimuHawkesExpKernels ?
Thank you
Wang
Hello!
First of all thanks to the entire team for developing such a good library for point process learning. I tried to save a fitted HawkesADM4 learner to file through pickling because it took me a long time to train, but I had the following error message:
TypeError Traceback (most recent call last)