Serialize a classifier trained