Artificial Intelligence, Machine Learning, Math, Computer Science, Software Engineering.
= rf.predict(X_test) Suppose our dataset contained 100 examples of fraudulent and 9900 examples of regular transactions. If we used accuracy to measure the model’s performance, it could obtain an accuracy of 99% by simply predicting false every time. It’s for this reason that we use a confusion