Documentation ¶
Index ¶
Constants ¶
View Source
const ImageHeight = 128
View Source
const ImageWidth = 128
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Predictor ¶
type Predictor struct {
Model *tf.SavedModel
}
func (Predictor) PredictWithDeviation ¶
func (p Predictor) PredictWithDeviation(imagefile string, model *tf.SavedModel) (classpred int, deviation float32, err error)
Predict - return class prediction and standard deviation
func (Predictor) PredictionsArr ¶
PredictionsArr Return array of probabilities
Click to show internal directories.
Click to hide internal directories.