Exemplo n.º 1
0
# exp num used training graphs
logger.info('kp1 exp 2: different number of training graphs')
jobs.run_experiments(
    graphs=[gc.Graph.init_barabasi_m5_n1000()],
    embeddings=[gem.GEM_embedding.init_hope(),
                gem.GEM_embedding.init_sdne()],
    list_num_tr_graphs=[1, 2, 5, 10, 20],
    logger=logger)

# exp num iterations
logger.info('kp1 exp 3: number of embeddings on same graph')
jobs.run_experiments(graphs=[gc.Graph.init_barabasi_m5_n1000()],
                     embeddings=[
                         n2v.Node2VecPathSnapEmbGensim(),
                         line.Line(),
                         gem.GEM_embedding.init_hope(),
                         gem.GEM_embedding.init_sdne()
                     ],
                     list_num_iter=[1, 2, 5, 10],
                     logger=logger)

logger.info('kp1 exp 4: all graphs')
jobs.run_experiments(graphs=gc.Graph.init_all_barabasi_graphs(),
                     embeddings=[
                         n2v.Node2VecPathSnapEmbGensim(),
                         line.Line(),
                         gem.GEM_embedding.init_hope(),
                         gem.GEM_embedding.init_sdne()
                     ],
                     logger=logger)
Exemplo n.º 2
0
import sys
sys.path.insert(0, "..")

import jobs.all_exp as jobs

import graphs.graph_class as gc
import embeddings.line as line
import embeddings.node2vec_c_path_gensim_emb as n2v
import embeddings.GEM_embeddings as gem
import features.diff_type as dt

jobs.run_experiments(graphs=[gc.Graph.init_karate_club_graph()],
                     embeddings=[gem.GEM_embedding.init_hope(8), n2v.Node2VecPathSnapEmbGensim(), line.Line(),
                                 gem.GEM_embedding.init_sdne()], list_num_tr_graphs=[1], num_test_eval=1)