public class Utils
extends java.lang.Object
| Constructor and Description |
|---|
Utils() |
| Modifier and Type | Method and Description |
|---|---|
static <any> |
argMax(float[] scores) |
static int |
argMax(int[] scores) |
static java.lang.String |
getAgeRange(float[] scores,
PredictionMode predictionMode) |
static java.lang.String |
getAgeRange(float age,
PredictionMode predictionMode) |
static java.lang.String |
getAgeRange(int index) |
static java.lang.String |
getAgeRange(int index,
PredictionMode predictionMode) |
static <any> |
getMaxClass(float[] scores) |
static java.lang.String |
getVoiceAgeRange(int index) |
static java.lang.String |
getVoiceAgeRangeBinary(int index) |
static float[] |
softMax(float[] scores) |
public static <any> getMaxClass(float[] scores)
public static <any> argMax(float[] scores)
public static int argMax(int[] scores)
public static float[] softMax(float[] scores)
public static java.lang.String getAgeRange(int index)
public static java.lang.String getAgeRange(float age,
PredictionMode predictionMode)
public static java.lang.String getAgeRange(float[] scores,
PredictionMode predictionMode)
public static java.lang.String getAgeRange(int index,
PredictionMode predictionMode)
public static java.lang.String getVoiceAgeRange(int index)
public static java.lang.String getVoiceAgeRangeBinary(int index)