Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Format ¶
type Format string
Format is the definition of model format.
const ( FormatSavedModel Format = "SavedModel" FormatONNX Format = "ONNX" FormatH5 Format = "H5" FormatPMML Format = "PMML" FormatCaffeModel Format = "CaffeModel" FormatNetDef Format = "NetDef" FormatMXNetParams Format = "MXNetParams" FormatTorchScript Format = "TorchScript" FormatGraphDef Format = "GraphDef" FormatTensorRT Format = "TensorRT" FormatSKLearn Format = "SKLearn" FormatXGBoost Format = "XGBoost" FormatMLflow Format = "MLflow" FormatOthers Format = "Others" )
func (Format) ValidateDirectory ¶
type HyperParameter ¶ added in v0.0.8
Hyperparameter is the type for training hyperparameter (e.g. learning rate).
type Metadata ¶
type Metadata struct { Author string `json:"author,omitempty" yaml:"author,omitempty"` Created time.Time `json:"created,omitempty" yaml:"created,omitempty"` Description string `json:"description,omitempty" yaml:"description,omitempty"` Tags []string `json:"tags,omitempty" yaml:"tags,omitempty"` Labels map[string]string `json:"labels,omitempty" yaml:"labels,omitempty"` Format string `json:"format,omitempty" yaml:"format,omitempty"` // GPUType is for TensorRT format only, it must be set when extract signature or serve // as a online service, otherwise, it can not extract or serve as a service. // for other model format, you can set empty string or not set. GPUType string `json:"gpuType,omitempty" yaml:"gpuType,omitempty"` Framework string `json:"framework,omitempty" yaml:"framework,omitempty"` Metrics map[string]MetricList `json:"metrics,omitempty" yaml:"metrics,omitempty"` HyperParameters []HyperParameter `json:"hyperParameters,omitempty" yaml:"hyperParameters,omitempty"` Signature *Signature `json:"signature,omitempty" yaml:"signature,omitempty"` Training *Training `json:"training,omitempty" yaml:"training,omitempty"` Dataset *Dataset `json:"dataset,omitempty" yaml:"dataset,omitempty"` DirectoryStructure []string `json:"directoryStructure,omitempty" yaml:"directoryStructure,omitempty"` }
type MetricList ¶ added in v0.0.10
type MetricList []Metric
MetricList is the type for list of metric
type Tensor ¶
type Tensor struct { Name string `json:"name,omitempty" yaml:"name,omitempty"` Size []int `json:"size,omitempty" yaml:"size,omitempty"` DType string `json:"dType,omitempty" yaml:"dType,omitempty"` // OpType is special for PMML OpType string `json:"opType,omitempty" yaml:"opType,omitempty"` // Values is special for PMML Values []string `json:"values,omitempty" yaml:"values,omitempty"` }
Click to show internal directories.
Click to hide internal directories.