Versions in this module Expand all Collapse all v1 v1.0.0 Jul 17, 2019 Changes in this version + const ErrExperimentInvalid + const ErrExperimentNameConflict + const ErrExperimentNameInvalid + const ErrExperimentNotFound + const ErrExperimentStopped + const ErrTrialInvalid + const ErrTrialNotFound + const ErrTrialUnavailable + const TrialActive + const TrialCompleted + const TrialFailed + const TrialStaged + type API interface + CreateExperiment func(context.Context, ExperimentName, Experiment) (Experiment, error) + CreateTrial func(context.Context, string, TrialAssignments) (string, error) + DeleteExperiment func(context.Context, string) error + GetAllExperiments func(context.Context, *ExperimentListQuery) (ExperimentList, error) + GetAllExperimentsByPage func(context.Context, string) (ExperimentList, error) + GetAllTrials func(context.Context, string) (TrialList, error) + GetExperiment func(context.Context, string) (Experiment, error) + GetExperimentByName func(context.Context, ExperimentName) (Experiment, error) + NextTrial func(context.Context, string) (TrialAssignments, error) + ReportTrial func(context.Context, string, TrialValues) error + func NewApi(c api.Client) API + func NewForConfig(c *api.Config) (API, error) + type Assignment struct + ParameterName string + Value json.Number + type Bounds struct + Max json.Number + Min json.Number + type Error struct + RetryAfter time.Duration + Type ErrorType + func (e *Error) Error() string + type ErrorType string + type Experiment struct + DisplayName string + Metrics []Metric + Optimization Optimization + Parameters []Parameter + type ExperimentItem struct + ItemRef string + type ExperimentList struct + Experiments []ExperimentItem + type ExperimentListMeta struct + Next string + Prev string + func (m *ExperimentListMeta) SetLastModified(time.Time) + func (m *ExperimentListMeta) SetLink(rel, link string) + func (m *ExperimentListMeta) SetLocation(string) + type ExperimentListQuery struct + Limit int + Offset int + func (p *ExperimentListQuery) Encode() string + type ExperimentMeta struct + NextTrial string + Self string + Trials string + func (m *ExperimentMeta) SetLastModified(time.Time) + func (m *ExperimentMeta) SetLink(rel, link string) + func (m *ExperimentMeta) SetLocation(string) + type ExperimentName interface + Name func() string + func NewExperimentName(n string) ExperimentName + type Meta interface + SetLastModified func(time.Time) + SetLink func(rel, link string) + SetLocation func(string) + type Metric struct + Minimize bool + Name string + type Optimization struct + BurnIn int32 + ExperimentBudget int32 + ParallelTrials int32 + type Parameter struct + Bounds Bounds + Name string + Type ParameterType + type ParameterType string + const ParameterTypeDouble + const ParameterTypeInteger + type TrialAssignments struct + Assignments []Assignment + type TrialItem struct + Labels map[string]string + Status TrialStatus + type TrialList struct + Trials []TrialItem + type TrialMeta struct + ReportTrial string + func (m *TrialMeta) SetLastModified(time.Time) + func (m *TrialMeta) SetLink(string, string) + func (m *TrialMeta) SetLocation(location string) + type TrialStatus string + type TrialValues struct + Failed bool + Values []Value + type Value struct + Error float64 + MetricName string + Value float64