Documentation
¶
Index ¶
- Constants
- type AnyDataType
- type BasicModel
- type BasicNewModel
- type Datastore
- type Endpoint
- type EndpointList
- type Error
- type Event
- type EventEndpointRegistration
- type EventList
- type Framework
- type MetricData
- type Model
- type ModelList
- type QuerySearchType
- type Training
- type TrainingStatus
- type TrainingUpdate
- type V1AddResponse
- type V1Any
- type V1DeleteResponse
- type V1EMetrics
- type V1EMetricsList
- type V1HelloResponse
- type V1LogLine
- type V1LogLinesList
- type V1MetaInfo
- type V1Query
Constants ¶
const ( // TrainingMemoryUnitMiB captures enum value "MiB" TrainingMemoryUnitMiB string = "MiB" // TrainingMemoryUnitMB captures enum value "MB" TrainingMemoryUnitMB string = "MB" // TrainingMemoryUnitGiB captures enum value "GiB" TrainingMemoryUnitGiB string = "GiB" // TrainingMemoryUnitGB captures enum value "GB" TrainingMemoryUnitGB string = "GB" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnyDataType ¶
type AnyDataType string
const ( // AnyDataTypeSTRING captures enum value "STRING" AnyDataTypeSTRING AnyDataType = "STRING" // AnyDataTypeJSONSTRING captures enum value "JSONSTRING" AnyDataTypeJSONSTRING AnyDataType = "JSONSTRING" // AnyDataTypeINT captures enum value "INT" AnyDataTypeINT AnyDataType = "INT" // AnyDataTypeFLOAT captures enum value "FLOAT" AnyDataTypeFLOAT AnyDataType = "FLOAT" )
type BasicModel ¶
type BasicModel struct {
// A unique id of the deep learning model.
ModelID string `json:"model_id,omitempty"`
}
func (*BasicModel) MarshalBinary ¶
func (m *BasicModel) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*BasicModel) UnmarshalBinary ¶
func (m *BasicModel) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type BasicNewModel ¶
type BasicNewModel struct {
BasicModel
// Location of the model to retrieve it.
Location string `json:"location,omitempty"`
}
func (*BasicNewModel) MarshalBinary ¶
func (m *BasicNewModel) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (BasicNewModel) MarshalJSON ¶
func (m BasicNewModel) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object to a JSON structure
func (*BasicNewModel) UnmarshalBinary ¶
func (m *BasicNewModel) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*BasicNewModel) UnmarshalJSON ¶
func (m *BasicNewModel) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object from a JSON structure
type Datastore ¶
type Datastore struct {
// connection
Connection map[string]string `json:"connection,omitempty"`
// the id of the data store as defined in the manifest.
DataStoreID string `json:"data_store_id,omitempty"`
// the type of the data store as defined in the manifest.
Type string `json:"type,omitempty"`
}
func (*Datastore) MarshalBinary ¶
MarshalBinary interface implementation
func (*Datastore) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Endpoint ¶
type Endpoint struct {
// the id of the endpoint
ID string `json:"id,omitempty"`
// the url of the endpoint
URL string `json:"url,omitempty"`
}
func (*Endpoint) MarshalBinary ¶
MarshalBinary interface implementation
func (*Endpoint) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type EndpointList ¶
type EndpointList struct {
// endpoints
Endpoints []*Endpoint `json:"endpoints"`
}
func (*EndpointList) MarshalBinary ¶
func (m *EndpointList) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*EndpointList) UnmarshalBinary ¶
func (m *EndpointList) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Error ¶
type Error struct {
// code
Code int32 `json:"code,omitempty"`
// description
Description string `json:"description,omitempty"`
// error
Error string `json:"error,omitempty"`
}
func (*Error) MarshalBinary ¶
MarshalBinary interface implementation
func (*Error) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Event ¶
type Event struct {
// endpoints
Endpoints *EndpointList `json:"endpoints,omitempty"`
// the type of event (i.e. update, metrics, logs, all...)
Type string `json:"type,omitempty"`
}
func (*Event) MarshalBinary ¶
MarshalBinary interface implementation
func (*Event) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type EventEndpointRegistration ¶
type EventEndpointRegistration struct {
// The type of event this URL should be notified of.
Type string `json:"type,omitempty"`
// The URL to notify on events.
URL string `json:"url,omitempty"`
}
func (*EventEndpointRegistration) MarshalBinary ¶
func (m *EventEndpointRegistration) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*EventEndpointRegistration) UnmarshalBinary ¶
func (m *EventEndpointRegistration) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type EventList ¶
type EventList struct {
// events
Events []*Event `json:"events"`
}
func (*EventList) MarshalBinary ¶
MarshalBinary interface implementation
func (*EventList) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Framework ¶
type Framework struct {
// the name of the deep learning framework (e.g. caffe, torch, tensorflow)
Name string `json:"name,omitempty"`
// the version of the specific framework to use.
Version string `json:"version,omitempty"`
}
func (*Framework) MarshalBinary ¶
MarshalBinary interface implementation
func (*Framework) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type MetricData ¶
type MetricData struct {
// map of key/values, that describe evaluation metrics
Values map[string]interface{} `json:"Values,omitempty"`
// Current iteration number be processed.
Iteration int32 `json:"iteration,omitempty"`
// Timestamp of the metric. Format: yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
//
Timestamp string `json:"timestamp,omitempty"`
// The type of metrics data
Type string `json:"type,omitempty"`
}
func (*MetricData) MarshalBinary ¶
func (m *MetricData) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*MetricData) UnmarshalBinary ¶
func (m *MetricData) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Model ¶
type Model struct {
BasicNewModel
// data stores
DataStores []*Datastore `json:"data_stores"`
// Detailed description of deep learning model.
Description string `json:"description,omitempty"`
// framework
Framework *Framework `json:"framework,omitempty"`
// metrics
Metrics []*MetricData `json:"metrics"`
// The name of the deep learning model.
Name string `json:"name,omitempty"`
// training
Training *Training `json:"training,omitempty"`
}
func (*Model) MarshalBinary ¶
MarshalBinary interface implementation
func (Model) MarshalJSON ¶
MarshalJSON marshals this object to a JSON structure
func (*Model) UnmarshalBinary ¶
UnmarshalBinary interface implementation
func (*Model) UnmarshalJSON ¶
UnmarshalJSON unmarshals this object from a JSON structure
type ModelList ¶
type ModelList struct {
// models
Models []*Model `json:"models"`
}
func (*ModelList) MarshalBinary ¶
MarshalBinary interface implementation
func (*ModelList) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type QuerySearchType ¶
type QuerySearchType string
const ( // QuerySearchTypeTERM captures enum value "TERM" QuerySearchTypeTERM QuerySearchType = "TERM" // QuerySearchTypeNESTED captures enum value "NESTED" QuerySearchTypeNESTED QuerySearchType = "NESTED" // QuerySearchTypeMATCH captures enum value "MATCH" QuerySearchTypeMATCH QuerySearchType = "MATCH" // QuerySearchTypeALL captures enum value "ALL" QuerySearchTypeALL QuerySearchType = "ALL" )
type Training ¶
type Training struct {
// the command invoked for running the training. This is specific to the DL framework
Command string `json:"command,omitempty"`
// Number of CPUs required
Cpus float64 `json:"cpus,omitempty"`
// events
Events *EventList `json:"events,omitempty"`
// Number of CPUs required
Gpus float64 `json:"gpus,omitempty"`
// Input data to the training, such as training data, pre-trained model. The input is specified as references to the data_store ids that contain the data.
InputData []string `json:"input_data"`
// Number of learners required.
Learners int32 `json:"learners,omitempty"`
// Amount of memory required
Memory float64 `json:"memory,omitempty"`
// Memory unit (default: MiB)
//
MemoryUnit *string `json:"memory_unit,omitempty"`
// Output data of the training, such as trained models. The output is specified as references to the data_store ids that contain the data.
OutputData []string `json:"output_data"`
// the pre-configured deployment size to used for training. The is used instead of directly specifying CPU, GPU, memory and learners.
Size string `json:"size,omitempty"`
// training status
TrainingStatus *TrainingStatus `json:"training_status,omitempty"`
}
func (*Training) MarshalBinary ¶
MarshalBinary interface implementation
func (*Training) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type TrainingStatus ¶
type TrainingStatus struct {
// Training completion timestamp (Format: yyyy-MM-dd'T'HH:mm:ss.SSS'Z')
//
Completed string `json:"completed,omitempty"`
// A code identifying the cause of a status message.
ErrorCode string `json:"error_code,omitempty"`
// Status of the training.
Status string `json:"status,omitempty"`
// Description of the training status.
StatusDescription string `json:"status_description,omitempty"`
// A human readable message description of the training status.
StatusMessage string `json:"status_message,omitempty"`
// Training submission timestamp (Format: yyyy-MM-dd'T'HH:mm:ss.SSS'Z')
//
Submitted string `json:"submitted,omitempty"`
}
func (*TrainingStatus) MarshalBinary ¶
func (m *TrainingStatus) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*TrainingStatus) UnmarshalBinary ¶
func (m *TrainingStatus) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type TrainingUpdate ¶
type TrainingUpdate struct {
// The status action to be executed on the training job. (Currently only `halt` is supported.)
Status string `json:"status,omitempty"`
}
func (*TrainingUpdate) MarshalBinary ¶
func (m *TrainingUpdate) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*TrainingUpdate) UnmarshalBinary ¶
func (m *TrainingUpdate) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type V1AddResponse ¶
type V1AddResponse struct {
// success
Success bool `json:"success,omitempty"`
}
func (*V1AddResponse) MarshalBinary ¶
func (m *V1AddResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*V1AddResponse) UnmarshalBinary ¶
func (m *V1AddResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type V1Any ¶
type V1Any struct {
// type
Type AnyDataType `json:"type,omitempty"`
// value
Value string `json:"value,omitempty"`
}
func (*V1Any) MarshalBinary ¶
MarshalBinary interface implementation
func (*V1Any) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type V1DeleteResponse ¶
type V1DeleteResponse struct {
// success
Success bool `json:"success,omitempty"`
}
func (*V1DeleteResponse) MarshalBinary ¶
func (m *V1DeleteResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*V1DeleteResponse) UnmarshalBinary ¶
func (m *V1DeleteResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type V1EMetrics ¶
type V1EMetrics struct {
// Repeated, order-dependent list of temporal keys
// Example: {"iteration": 209}
Etimes map[string]V1Any `json:"etimes,omitempty"`
// Group label, such as test, train, or validate
Grouplabel string `json:"grouplabel,omitempty"`
// meta
Meta *V1MetaInfo `json:"meta,omitempty"`
// / {"cross_entropy": 0.4430539906024933, "accuracy": 0.8999999761581421}
Values map[string]V1Any `json:"values,omitempty"`
}
func (*V1EMetrics) MarshalBinary ¶
func (m *V1EMetrics) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*V1EMetrics) UnmarshalBinary ¶
func (m *V1EMetrics) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type V1EMetricsList ¶
type V1EMetricsList struct {
// models
Models []*V1EMetrics `json:"models"`
}
func (*V1EMetricsList) MarshalBinary ¶
func (m *V1EMetricsList) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*V1EMetricsList) UnmarshalBinary ¶
func (m *V1EMetricsList) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type V1HelloResponse ¶
type V1HelloResponse struct {
// msg
Msg string `json:"msg,omitempty"`
}
func (*V1HelloResponse) MarshalBinary ¶
func (m *V1HelloResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*V1HelloResponse) UnmarshalBinary ¶
func (m *V1HelloResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type V1LogLine ¶
type V1LogLine struct {
// line
Line string `json:"line,omitempty"`
// meta
Meta *V1MetaInfo `json:"meta,omitempty"`
}
func (*V1LogLine) MarshalBinary ¶
MarshalBinary interface implementation
func (*V1LogLine) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type V1LogLinesList ¶
type V1LogLinesList struct {
// models
Models []*V1LogLine `json:"models"`
}
func (*V1LogLinesList) MarshalBinary ¶
func (m *V1LogLinesList) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*V1LogLinesList) UnmarshalBinary ¶
func (m *V1LogLinesList) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type V1MetaInfo ¶
type V1MetaInfo struct {
// sequential index
Rindex int64 `json:"rindex,omitempty"`
// Time that the metric occured: representing the number of millisecond since midnight January 1, 1970.
Time int64 `json:"time,omitempty"`
// Unique id identifying the training job
TrainingID string `json:"training_id,omitempty"`
// Unique id identifying the user
UserID string `json:"user_id,omitempty"`
}
func (*V1MetaInfo) MarshalBinary ¶
func (m *V1MetaInfo) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*V1MetaInfo) UnmarshalBinary ¶
func (m *V1MetaInfo) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type V1Query ¶
type V1Query struct {
// follow
Follow bool `json:"follow,omitempty"`
// The following three options are exclusive
Meta *V1MetaInfo `json:"meta,omitempty"`
// n records
NRecords int32 `json:"nRecords,omitempty"`
// search type
SearchType QuerySearchType `json:"searchType,omitempty"`
// since
Since string `json:"since,omitempty"`
}
func (*V1Query) MarshalBinary ¶
MarshalBinary interface implementation
func (*V1Query) UnmarshalBinary ¶
UnmarshalBinary interface implementation
Source Files
¶
- any_data_type.go
- basic_model.go
- basic_new_model.go
- datastore.go
- endpoint.go
- endpoint_list.go
- error.go
- event.go
- event_endpoint_registration.go
- event_list.go
- framework.go
- metric_data.go
- model.go
- model_list.go
- query_search_type.go
- training.go
- training_status.go
- training_update.go
- v1_add_response.go
- v1_any.go
- v1_delete_response.go
- v1_e_metrics.go
- v1_e_metrics_list.go
- v1_hello_response.go
- v1_log_line.go
- v1_log_lines_list.go
- v1_meta_info.go
- v1_query.go