From 367c8e400a2368e0375d34d4b73a283ced15bf9d Mon Sep 17 00:00:00 2001 From: jajupmochi Date: Tue, 5 Jan 2021 20:28:15 +0100 Subject: [PATCH] [Exp] Update exceptions in fcsp exps. --- .../graph_kernels/fcsp/run_jobs_compare_fcsp.py | 22 +++++++++---- .../fcsp/run_jobs_compare_fcsp_space.py | 38 +++++++++++++++++++--- 2 files changed, 49 insertions(+), 11 deletions(-) diff --git a/gklearn/experiments/thesis/graph_kernels/fcsp/run_jobs_compare_fcsp.py b/gklearn/experiments/thesis/graph_kernels/fcsp/run_jobs_compare_fcsp.py index 164740f..2c05455 100644 --- a/gklearn/experiments/thesis/graph_kernels/fcsp/run_jobs_compare_fcsp.py +++ b/gklearn/experiments/thesis/graph_kernels/fcsp/run_jobs_compare_fcsp.py @@ -10,7 +10,7 @@ import os import re -OUT_TIME_LIST = [('ShortestPath', 'ENZYMES', 'False'), +OUT_TIME_LIST = set({('ShortestPath', 'ENZYMES', 'False'), ('StructuralSP', 'ENZYMES', 'True'), ('StructuralSP', 'ENZYMES', 'False'), ('StructuralSP', 'AIDS', 'False'), @@ -26,20 +26,28 @@ OUT_TIME_LIST = [('ShortestPath', 'ENZYMES', 'False'), ('ShortestPath', 'COX2', 'False'), ('StructuralSP', 'COX2', 'False'), ('ShortestPath', 'DHFR', 'False'), - ] - -OUT_MEM_LIST = [('StructuralSP', 'PROTEINS', 'True'), + ('StructuralSP', 'DHFR', 'False'), + ('StructuralSP', 'OHSU', 'True'), + ('StructuralSP', 'OHSU', 'False'), + ('ShortestPath', 'SYNTHETICnew', 'False'), + ('StructuralSP', 'SYNTHETICnew', 'True'), + ('StructuralSP', 'SYNTHETICnew', 'False'), + ('ShortestPath', 'Synthie', 'False'), + ('StructuralSP', 'Synthie', 'True'), + }) + +OUT_MEM_LIST = set({('StructuralSP', 'PROTEINS', 'True'), ('StructuralSP', 'PROTEINS', 'False'), ('StructuralSP', 'PROTEINS_full', 'True'), ('StructuralSP', 'PROTEINS_full', 'False'), ('ShortestPath', 'REDDIT-BINARY', 'True'), - ] + }) -MISS_LABEL_LIST = [('StructuralSP', 'GREC', 'True'), +MISS_LABEL_LIST = set({('StructuralSP', 'GREC', 'True'), ('StructuralSP', 'GREC', 'False'), ('StructuralSP', 'Web', 'True'), ('StructuralSP', 'Web', 'False'), - ] + }) def get_job_script(kernel, dataset, fcsp): diff --git a/gklearn/experiments/thesis/graph_kernels/fcsp/run_jobs_compare_fcsp_space.py b/gklearn/experiments/thesis/graph_kernels/fcsp/run_jobs_compare_fcsp_space.py index e6669c5..233c4a2 100644 --- a/gklearn/experiments/thesis/graph_kernels/fcsp/run_jobs_compare_fcsp_space.py +++ b/gklearn/experiments/thesis/graph_kernels/fcsp/run_jobs_compare_fcsp_space.py @@ -14,10 +14,14 @@ import pickle OUT_TIME_LIST = [] -OUT_MEM_LIST = [('ShortestPath', 'REDDIT-BINARY', 'True'), +OUT_MEM_LIST = set({('ShortestPath', 'REDDIT-BINARY', 'True'), ('ShortestPath', 'REDDIT-BINARY', 'False'), ('ShortestPath', 'DD', 'True'), ('ShortestPath', 'DD', 'False'), + ('ShortestPath', 'COLORS-3', 'True'), + ('ShortestPath', 'COLORS-3', 'False'), + ('StructuralSP', 'COLORS-3', 'True'), + ('StructuralSP', 'COLORS-3', 'False'), ('ShortestPath', 'MCF-7', 'True'), ('ShortestPath', 'MCF-7', 'False'), ('StructuralSP', 'MCF-7', 'True'), @@ -35,7 +39,13 @@ OUT_MEM_LIST = [('ShortestPath', 'REDDIT-BINARY', 'True'), ('StructuralSP', 'MOLT-4H', 'True'), ('StructuralSP', 'MOLT-4H', 'False'), ('ShortestPath', 'P388', 'True'), + ('ShortestPath', 'P388', 'False'), + ('StructuralSP', 'P388', 'True'), + ('StructuralSP', 'P388', 'False'), ('ShortestPath', 'P388H', 'True'), + ('ShortestPath', 'P388H', 'False'), + ('StructuralSP', 'P388H', 'True'), + ('StructuralSP', 'P388H', 'False'), ('ShortestPath', 'NCI-H23', 'True'), ('ShortestPath', 'NCI-H23', 'False'), ('StructuralSP', 'NCI-H23', 'True'), @@ -48,7 +58,9 @@ OUT_MEM_LIST = [('ShortestPath', 'REDDIT-BINARY', 'True'), ('ShortestPath', 'OVCAR-8', 'False'), ('StructuralSP', 'OVCAR-8', 'True'), ('StructuralSP', 'OVCAR-8', 'False'), + ('ShortestPath', 'OVCAR-8H', 'True'), ('ShortestPath', 'OVCAR-8H', 'False'), + ('StructuralSP', 'OVCAR-8H', 'True'), ('StructuralSP', 'OVCAR-8H', 'False'), ('ShortestPath', 'SN12C', 'True'), ('ShortestPath', 'SN12C', 'False'), @@ -60,21 +72,30 @@ OUT_MEM_LIST = [('ShortestPath', 'REDDIT-BINARY', 'True'), ('ShortestPath', 'SF-295', 'False'), ('StructuralSP', 'SF-295', 'True'), ('StructuralSP', 'SF-295', 'False'), + ('ShortestPath', 'SF-295H', 'True'), ('ShortestPath', 'SF-295H', 'False'), + ('StructuralSP', 'SF-295H', 'True'), ('StructuralSP', 'SF-295H', 'False'), ('ShortestPath', 'SW-620', 'True'), ('ShortestPath', 'SW-620', 'False'), ('StructuralSP', 'SW-620', 'True'), ('StructuralSP', 'SW-620', 'False'), + ('ShortestPath', 'SW-620H', 'True'), ('ShortestPath', 'SW-620H', 'False'), + ('StructuralSP', 'SW-620H', 'True'), ('StructuralSP', 'SW-620H', 'False'), + ('ShortestPath', 'TRIANGLES', 'True'), ('ShortestPath', 'TRIANGLES', 'False'), + ('StructuralSP', 'TRIANGLES', 'True'), ('StructuralSP', 'TRIANGLES', 'False'), ('ShortestPath', 'Yeast', 'True'), ('ShortestPath', 'Yeast', 'False'), ('StructuralSP', 'Yeast', 'True'), ('StructuralSP', 'Yeast', 'False'), ('ShortestPath', 'YeastH', 'True'), + ('ShortestPath', 'YeastH', 'False'), + ('StructuralSP', 'YeastH', 'True'), + ('StructuralSP', 'YeastH', 'False'), ('ShortestPath', 'FRANKENSTEIN', 'True'), ('ShortestPath', 'FRANKENSTEIN', 'False'), ('StructuralSP', 'FRANKENSTEIN', 'True'), @@ -97,22 +118,31 @@ OUT_MEM_LIST = [('ShortestPath', 'REDDIT-BINARY', 'True'), ('ShortestPath', 'PC-3H', 'False'), ('StructuralSP', 'PC-3H', 'True'), ('StructuralSP', 'PC-3H', 'False'), + ('ShortestPath', 'DBLP_v1', 'True'), ('ShortestPath', 'DBLP_v1', 'False'), ('StructuralSP', 'DBLP_v1', 'True'), + ('ShortestPath', 'COLLAB', 'True'), + ('ShortestPath', 'COLLAB', 'False'), + ('StructuralSP', 'COLLAB', 'True'), + ('StructuralSP', 'COLLAB', 'False'), ('ShortestPath', 'REDDIT-BINARY', 'False'), + ('StructuralSP', 'REDDIT-MULTI-5K', 'True'), + ('StructuralSP', 'REDDIT-MULTI-5K', 'False'), + ('ShortestPath', 'REDDIT-MULTI-12K', 'True'), ('ShortestPath', 'REDDIT-MULTI-12K', 'False'), + ('StructuralSP', 'REDDIT-MULTI-12K', 'True'), ('StructuralSP', 'REDDIT-MULTI-12K', 'False'), ('ShortestPath', 'TWITTER-Real-Graph-Partial', 'True'), ('ShortestPath', 'TWITTER-Real-Graph-Partial', 'False'), ('StructuralSP', 'TWITTER-Real-Graph-Partial', 'True'), ('StructuralSP', 'TWITTER-Real-Graph-Partial', 'False'), - ] + }) -MISS_LABEL_LIST = [('StructuralSP', 'GREC', 'True'), +MISS_LABEL_LIST = set({('StructuralSP', 'GREC', 'True'), ('StructuralSP', 'GREC', 'False'), ('StructuralSP', 'Web', 'True'), ('StructuralSP', 'Web', 'False'), - ] + }) def get_job_script(kernel, dataset, fcsp):