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

#durationFloat

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_countInteger

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

#errorsArray<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_idString

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_nameString

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_urlString

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_nameString

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

#scoresHash<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