Documentation ¶
Index ¶
- type Predictor
- func (p Predictor) Predict(imagefile string) (int, error)
- func (p Predictor) PredictWithDeviation(imagefile string) (classpred int, deviation float64, err error)
- func (p Predictor) PredictWithDeviationFromByteBufr(bytes []byte) (classpred int, deviation float64, err error)
- func (p Predictor) PredictWithVariance(imagefile string) (classpred int, deviation float64, err error)
- func (p Predictor) PredictionsArr(imagefile string) ([]float32, error)
- func (p Predictor) PredictionsArrFromByteBufr(bytes []byte) ([]float32, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Predictor ¶
type Predictor struct { Model *tf.SavedModel InputName string ImgSize int32 }
func NewPredictor ¶
declare method
func (Predictor) PredictWithDeviation ¶
func (p Predictor) PredictWithDeviation(imagefile string) (classpred int, deviation float64, err error)
Predict - return class prediction and standard deviation
func (Predictor) PredictWithDeviationFromByteBufr ¶
func (p Predictor) PredictWithDeviationFromByteBufr(bytes []byte) (classpred int, deviation float64, err error)
Predict - return class prediction and standard deviation
func (Predictor) PredictWithVariance ¶
func (p Predictor) PredictWithVariance(imagefile string) (classpred int, deviation float64, 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.