# Geneate graphs from real data import networkx as nx import rw import numpy as np subs=['S101','S102','S103','S104','S105','S106','S107','S108','S109','S110', 'S111','S112','S113','S114','S115','S116','S117','S118','S119','S120'] #subs=['S1','S2','S3','S4','S5','S7','S8','S9','S10','S11','S12','S13'] toydata=rw.Toydata({ 'numx': 3, 'trim': 1, 'jump': 0.0, 'jumptype': "stationary", 'priming': 0.0, 'startX': "stationary"}) fitinfo=rw.Fitinfo({ 'startGraph': "windowgraph_valid", 'windowgraph_size': 2, 'windowgraph_threshold': 2, 'followtype': "avg", 'prior_samplesize': 10000, 'recorddir': "records/", 'directed': True, 'prune_limit': np.inf, 'triangle_limit': np.inf, 'other_limit': np.inf}) toygraphs=rw.Toygraphs({
import rw toydata = rw.Toydata({ 'numx': range(250, 251), 'priming': 0.3, 'jump': 0.0, 'trim': 0.7, 'jumptype': "stationary", 'startX': "stationary" }) fitinfo = rw.Fitinfo({ 'startGraph': "windowgraph_valid", 'followtype': "avg", 'record': False, 'recorddir': "records/", 'prune_limit': 100, 'triangle_limit': 100, 'other_limit': 100 }) toygraph = rw.Toygraphs({ 'graphtype': "steyvers", 'numnodes': 50, 'numlinks': 6 }) fh = open('priming_test.csv', 'w') seed = 15
import rw import numpy as np outfile='log.csv' header=1 toygraphs=rw.Toygraphs({ 'numgraphs': 5, 'graphtype': "steyvers", 'numnodes': 50, 'numlinks': 6, 'prob_rewire': .3}) toydata=rw.Toydata({ 'numx': range(5,40), 'trim': .7, 'jump': 0.0, 'jumptype': "stationary", 'startX': "stationary"}) irts=rw.Irts({ 'data': [], 'irttype': "gamma", 'beta': (1/1.1), 'irt_weight': 0.9, 'rcutoff': 20}) #TODO: add window params (c)? fitinfo=rw.Fitinfo({ 'startGraph': "windowgraph_valid", 'windowgraph_size': 2, 'windowgraph_threshold': 2,
outfile = 'tmp.csv' header = 1 toygraphs = rw.Toygraphs({ 'numgraphs': 10, 'graphtype': "steyvers", 'numnodes': 30, 'numlinks': 6, 'prob_rewire': .3 }) toydata = rw.Toydata({ 'numx': range(5, 25), 'trim': .7, 'jump': 0.0, 'jumptype': "uniform", 'startX': "uniform" }) irts = rw.Irts({ 'data': [], 'irttype': "gamma", 'beta': (1 / 1.1), 'irt_weight': 0.9, 'rcutoff': 20 }) fitinfo = rw.Fitinfo({ 'tolerance': 1500, 'startGraph': "naiverw",
import networkx as nx import rw import numpy as np import math import csv subs = [ 'S101', 'S102', 'S103', 'S104', 'S105', 'S106', 'S107', 'S108', 'S109', 'S110', 'S111', 'S112', 'S113', 'S114', 'S115', 'S116', 'S117', 'S118', 'S119', 'S120' ] toydata = rw.Toydata({ 'numx': 1, 'trim': 1.0, 'jump': 0.6, 'priming': 0.0, 'jumptype': "stationary", 'jumponcensored': None, 'startX': "stationary" }) # should be same as above, but keep this one un-edited just in case :) toydata_base = rw.Toydata({ 'numx': 1, 'trim': 1.0, 'jump': 0.0, 'priming': 0.0, 'jumptype': "stationary", 'jumponcensored': None, 'startX': "stationary" })