scorers package¶
Submodules¶
scorers.boolean_scorer module¶
- class scorers.boolean_scorer.BooleanScorer(predicate)[source]¶
Bases:
PositiveScorer
Predicate-based scoring class
scorers.exponential_scorer module¶
- class scorers.exponential_scorer.ExponentialScorer(features, coefficients)[source]¶
Bases:
PositiveScorer
Exponential scorer to add distributional constraints when building an EBM.
scorers.pipeline_scorer module¶
- class scorers.pipeline_scorer.PipelineScorer(label, params, temperature=1.0)[source]¶
Bases:
PositiveScorer
Feature class relying on the pipelines from Huggingface’s transformers
scorers.positive_scorer module¶
- class scorers.positive_scorer.PositiveScorer(scoring_function)[source]¶
Bases:
Scorer
Scorer, but limited to positive values
- class scorers.positive_scorer.Product(*scorers)[source]¶
Bases:
PositiveScorer
Utility class to compose scorers on the product of their scores