[P] comparing accuracy between two encoded datasets
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]