Created
May 5, 2020 17:26
-
-
Save joydeb28/06a525d08de2357949c52fe1d4498c42 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Evaluation(): | |
def get_accuracy(self,actuals, predictions): | |
acc = accuracy_score(actuals, predictions) | |
return acc | |
eval_obj = Evaluation() | |
ytest,ypred = pred_obj.predict_validation() | |
#print(ytest,ypred) | |
acc = eval_obj.get_accuracy(ytest,ypred) | |
print("Auc: {:.2%}".format(acc)) | |
>> | |
100%|██████████| 700/700 [00:00<00:00, 2693.32it/s] | |
Auc: 98.43% |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment