picnicml / doddle-model

:cake: doddle-model: machine learning in Scala.
https://picnicml.github.io
Apache License 2.0
137 stars 23 forks source link

Make estimator API typesafe #102

Open inejc opened 5 years ago

inejc commented 5 years ago

Currently, we throw errors at runtime if .predict is called on an unfitted estimator, conversely, we throw an error if .fit is called on a trained estimator. The idea of this issue is that such mistakes should be caught at compile time rather than runtime.