Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
InferPowerConsumptionRequestInputName = "predict-prob"
)
Functions ¶
This section is empty.
Types ¶
type PowerConsumptionPredictor ¶
type PowerConsumptionPredictor struct {
// contains filtered or unexported fields
}
func NewPowerConsumptionPredictor ¶
func NewPowerConsumptionPredictor(address, modelName, modelVersion string, insecureSkipVerify bool, timeout time.Duration, editorFns ...util.RequestEditorFn) *PowerConsumptionPredictor
func (*PowerConsumptionPredictor) Endpoint ¶
func (p *PowerConsumptionPredictor) Endpoint() (string, error)
Endpoint constructs the API endpoint.
There is 2 types of URL.
- With version http://hogefuga:12345/v2/models/piyo/versions/v0.1.0/infer
- Without version http://hogefuga:12345/v2/models/piyo/infer
Click to show internal directories.
Click to hide internal directories.