mirror of
https://hub.njuu.cf/TheAlgorithms/Python.git
synced 2023-10-11 13:06:12 +08:00
Update scoring_functions.py (#2291)
* Update scoring_functions.py We can find accuracy by manually if we are not going to use sklearn library. * Update scoring_functions.py * Update machine_learning/scoring_functions.py Co-authored-by: Christian Clauss <cclauss@me.com>
This commit is contained in:
parent
c0dcc556b3
commit
25946e4570
@ -135,3 +135,7 @@ def mbd(predict, actual):
|
||||
score = float(numerator) / denumerator * 100
|
||||
|
||||
return score
|
||||
|
||||
|
||||
def manual_accuracy(predict, actual):
|
||||
return np.mean(np.array(actual) == np.array(predict))
|
||||
|
Loading…
Reference in New Issue
Block a user