(predict, actual)
| 64 | |
| 65 | #Mean Bias Deviation |
| 66 | def mbd(predict, actual): |
| 67 | predict = np.array(predict) |
| 68 | actual = np.array(actual) |
| 69 | |
| 70 | difference = predict - actual |
| 71 | numerator = np.sum(difference) / len(predict) |
| 72 | denumerator = np.sum(actual) / len(predict) |
| 73 | print(numerator) |
| 74 | print(denumerator) |
| 75 | |
| 76 | score = float(numerator) / denumerator * 100 |
| 77 | |
| 78 | return score |
nothing calls this directly
no outgoing calls
no test coverage detected