Class: Trainers::EvalPrediction
- Inherits:
-
Object
- Object
- Trainers::EvalPrediction
- Defined in:
- lib/trainers/trainer_utils.rb
Instance Attribute Summary collapse
-
#label_ids ⇒ Object
readonly
Returns the value of attribute label_ids.
-
#predictions ⇒ Object
readonly
Returns the value of attribute predictions.
Instance Method Summary collapse
-
#initialize(predictions:, label_ids:) ⇒ EvalPrediction
constructor
A new instance of EvalPrediction.
Constructor Details
#initialize(predictions:, label_ids:) ⇒ EvalPrediction
Returns a new instance of EvalPrediction.
25 26 27 28 |
# File 'lib/trainers/trainer_utils.rb', line 25 def initialize(predictions:, label_ids:) @predictions = predictions @label_ids = label_ids end |
Instance Attribute Details
#label_ids ⇒ Object (readonly)
Returns the value of attribute label_ids.
23 24 25 |
# File 'lib/trainers/trainer_utils.rb', line 23 def label_ids @label_ids end |
#predictions ⇒ Object (readonly)
Returns the value of attribute predictions.
23 24 25 |
# File 'lib/trainers/trainer_utils.rb', line 23 def predictions @predictions end |