Skip to content

Instantly share code, notes, and snippets.

@codezakh
Last active November 23, 2019 04:39
Show Gist options
  • Save codezakh/c33a8ccac0dcced029af24cba1bb3a34 to your computer and use it in GitHub Desktop.
Save codezakh/c33a8ccac0dcced029af24cba1bb3a34 to your computer and use it in GitHub Desktop.
Code to predict random labels on the validation pairs in Phase 1 of the RFIW 2020 Verification Track,
import pandas as pd
import numpy as np
val_pairs = pd.read_csv('val_pairs.csv').set_index('index')
# Randomly predict {0, 1} for each pair.
random_predictions = np.random.randint(0,2, size=len(val_pairs))
# Add the predictions as a column named "label".
val_pairs['label'] = pd.Series(random_predictions)
# Write the labels and index to a CSV file for submission.
val_pairs['label'].to_csv('predictions.csv', header=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment