old

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 Client

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

func MakeClient

func MakeClient() *Client

MakeClient gets the kubernetes config and gets the IP address of the controller

func (*Client) CreateDataset

func (c *Client) CreateDataset(name, trainData, trainLabels, testData, testLabels string) error

CreateDataset uploads the files to the storage service and creates a dataset to be used in future training jobs

func (*Client) DeleteDataset

func (c *Client) DeleteDataset(name string) error

DeleteDataset deletes a current dataset

func (*Client) DeleteHistory

func (c *Client) DeleteHistory(taskId string) error

func (*Client) GetHistory

func (c *Client) GetHistory(taskId string) (string, error)

GetHistory returns the training history of a certain task

func (*Client) Infer

func (c *Client) Infer(req *api.InferRequest) ([]byte, error)

Infer submits an inference task to the scheduler and returns the response untouched as a byte array. This response will be a json object with the predictions from the inference task

func (*Client) ListDatasets

func (c *Client) ListDatasets() ([]api.DatasetSummary, error)

ListDatasets returns a list of the datasets uploaded to kubeml

func (*Client) ListHistories

func (c *Client) ListHistories() ([]api.History, error)

func (*Client) Train

func (c *Client) Train(req *api.TrainRequest) (string, error)

Train sends a train job to the controller

Jump to

Keyboard shortcuts

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