Katib
This is the legacy gRPC API reference for Katib v1alpha3 version. Corresponding Katib documentation can be found in 1.0 Kubeflow documentation.
Katib API v1alpha3
AlgorithmSpec
Field | Type | Label | Description |
---|
algorithm_name | | | |
algorithm_setting | AlgorithmSetting | repeated | |
early_stopping_spec | | | |
DeleteObservationLogReply
DeleteObservationLogRequest
Field | Type | Label | Description |
---|
trial_name | string | | |
EarlyStoppingSpec
TODO: This feature is not yet fully implemented.
Experiment
Field | Type | Label | Description |
---|
name | | | Name of Experiment. This is unique in DB. |
spec | ExperimentSpec | | |
ExperimentSpec
Spec of a Experiment. Experiment represents a single optimization run over a feasible space. Each Experiment contains a configuration describing the feasible space, as well as a set of Trials. It is assumed that objective function f(x) does not change in the course of a Experiment.
ExperimentSpec.ParameterSpecs
List of ParameterSpec
Field | Type | Label | Description |
---|
parameters | | repeated | |
FeasibleSpace
Feasible space for optimization. Int and Double type use Max/Min. Discrete and Categorical type use List.
Field | Type | Label | Description |
---|
max | | | Max Value |
min | string | | Minimum Value |
list | | repeated | List of Values. |
step | string | | Step for double or int parameter |
GetObservationLogReply
GetObservationLogRequest
Field | Type | Label | Description |
---|
trial_name | string | | |
metric_name | | | |
start_time | string | | The start of the time range. RFC3339 format |
end_time | | | The end of the time range. RFC3339 format |
GetSuggestionsReply
Field | Type | Label | Description |
---|
parameter_assignments | | repeated | |
algorithm | AlgorithmSpec | | |
GetSuggestionsReply.ParameterAssignments
Field | Type | Label | Description |
---|
experiment | | | |
trials | Trial | repeated | all completed trials owned by the experiment. |
request_number | | | The number of Suggestion you request at one time. When you set 3 to request_number, you can get three Suggestions at one time. |
GraphConfig
GraphConfig contains a config of DAG
Metric
Field | Type | Label | Description |
---|
name | string | | |
value | | | |
MetricLog
Field | Type | Label | Description |
---|
time_stamp | | | RFC3339 format |
metric | Metric | | |
NasConfig
NasConfig contains a config of NAS job
Field | Type | Label | Description |
---|
graph_config | GraphConfig | | Config of DAG |
operations | | | List of Operation |
NasConfig.Operations
Field | Type | Label | Description |
---|
operation | | repeated | |
ObjectiveSpec
Field | Type | Label | Description |
---|
type | | | |
goal | double | | |
objective_metric_name | | | |
additional_metric_names | string | repeated | This can be empty if we only care about the objective metric. |
Observation
Field | Type | Label | Description |
---|
metrics | Metric | repeated | |
ObservationLog
Field | Type | Label | Description |
---|
metric_logs | MetricLog | repeated | |
Operation
Config for operations in DAG
Field | Type | Label | Description |
---|
operation_type | string | | Type of operation in DAG |
parameter_specs | | | |
Operation.ParameterSpecs
List of ParameterSpec
Field | Type | Label | Description |
---|
parameters | | repeated | |
ParameterAssignment
Field | Type | Label | Description |
---|
name | | | |
value | string | | |
ParameterSpec
Config for a Hyper parameter. Katib will create each Hyper parameter from this config.
Field | Type | Label | Description |
---|
name | string | | Name of the parameter. |
parameter_type | | | Type of the parameter. |
feasible_space | FeasibleSpace | | FeasibleSpace for the parameter. |
ReportObservationLogRequest
Trial
Field | Type | Label | Description |
---|
name | | | |
spec | TrialSpec | | |
status | | | |
TrialSpec
Field | Type | Label | Description |
---|
experiment_name | | | |
objective | ObjectiveSpec | | |
parameter_assignments | | | |
run_spec | string | | |
metrics_collector_spec | | | |
TrialSpec.ParameterAssignments
List of ParameterAssignment
Field | Type | Label | Description |
---|
assignments | | repeated | |
TrialStatus
Field | Type | Label | Description |
---|
start_time | | | RFC3339 format |
completion_time | string | | RFC3339 format |
condition | | | |
observation | Observation | | The best observation in logs. |
ValidateAlgorithmSettingsReply
Return INVALID_ARGUMENT Error if Algorithm Settings are not Valid
ValidateAlgorithmSettingsRequest
Field | Type | Label | Description |
---|
experiment | | | |
ObjectiveType
Direction of optimization. Minimize or Maximize.
Name | Number | Description |
---|
UNKNOWN | 0 | Undefined type and not used. |
MINIMIZE | 1 | Minimize |
MAXIMIZE | 2 | Maximize |
ParameterType
Types of value for HyperParameter.
Name | Number | Description |
---|
UNKNOWN_TYPE | 0 | Undefined type and not used. |
DOUBLE | 1 | Double float type. Use “Max/Min”. |
INT | 2 | Int type. Use “Max/Min”. |
DISCRETE | 3 | Discrete number type. Use “List” as float. |
CATEGORICAL | 4 | Categorical type. Use “List” as string. |
TrialStatus.TrialConditionType
Name | Number | Description |
---|
CREATED | 0 | |
RUNNING | 1 | |
SUCCEEDED | 2 | |
KILLED | 3 | |
FAILED | 4 | |
UNKNOWN | 5 | |
EarlyStopping
TODO: This feature is not yet fully implemented.
Method Name | Request Type | Response Type | Description |
---|
Manager
Method Name | Request Type | Response Type | Description |
---|
ReportObservationLog | | ReportObservationLogReply | Report a log of Observations for a Trial. The log consists of timestamp and value of metric. Katib store every log of metrics. You can see accuracy curve or other metric logs on UI. |
GetObservationLog | | GetObservationLogReply | Get all log of Observations for a Trial. |
DeleteObservationLog | | DeleteObservationLogReply | Delete all log of Observations for a Trial. |