Class: Trainers::EvalPrediction

Inherits:
Object
  • Object
show all
Defined in:
lib/trainers/trainer_utils.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_idsObject (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

#predictionsObject (readonly)

Returns the value of attribute predictions.



23
24
25
# File 'lib/trainers/trainer_utils.rb', line 23

def predictions
  @predictions
end