autointent.modules.base.BaseScorer#
- class autointent.modules.base.BaseScorer#
Bases:
autointent.modules.base.BaseModule
,abc.ABC
Abstract base class for scoring modules.
Scoring modules predict scores for utterances and evaluate their performance using a scoring metric.
- supports_oos = False#
Whether the module supports oos data
- abstract fit(utterances, labels)#
Fit the scoring module to the training data.
- score_ho(context, metrics)#
Evaluate the scorer on a test set and compute the specified metric.
- score_cv(context, metrics)#
Evaluate the scorer on a test set and compute the specified metric.
- get_assets()#
Retrieve assets generated during scoring.
- Returns:
ScorerArtifact containing test, validation and test scores.
- Return type:
- get_train_data(context)#
Get train data.
- Parameters:
context (autointent.Context) – Context to get train data from
- Returns:
Tuple of train utterances and train labels
- Return type: