Created
December 28, 2019 07:59
-
-
Save prateekjoshi565/a1ab7e0af16700c8b91fdc25f6788742 to your computer and use it in GitHub Desktop.
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
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