Class: Braintrust::Eval::ExperimentSummary

Inherits:
Struct
  • Object
show all
Defined in:
lib/braintrust/eval/summary.rb

Overview

Summary of results from an Experiment Typically used to generate experiment output

Instance Attribute Summary collapse

Instance Attribute Details

#duration ⇒ Float

Duration in seconds

Returns:

  • (Float) —

    the current value of duration



20
21
22
# File 'lib/braintrust/eval/summary.rb', line 20

def duration
  @duration
end

#error_count ⇒ Integer

Number of errors

Returns:

  • (Integer) —

    the current value of error_count



20
21
22
# File 'lib/braintrust/eval/summary.rb', line 20

def error_count
  @error_count
end

#errors ⇒ Array<String>

Error messages with locations

Returns:

  • (Array<String>) —

    the current value of errors



20
21
22
# File 'lib/braintrust/eval/summary.rb', line 20

def errors
  @errors
end

#experiment_id ⇒ String

Experiment ID

Returns:

  • (String) —

    the current value of experiment_id



20
21
22
# File 'lib/braintrust/eval/summary.rb', line 20

def experiment_id
  @experiment_id
end

#experiment_name ⇒ String

Experiment name

Returns:

  • (String) —

    the current value of experiment_name



20
21
22
# File 'lib/braintrust/eval/summary.rb', line 20

def experiment_name
  @experiment_name
end

#experiment_url ⇒ String

URL to view experiment in Braintrust UI

Returns:

  • (String) —

    the current value of experiment_url



20
21
22
# File 'lib/braintrust/eval/summary.rb', line 20

def experiment_url
  @experiment_url
end

#project_name ⇒ String

Project name

Returns:

  • (String) —

    the current value of project_name



20
21
22
# File 'lib/braintrust/eval/summary.rb', line 20

def project_name
  @project_name
end

#scores ⇒ Hash<String, ScorerStats>

Scorer stats keyed by scorer name

Returns:

  • (Hash<String, ScorerStats>) —

    the current value of scores



20
21
22
# File 'lib/braintrust/eval/summary.rb', line 20

def scores
  @scores
end