v1

package
v0.0.0-...-9f00eee Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 30, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DatasetInterface

type DatasetInterface interface {
	Create(name, trainData, trainLabels, testData, testLabels string) error
	Delete(name string) error
	Get(name string) (*api.DatasetSummary, error)
	List() ([]api.DatasetSummary, error)
}

DatasetInterface has methods to work with dataset resources

type DatasetsGetter

type DatasetsGetter interface {
	Datasets() DatasetInterface
}

DatasetsGetter returns an object to interact with the kubeml datasets

type HistoryGetter

type HistoryGetter interface {
	Histories() HistoryInterface
}

type HistoryInterface

type HistoryInterface interface {
	Get(taskId string) (*api.History, error)
	Delete(taskId string) error
	List() ([]api.History, error)
	Prune() error
}

type NetworkGetter

type NetworkGetter interface {
	Networks() NetworkInterface
}

type NetworkInterface

type NetworkInterface interface {
	Train(req *api.TrainRequest) (string, error)
	Infer(req *api.InferRequest) ([]byte, error)
}

type TaskGetter

type TaskGetter interface {
	Tasks() TaskInterface
}

type TaskInterface

type TaskInterface interface {
	List() ([]api.TrainTask, error)
	Stop(id string) error
}

type V1

type V1 struct {
	// contains filtered or unexported fields
}

func (*V1) Datasets

func (c *V1) Datasets() DatasetInterface

func (*V1) Histories

func (c *V1) Histories() HistoryInterface

func (*V1) Networks

func (c *V1) Networks() NetworkInterface

func (*V1) Tasks

func (c *V1) Tasks() TaskInterface

type V1Interface

type V1Interface interface {
	NetworkGetter
	DatasetsGetter
	HistoryGetter
	TaskGetter
}

func MakeV1Client

func MakeV1Client(serverUrl string) V1Interface

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL