move Predication case class to MFModel
refactor Curve