suggestionbox

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Choice

type Choice struct {
	ID       string
	Features []Feature
}

type CreateModelRequest

type CreateModelRequest struct {
	Model Model
}

type CreateModelResponse

type CreateModelResponse struct{}

type DeleteModelRequest

type DeleteModelRequest struct {
	ModelID string
}

type DeleteModelResponse

type DeleteModelResponse struct{}

type Feature

type Feature struct {
	Key   string
	Type  string
	Value string
	File  remototypes.File
}

type GetStateRequest

type GetStateRequest struct{}

type GetStateResponse

type GetStateResponse struct {
	StateFile remototypes.File
}

type ListModelsRequest

type ListModelsRequest struct {
}

type ListModelsResponse

type ListModelsResponse struct {
	Models []Model
}

type Model

type Model struct {
	ID      string
	Name    string
	Options ModelOptions
	Choices []Choice
}

type ModelOptions

type ModelOptions struct {
	RewardExpirationSeconds int
	Ngrams                  int
	Skipgrams               int
	Mode                    string
	Epsilon                 float64
	Cover                   float64
}

type PredictRequest

type PredictRequest struct {
	ModelID string
	Limit   int
	Inputs  []Feature
}

type PredictResponse

type PredictResponse struct {
	Choices []PredictedChoice
}

type PredictedChoice

type PredictedChoice struct {
	ID       string
	Features []Feature
	RewardID string
}

type PutStateRequest

type PutStateRequest struct {
	StateFile remototypes.File
}

type PutStateResponse

type PutStateResponse struct{}

type RewardRequest

type RewardRequest struct {
	ModelID  string
	RewardID string
	Value    int
}

type RewardResponse

type RewardResponse struct{}

Directories

Path Synopsis
client
server
suggestionbox
Package suggestionbox contains the HTTP server for suggestionbox services.
Package suggestionbox contains the HTTP server for suggestionbox services.

Jump to

Keyboard shortcuts

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