MCPcopy Create free account
hub / github.com/DeepGraphLearning/graphvite / pld_valid_preprocess

Method pld_valid_preprocess

python/graphvite/dataset.py:510–513  ·  view source on GitHub ↗
(self, graph_file, valid_file)

Source from the content-addressed store, hash-verified

508 self.link_prediction_split(graph_file, [train_file, valid_file, test_file], portions=[10000, 1, 1])
509
510 def pld_valid_preprocess(self, graph_file, valid_file):
511 train_file = valid_file[:valid_file.rfind("pld_valid.txt")] + "pld_train.txt"
512 test_file = valid_file[:valid_file.rfind("pld_valid.txt")] + "pld_test.txt"
513 self.link_prediction_split(graph_file, [train_file, valid_file, test_file], portions=[10000, 1, 1])
514
515 def pld_test_preprocess(self, graph_file, test_file):
516 train_file = test_file[:test_file.rfind("pld_test.txt")] + "pld_train.txt"

Callers

nothing calls this directly

Calls 1

link_prediction_splitMethod · 0.80

Tested by

no test coverage detected