Helper class in order to manage the predictions returned by the server.
More...
|
struct | Prediction |
| Struct containing the information returned by the model. These fields must be public for JSONUtility to populate them. More...
|
|
| 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.
|
|
Prediction[] | predictions |
| Prediction returned by the model. It must be an array on size 1 because that is how the model returns the predictions.
|
Helper class in order to manage the predictions returned by the server.
◆ 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: