make PredictionModel an interface instead of an abstract class
test for restoring model from serialized state