Add your own model¶
Plug a new predictor into ALF by subclassing BaseModel. Once wrapped in a Surrogate (or an
Oracle), it slots into the loop with no other changes.
Base class: BaseModel. Key methods: featurise, train, predict, sample.
A model can play three roles depending on which methods it implements and how it is used:
a Surrogate (needs train + predict), an Oracle (needs predict), or a generator
(needs sample). See Core Concepts for the roles.
Steps¶
Reference notebooks¶
Model roles: the surrogate / oracle / generator roles in detail.