Skip to main content

Blog

Learn About Our Meetup

5000+ Members

MEETUPS

LEARN, CONNECT, SHARE

Join our meetup, learn, connect, share, and get to know your Toronto AI community. 

JOB POSTINGS

INDEED POSTINGS

Browse through the latest deep learning, ai, machine learning postings from Indeed for the GTA.

CONTACT

CONNECT WITH US

Are you looking to sponsor space, be a speaker, or volunteer, feel free to give us a shout.

[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]