Class: GEPA::Core::EvaluationBatch
- Inherits:
-
T::Struct
- Object
- T::Struct
- GEPA::Core::EvaluationBatch
- Extended by:
- T::Sig
- Defined in:
- lib/gepa/core/evaluation_batch.rb
Overview
Container for evaluating a candidate on a batch.
Instance Method Summary collapse
-
#initialize(*args, **kwargs) ⇒ EvaluationBatch
constructor
A new instance of EvaluationBatch.
Constructor Details
#initialize(*args, **kwargs) ⇒ EvaluationBatch
Returns a new instance of EvaluationBatch.
16 17 18 19 20 21 22 23 |
# File 'lib/gepa/core/evaluation_batch.rb', line 16 def initialize(*args, **kwargs) super raise ArgumentError, 'outputs and scores length mismatch' unless outputs.length == scores.length if trajectories raise ArgumentError, 'trajectories length mismatch' unless trajectories.length == outputs.length end end |