5.5. UCTB.evaluation package¶
5.5.1. UCTB.evaluation.metric module¶
- UCTB.evaluation.metric.mape(prediction, target, threshold=0)¶
- Parameters
prediction (ndarray) – prediction with shape [batch_size, …]
target (ndarray) – same shape with prediction, [batch_size, …]
threshold (float) – data smaller than threshold in target will be removed in computing the mape, the smallest threshold in mape is zero.
- UCTB.evaluation.metric.rmse(prediction, target, threshold=None)¶
- Parameters
prediction (ndarray) – prediction with shape [batch_size, …]
target (ndarray) – same shape with prediction, [batch_size, …]
threshold (float) – data smaller or equal to threshold in target will be removed in computing the rmse