Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save joydeb28/06a525d08de2357949c52fe1d4498c42 to your computer and use it in GitHub Desktop.
Save joydeb28/06a525d08de2357949c52fe1d4498c42 to your computer and use it in GitHub Desktop.
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