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

Method valid_preprocess

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

Source from the content-addressed store, hash-verified

708 self.edge_split(graph_file, [train_file, valid_file, test_file], portions=[4000, 1, 1])
709
710 def valid_preprocess(self, graph_file, valid_file):
711 train_file = valid_file[:valid_file.rfind("valid.txt")] + "train.txt"
712 test_file = valid_file[:valid_file.rfind("valid.txt")] + "test.txt"
713 self.edge_split(graph_file, [train_file, valid_file, test_file], portions=[4000, 1, 1])
714
715 def test_preprocess(self, graph_file, test_file):
716 train_file = test_file[:test_file.rfind("valid.txt")] + "train.txt"

Callers

nothing calls this directly

Calls 1

edge_splitMethod · 0.80

Tested by

no test coverage detected