class BaseModel : Model
A base model for evolving trees.
The best solution will be maintained by the model and will be made available when testing (i.e. making a prediction) using the model.
<init> |
BaseModel(options: EvolutionOptions)
A base model for evolving trees. |
best |
lateinit var best: Tree
The best solution this model has found. |
options |
val options: EvolutionOptions
A set of options for configuring the model. |
population |
var population: MutableList<Tree>
A collection of solutions this model has found. |
test |
fun test(features: List<Feature>): Double
Tests the model by evaluating the model on a set of features. |
train |
fun train(cases: Cases): Unit
Trains the model on a set of input-output cases. |