Skip to content

Commit 33b1e4b

Browse files
committed
script used to choose GTC 22 winners
1 parent 1ef7605 commit 33b1e4b

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

giveaway_scrubbed.py

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
import random
2+
import numpy as np
3+
4+
# These people all indicated they are located in the US/CA or had a means to
5+
# ship to a US/CA address for forwarding.
6+
us_ca_entrants = ["Rintze", "Hasan", "Keith", "Joseph", "Asceptt", "Brian",
7+
"Xiaoyu", "Anik", "Devshank", "Jeremy", "Amin", "Brenton",
8+
"Remi", "Howard", "Michael", "Khizr", "Jay", "Ricardo",
9+
"Matt", "Chris", "Tanner", "Paul", "Pang", "Jose", "David",
10+
"Kurt", "Jesse"]
11+
12+
# These people indicated they were in a foreign country and did not indicate
13+
# they had the means to ship to a foreign address.
14+
intl_entrants = ["Harsh"]
15+
16+
# These people did not indicate where they were or their means to forward mail
17+
unknown_entrants = ["Gareth", "Dan", "Dileep", "Zeeshan", "Romin", "Dellan",
18+
"Marcin", "Wouter", "Cecil", "Jamal", "Gabriel", "ATV",
19+
"Violet", "Waqas", "Joy", "Tianqi", "Thomas"]
20+
21+
random.seed(2022)
22+
23+
gpu_winner = random.choice(us_ca_entrants)
24+
25+
all_entrants = us_ca_entrants + intl_entrants + unknown_entrants
26+
27+
nnai_winner = random.choice(all_entrants)
28+
29+
dli_winners = [random.choice(all_entrants) for _ in range(5)]
30+
31+
# Make sure there are no duplicate names, so there is no ambiguity in who won
32+
assert len(np.unique(us_ca_entrants)) == len(us_ca_entrants)
33+
34+
assert len(np.unique(all_entrants)) == len(all_entrants)
35+
36+
print('GPU Winner:', gpu_winner)
37+
38+
print('NeuralNet.ai Subscription Winner:', nnai_winner)
39+
40+
print('Deep Learning Institute winners:', dli_winners)

0 commit comments

Comments
 (0)