diff options
| author | Ben Green <ben@SEASITs-MacBook-Pro.local> | 2015-06-20 18:33:48 -0400 |
|---|---|---|
| committer | Ben Green <ben@SEASITs-MacBook-Pro.local> | 2015-06-20 18:33:48 -0400 |
| commit | a473003961419502b66b5111374de26331bf4fc3 (patch) | |
| tree | 2357dbeb5be29506734fe811e02c3aadc9607952 /experiments/process.py | |
| parent | aaa2f530675f9f76bcd48e9641354f7a0e043012 (diff) | |
| download | criminal_cascades-a473003961419502b66b5111374de26331bf4fc3.tar.gz | |
More tests with ml2 to find optimal results
Diffstat (limited to 'experiments/process.py')
| -rw-r--r-- | experiments/process.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/experiments/process.py b/experiments/process.py index d01b3fd..330a49e 100644 --- a/experiments/process.py +++ b/experiments/process.py @@ -12,13 +12,13 @@ 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(10., 30., 3.) # parameter of the time component - # alphas = np.logspace(0,2,num=10) - # deltas = np.arange(0.005, 0.5, 0.005) # parameter of the structural component - deltas = np.logspace(-4,-2,num=5) + # alphas = np.arange(5e-4, 3e-3, 1e-4) # parameter of the time component + alphas = np.logspace(-5,-1,num=20) + # deltas = np.arange(0.03, 0.1, 0.005) # parameter of the structural component + deltas = np.logspace(-5,-1,num=20) with open("out.log", "w") as fh: for alpha, delta in product(alphas, deltas): - beta, roots, ll = ml(root_victims, victims, non_victims, age, alpha, delta) + beta, roots, ll = ml2(root_victims, victims, non_victims, age, alpha, delta) print "\t".join(map(str, [alpha, delta, beta, roots, ll])) fh.write("\t".join(map(str, [alpha, delta, beta, roots, ll])) + "\n") fh.flush() |
