Last active
November 23, 2019 04:39
-
-
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,
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
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