Documentation ¶
Overview ¶
Package classification implements a classifier for use as a visModel in the vision service
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Classification ¶
Classification returns a confidence score of the classification and a label of the class.
func NewClassification ¶
func NewClassification(score float64, label string) Classification
NewClassification creates a simple 2D classification.
type Classifications ¶
type Classifications []Classification
Classifications is a list of the Classification object.
func (Classifications) TopN ¶
func (cc Classifications) TopN(n int) (Classifications, error)
TopN finds the N Classifications with the highest confidence scores.
type Classifier ¶
A Classifier is defined as a function from an image to a list of Classifications.
Click to show internal directories.
Click to hide internal directories.