PILCO
PILCO copied to clipboard
How do you save your trained model?
I've tried using pickle but it's unable to serialize the PILCO
object after training.
Is there a builtin save method? Or does another kind of serialization work? Thanks.
I've tried using pickle but it's unable to serialize the
PILCO
object after training.Is there a builtin save method? Or does another kind of serialization work? Thanks.
Hi, there was function to save and load model in pull requests Utils pr #17 when pilco using TF1 and GP1, but now no attribute 'read_values' in GP2. Have you any solutions now?
Hello, We can save controller parameters (best_parameters variable in pilco) by using pickle and recreating the controller based on these parameters. Procedure :
- Save best_parameters of controller in pickle file during each iteration.
- Recreate controller using controller.py and these parameters.
- Use this controller on environment.
Example: For RBF controller best_parameters contains: DataX, DataY, and Lengthscales. With these parameters, we can recreate RBF controller.