We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In preprocess.py it generates context pairs during 1 to T, and the model learned from 1 to T to predict link in time T?
def get_context_pairs(graphs, num_time_steps): """ Load/generate context pairs for each snapshot through random walk sampling.""" load_path = "data/{}/train_pairs_n2v_{}.pkl".format(FLAGS.dataset, str(num_time_steps - 2)) try: context_pairs_train = dill.load(open(load_path, 'rb')) print("Loaded context pairs from pkl file directly") except (IOError, EOFError): print("Computing training pairs ...") context_pairs_train = [] for i in range(0, num_time_steps): context_pairs_train.append(run_random_walks_n2v(graphs[i], graphs[i].nodes())) dill.dump(context_pairs_train, open(load_path, 'wb')) print ("Saved pairs") return context_pairs_train
maybe for i in range(0, num_time_steps - 1):?
for i in range(0, num_time_steps - 1):
The text was updated successfully, but these errors were encountered:
in the mian function ,it replace the graph[-1] edge with graph[-2] edge
Sorry, something went wrong.
hello, do you know how to generate negative samples in models.py
No branches or pull requests
In preprocess.py it generates context pairs during 1 to T, and the model learned from 1 to T to predict link in time T?
maybe
for i in range(0, num_time_steps - 1):
?The text was updated successfully, but these errors were encountered: