tfg
Loading...
Searching...
No Matches
PredictionUtility Class Reference

Helper class in order to manage the predictions returned by the server. More...

Classes

struct  Prediction
 Struct containing the information returned by the model. These fields must be public for JSONUtility to populate them. More...

Public Member Functions

 PredictionUtility ()
 Constructor of the class. Initialize the "predictions" array at size 1 and the "classes" and "scores" array at the size of the number of gestures.
void BubbleShort ()
 Bubble Short to order the predictions from highest to lowest depending on the score.
string PredsToText ()
 Generates a text with the predictions.

Public Attributes

Prediction[] predictions
 Prediction returned by the model. It must be an array on size 1 because that is how the model returns the predictions.

Detailed Description

Helper class in order to manage the predictions returned by the server.

Member Function Documentation

◆ PredsToText()

string PredictionUtility.PredsToText ( )
inline

Generates a text with the predictions.

Returns
Text string with predictions in the format "ClassName : Score".

The documentation for this class was generated from the following file:
  • PredictionUtility.cs