Annex v0.2.0 Annex.Learner behaviour View Source

The Learner module defines the types, callbacks, and helper functions for a Learner.

A Learner is a model that is capable of supervised learning.

Link to this section Summary

Link to this section Types

Link to this type

training_output() View Source
training_output() :: %{optional(atom()) => any()}

Link to this section Functions

Link to this function

init_learner(learner, options) View Source
init_learner(t(), options()) :: t()

Link to this function

is_learner?(module) View Source
is_learner?(any()) :: boolean()

Link to this function

predict(learner, data) View Source
predict(t(), data()) :: data()

Link to this function

train(learner, dataset, opts \\ []) View Source
train(t(), Annex.Dataset.t(), Keyword.t()) :: {t(), training_output()}

Link to this section Callbacks

Link to this callback

init_learner(t, options) View Source (optional)
init_learner(t(), options()) :: t()

Link to this callback

predict(t, data) View Source
predict(t(), data()) :: data()

Link to this callback

train(t, arg2, options) View Source (optional)
train(t(), Annex.Dataset.t(), options()) :: {t(), training_output()}