diff options
| author | Ben Green <ben@SEASITs-MacBook-Pro.local> | 2015-06-23 11:55:17 -0400 |
|---|---|---|
| committer | Ben Green <ben@SEASITs-MacBook-Pro.local> | 2015-06-23 11:55:17 -0400 |
| commit | aa081ff0ddadfcfdcfc4b61af9845760a463e4cc (patch) | |
| tree | f1005aaa3e62d2b01d5c042b9342576b952e5f81 /experiments/process.py | |
| parent | d99879dc3d6839b00f4b325320fe2b992391b915 (diff) | |
| download | criminal_cascades-aa081ff0ddadfcfdcfc4b61af9845760a463e4cc.tar.gz | |
updated calculation of structural component with edge weights, and to
penalize less for longer distances
Diffstat (limited to 'experiments/process.py')
| -rw-r--r-- | experiments/process.py | 8 |
1 files changed, 4 insertions, 4 deletions
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} <file>".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) |
