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

Method pld_train_preprocess

python/graphvite/dataset.py:505–508  ·  view source on GitHub ↗
(self, graph_file, train_file)

Source from the content-addressed store, hash-verified

503 )
504
505 def pld_train_preprocess(self, graph_file, train_file):
506 valid_file = train_file[:train_file.rfind("pld_train.txt")] + "pld_valid.txt"
507 test_file = train_file[:train_file.rfind("pld_train.txt")] + "pld_test.txt"
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"

Callers

nothing calls this directly

Calls 1

link_prediction_splitMethod · 0.80

Tested by

no test coverage detected