megnet.utils.metrics module
metrics for evaluating datasets
-
accuracy(y_true: numpy.ndarray, y_pred: numpy.ndarray) → float[source]
Simple accuracy calculation
- Parameters
-
- Returns
(float) accuracy
-
mae(y_true: numpy.ndarray, y_pred: numpy.ndarray) → float[source]
Simple mean absolute error calculations
- Parameters
-
- Returns
(float) mean absolute error