# `LearnerSpec`

### *class* capymoa.base.LearnerSpec[[source]](https://github.com/adaptive-machine-learning/CapyMOA/blob/3e255b1/src/capymoa/base/_learner_params.py#L23)

Bases: [`TypedDict`](https://docs.python.org/3/library/typing.html#typing.TypedDict)

Serialized learner specification used for capturing and reconstructing learner
hyper-parameters.

#### fromkeys(value=None, /)

Create a new dictionary with keys from iterable and values set to value.

#### learner *: [str](https://docs.python.org/3/builtins/stdtypes.html#str)*

Fully qualified name of the learner class. module.ClassName format.

#### params *: [NotRequired](https://docs.python.org/3/library/typing.html#typing.NotRequired)[[dict](https://docs.python.org/3/builtins/stdtypes.html#dict)[[str](https://docs.python.org/3/builtins/stdtypes.html#str), [Any](https://docs.python.org/3/library/typing.html#typing.Any) | [LearnerSpec](#capymoa.base.LearnerSpec)]]*

Serialized parameters for the learner. May contain nested learner specifications.
