Documentation ¶
Index ¶
- type Client
- func (c *Client) CreateDataset(name, trainData, trainLabels, testData, testLabels string) error
- func (c *Client) DeleteDataset(name string) error
- func (c *Client) DeleteHistory(taskId string) error
- func (c *Client) GetHistory(taskId string) (string, error)
- func (c *Client) Infer(req *api.InferRequest) ([]byte, error)
- func (c *Client) ListDatasets() ([]api.DatasetSummary, error)
- func (c *Client) ListHistories() ([]api.History, error)
- func (c *Client) Train(req *api.TrainRequest) (string, error)
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 ¶
CreateDataset uploads the files to the storage service and creates a dataset to be used in future training jobs
func (*Client) DeleteDataset ¶
DeleteDataset deletes a current dataset
func (*Client) DeleteHistory ¶
func (*Client) GetHistory ¶
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
Click to show internal directories.
Click to hide internal directories.