Class: Raif::Evals::Execution

Inherits:
Struct
  • Object
show all
Defined in:
lib/raif/evals/execution.rb

Overview

One execution's worth of work: one eval block, against one case, on one repeat. Every execution in the run is listed before any of them runs, so there is a flat work list to hand a pool of threads rather than a nested loop that can only be walked in order.

case_id_width is presentation, not work - the widest case id among the eval's selected cases, so the compact console lines align. It travels with the execution because the instance that runs it never resolved the datasets it would be measured from.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#case_id_widthObject

Returns the value of attribute case_id_width

Returns:

  • (Object)

    the current value of case_id_width



12
13
14
# File 'lib/raif/evals/execution.rb', line 12

def case_id_width
  @case_id_width
end

#eval_caseObject

Returns the value of attribute eval_case

Returns:

  • (Object)

    the current value of eval_case



12
13
14
# File 'lib/raif/evals/execution.rb', line 12

def eval_case
  @eval_case
end

#eval_definitionObject

Returns the value of attribute eval_definition

Returns:

  • (Object)

    the current value of eval_definition



12
13
14
# File 'lib/raif/evals/execution.rb', line 12

def eval_definition
  @eval_definition
end

#run_indexObject

Returns the value of attribute run_index

Returns:

  • (Object)

    the current value of run_index



12
13
14
# File 'lib/raif/evals/execution.rb', line 12

def run_index
  @run_index
end

Instance Method Details

#eval_idObject



13
14
15
# File 'lib/raif/evals/execution.rb', line 13

def eval_id
  eval_definition.id
end

#eval_indexObject



17
18
19
# File 'lib/raif/evals/execution.rb', line 17

def eval_index
  eval_definition.index
end