Class: Phronomy::Eval::Scorer::Base
- Inherits:
-
Object
- Object
- Phronomy::Eval::Scorer::Base
- Defined in:
- lib/phronomy/eval/scorer/base.rb
Overview
Abstract base class for all scorers. Subclasses must implement #score.
Direct Known Subclasses
Instance Method Summary collapse
-
#score(actual:, expected:, input: nil) ⇒ Float
Scores an actual output against the expected output.
Instance Method Details
#score(actual:, expected:, input: nil) ⇒ Float
Scores an actual output against the expected output.
15 16 17 |
# File 'lib/phronomy/eval/scorer/base.rb', line 15 def score(actual:, expected:, input: nil) raise NotImplementedError, "#{self.class}#score is not implemented" end |