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

Method train_preprocess

python/graphvite/dataset.py:432–435  ·  view source on GitHub ↗
(self, train_file)

Source from the content-addressed store, hash-verified

430 self.csv2txt(raw_file, save_file)
431
432 def train_preprocess(self, train_file):
433 valid_file = train_file[:train_file.rfind("train.txt")] + "valid.txt"
434 test_file = train_file[:train_file.rfind("train.txt")] + "test.txt"
435 self.link_prediction_split(self.graph, [train_file, valid_file, test_file], portions=[100, 1, 1])
436
437 def valid_preprocess(self, valid_file):
438 train_file = valid_file[:valid_file.rfind("valid.txt")] + "train.txt"

Callers

nothing calls this directly

Calls 1

link_prediction_splitMethod · 0.80

Tested by

no test coverage detected