Class: Braintrust::Models::Experiment

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/braintrust/models/experiment.rb

Defined Under Namespace

Classes: RepoInfo

Instance Attribute Summary collapse

Method Summary

Methods inherited from BaseModel

#[], #inspect, #to_h, #to_s

Instance Attribute Details

#base_exp_idString

Id of default base experiment to compare against when viewing this experiment

Returns:

  • (String)


29
# File 'lib/braintrust/models/experiment.rb', line 29

optional :base_exp_id, String

#commitString

Commit, taken directly from repo_info.commit

Returns:

  • (String)


34
# File 'lib/braintrust/models/experiment.rb', line 34

optional :commit, String

#createdString

Date of experiment creation

Returns:

  • (String)


39
# File 'lib/braintrust/models/experiment.rb', line 39

optional :created, String

#dataset_idString

Identifier of the linked dataset, or null if the experiment is not linked to a dataset

Returns:

  • (String)


44
# File 'lib/braintrust/models/experiment.rb', line 44

optional :dataset_id, String

#dataset_versionString

Version number of the linked dataset the experiment was run against. This can be used to reproduce the experiment after the dataset has been modified.

Returns:

  • (String)


49
# File 'lib/braintrust/models/experiment.rb', line 49

optional :dataset_version, String

#deleted_atString

Date of experiment deletion, or null if the experiment is still active

Returns:

  • (String)


54
# File 'lib/braintrust/models/experiment.rb', line 54

optional :deleted_at, String

#descriptionString

Textual description of the experiment

Returns:

  • (String)


59
# File 'lib/braintrust/models/experiment.rb', line 59

optional :description, String

#idString

Unique identifier for the experiment

Returns:

  • (String)


9
# File 'lib/braintrust/models/experiment.rb', line 9

required :id, String

#metadataHash

User-controlled metadata about the experiment

Returns:

  • (Hash)


64
# File 'lib/braintrust/models/experiment.rb', line 64

optional :metadata, Hash

#name_String

Name of the experiment. Within a project, experiment names are unique

Returns:

  • (String)


14
# File 'lib/braintrust/models/experiment.rb', line 14

required :name_, String

#project_idString

Unique identifier for the project that the experiment belongs under

Returns:

  • (String)


19
# File 'lib/braintrust/models/experiment.rb', line 19

required :project_id, String

#publicBoolean

Whether or not the experiment is public. Public experiments can be viewed by anybody inside or outside the organization

Returns:

  • (Boolean)


24
# File 'lib/braintrust/models/experiment.rb', line 24

required :public, Braintrust::BooleanModel

#repo_infoBraintrust::Models::Experiment::RepoInfo

Metadata about the state of the repo when the experiment was created



69
# File 'lib/braintrust/models/experiment.rb', line 69

optional :repo_info, -> { Braintrust::Models::Experiment::RepoInfo }

#user_idString

Identifies the user who created the experiment

Returns:

  • (String)


74
# File 'lib/braintrust/models/experiment.rb', line 74

optional :user_id, String