Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # pip install ml_metrics
- from ml_metrics import mapk
- def getList(filename):
- with open(filename) as input:
- return [line[:-1].split(',')[1:] for line in input]
- mapk(getList('test_data_labels.csv'), getList('sample_submission.csv'),3)
Add Comment
Please, Sign In to add comment