Serializing an anomaly detection model

You have an OPF model instance you need to save. Here is a thread that should point you in the right direction: