seldon

package
v2.1.9 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResponseFunc

func ResponseFunc(data interface{}) (ret []response.AlgoResponse, err error)

Types

type ISeldonRequest

type ISeldonRequest interface {
	Invoke(requestData interface{}) (body interface{}, err error)
	GetResponseFunc() response.ResponseFunc
}

type JsonData

type JsonData struct {
	Outputs map[string][]float64 `json:"outputs"`
}

type Model

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

func (*Model) Init

func (r *Model) Init(conf *recconf.AlgoConfig) error

func (*Model) Run

func (r *Model) Run(algoData interface{}) (interface{}, error)

type PredictRequest

type PredictRequest struct {
	ReqJsonData ReqJsonData `json:"jsonData"`
}

type PredictResponse

type PredictResponse struct {
	JsonData JsonData `json:"jsonData"`
}

type ReqJsonData

type ReqJsonData struct {
	Inputs map[string][]interface{} `json:"inputs"`
}

type Request

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

func (*Request) GetResponseFunc

func (r *Request) GetResponseFunc() response.ResponseFunc

func (*Request) Invoke

func (r *Request) Invoke(requestData interface{}) (body interface{}, err error)

func (*Request) SetResponseFunc

func (r *Request) SetResponseFunc(name string)

func (*Request) SetUrl

func (r *Request) SetUrl(url string)

type Response

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

func (*Response) GetModuleType

func (r *Response) GetModuleType() bool

func (*Response) GetScore

func (r *Response) GetScore() float64

func (*Response) GetScoreMap

func (r *Response) GetScoreMap() map[string]float64

Jump to

Keyboard shortcuts

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