Class: EncodingEstimator::SingleDetectionResult
- Inherits:
-
Object
- Object
- EncodingEstimator::SingleDetectionResult
- Defined in:
- lib/encoding_estimator/detector.rb
Overview
Class to store a detection score of a single combination of a conversion and its evaluation score
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#score ⇒ Object
readonly
Returns the value of attribute score.
Instance Method Summary collapse
-
#initialize(key, score) ⇒ SingleDetectionResult
constructor
Initialize a new object from a conversion identifier key and a score.
Constructor Details
#initialize(key, score) ⇒ SingleDetectionResult
Initialize a new object from a conversion identifier key and a score
58 59 60 61 |
# File 'lib/encoding_estimator/detector.rb', line 58 def initialize( key, score ) @key = key @score = score end |
Instance Attribute Details
#key ⇒ Object (readonly)
Returns the value of attribute key.
52 53 54 |
# File 'lib/encoding_estimator/detector.rb', line 52 def key @key end |
#score ⇒ Object (readonly)
Returns the value of attribute score.
52 53 54 |
# File 'lib/encoding_estimator/detector.rb', line 52 def score @score end |