From aa081ff0ddadfcfdcfc4b61af9845760a463e4cc Mon Sep 17 00:00:00 2001 From: Ben Green Date: Tue, 23 Jun 2015 11:55:17 -0400 Subject: updated calculation of structural component with edge weights, and to penalize less for longer distances --- experiments/process.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'experiments/process.py') diff --git a/experiments/process.py b/experiments/process.py index 40bc9f3..a538545 100644 --- a/experiments/process.py +++ b/experiments/process.py @@ -13,10 +13,10 @@ if __name__ == "__main__": sys.exit("usage: {0} ".format(sys.argv[0])) root_victims, victims, non_victims, age = load(open(sys.argv[1])) - # alphas = np.arange(5e-4, 3e-3, 1e-4) # parameter of the time component - alphas = np.logspace(-4,2,num=20) - # deltas = np.arange(0.03, 0.1, 0.005) # parameter of the structural component - deltas = np.logspace(-4,-1,num=10) + alphas = np.arange(1e-3, 5e-1, 1e-2) # parameter of the time component + # alphas = np.logspace(-4,0,num=20) + deltas = np.arange(0.01, 0.99, 0.05) # parameter of the structural component + # deltas = np.logspace(-3,-0.001,num=20) with open("out.log", "w") as fh: for alpha, delta in product(alphas, deltas): beta, roots, ll = ml3(root_victims, victims, non_victims, age, alpha, delta) -- cgit v1.2.3-70-g09d2