Join our meetup, learn, connect, share, and get to know your Toronto AI community.
Browse through the latest deep learning, ai, machine learning postings from Indeed for the GTA.
Are you looking to sponsor space, be a speaker, or volunteer, feel free to give us a shout.
I have two datasets that I ran a label encoder and onehotencoder on. A is the actual and B is the prediction.
I would like to be able to come up with the accuracy between the two. For example in B, the last row is different so I would like calculate an accuracy of 75%.
Is there a nice pythonian way of doing this?
A
0 | 1 | 0 |
---|---|---|
1 | 0 | 0 |
0 | 0 | 1 |
1 | 0 | 0 |
B
0 | 1 | 0 |
---|---|---|
1 | 0 | 0 |
0 | 0 | 1 |
0 | 1 | 0 |
submitted by /u/rxo85
[link] [comments]