Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClassConfidencePair ¶
type ClassConfidencePair struct { Class string `json:"class"` Confidence mat.Float `json:"confidence"` }
ClassConfidencePair is a JSON-serializable pair of Class and Confidence.
type ClassifyResponse ¶
type ClassifyResponse struct { Class string `json:"class"` Confidence mat.Float `json:"confidence"` Distribution []ClassConfidencePair `json:"distribution"` // Took is the number of milliseconds it took the server to execute the request. Took int64 `json:"took"` }
ClassifyResponse is a JSON-serializable structure which holds server classification response data.
Click to show internal directories.
Click to hide internal directories.