node_1_unlinked = [i[0] for i in all_unconnected_pairs] | |
node_2_unlinked = [i[1] for i in all_unconnected_pairs] | |
data = pd.DataFrame({'node_1':node_1_unlinked, | |
'node_2':node_2_unlinked}) | |
# add target variable 'link' | |
data['link'] = 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment