predict

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2021 License: Apache-2.0 Imports: 18 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HelpResponse

type HelpResponse struct {
	Arguments map[string]*config.RunArgument `json:"arguments"`
}

type Input

type Input struct {
	String *string
	File   *string
}

type Inputs

type Inputs map[string]Input

func NewInputs

func NewInputs(keyVals map[string]string) Inputs

func NewInputsWithBaseDir

func NewInputsWithBaseDir(keyVals map[string]string, baseDir string) Inputs

type Output

type Output struct {
	Values    map[string]OutputValue
	SetupTime float64
	RunTime   float64
}

type OutputValue

type OutputValue struct {
	Buffer   io.Reader
	MimeType string
}

type Predictor

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

func NewPredictor

func NewPredictor(runOptions docker.RunOptions) Predictor

func (*Predictor) Help

func (d *Predictor) Help() (*HelpResponse, error)

func (*Predictor) Predict

func (d *Predictor) Predict(inputs Inputs) (*Output, error)

func (*Predictor) Start

func (p *Predictor) Start(logsWriter io.Writer) error

func (*Predictor) Stop

func (d *Predictor) Stop() error

Jump to

Keyboard shortcuts

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