Common trainable processing object.
A Learner is a Node that can (maybe has to) be trained on a dataset, before it can perform its function.
Notes
Available conditional attributes:
(Conditional attributes enabled by default suffixed with +)
Methods
generate(ds) | Yield processing results. |
get_postproc() | Returns the post-processing node or None. |
get_space() | Query the processing space name of this node. |
reset() | |
set_postproc(node) | Assigns a post-processing node |
set_space(name) | Set the processing space name of this node. |
train(ds) | The default implementation calls _pretrain(), _train(), and finally _posttrain(). |
untrain() | Reverts changes in the state of this node caused by previous training |
Parameters: | auto_train : bool
force_train : bool
enable_ca : None or list of str
disable_ca : None or list of str
space : str, optional
pass_attr : str, list of str|tuple, optional
postproc : Node instance, optional
descr : str
|
---|
Methods
generate(ds) | Yield processing results. |
get_postproc() | Returns the post-processing node or None. |
get_space() | Query the processing space name of this node. |
reset() | |
set_postproc(node) | Assigns a post-processing node |
set_space(name) | Set the processing space name of this node. |
train(ds) | The default implementation calls _pretrain(), _train(), and finally _posttrain(). |
untrain() | Reverts changes in the state of this node caused by previous training |
Whether the Learner performs automatic trainingwhen called untrained.
Whether the Learner enforces training upon every call.
Whether the Learner is currently trained.
The default implementation calls _pretrain(), _train(), and finally _posttrain().
Parameters: | ds: Dataset :
|
---|---|
Returns: | None : |
Reverts changes in the state of this node caused by previous training