Skip to content

Instantly share code, notes, and snippets.

@khuangaf
Created August 26, 2018 03:48
Show Gist options
  • Save khuangaf/f1b65d67525e4eb32ac4373cb6aed621 to your computer and use it in GitHub Desktop.
Save khuangaf/f1b65d67525e4eb32ac4373cb6aed621 to your computer and use it in GitHub Desktop.
df = pd.DataFrame(columns=['id', 'prediction', 'confidence'])
df['id'] = image_ids
df['prediction'] = predictions
df['confidence'] = confidences
df.to_csv(f'{args.results_dir}/{video_id}.csv', index=None)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment