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

Method valid_preprocess

python/graphvite/dataset.py:437–440  ·  view source on GitHub ↗
(self, valid_file)

Source from the content-addressed store, hash-verified

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"
439 test_file = valid_file[:valid_file.rfind("valid.txt")] + "test.txt"
440 self.link_prediction_split(self.graph, [train_file, valid_file, test_file], portions=[100, 1, 1])
441
442 def test_preprocess(self, test_file):
443 train_file = test_file[:test_file.rfind("test.txt")] + "train.txt"

Callers

nothing calls this directly

Calls 1

link_prediction_splitMethod · 0.80

Tested by

no test coverage detected