Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I deepcopy a `gpflow.models.GPModel`? (GPflow2)

Tags:

gpflow

We've trained a model and want to use it in a few different methods, each of which mutates it. However, the first method call will pollute the model for the subsequent calls.

Ideally we'd like to just deepcopy the model and then pass copies into the mutating methods.

Is this possible? Or is there a better alternative?

like image 233
Elvijs Sarkans Avatar asked Jan 22 '20 11:01

Elvijs Sarkans


1 Answers

Of course. GPflow 2.0.0-rc1 has an implementation of the deep copy, but it is called deepcopy_components

like image 171
Artem Artemev Avatar answered Nov 30 '22 10:11

Artem Artemev



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!