diff options
| author | Ben Green <ben@SEASITs-MacBook-Pro.local> | 2015-06-23 14:10:51 -0400 |
|---|---|---|
| committer | Ben Green <ben@SEASITs-MacBook-Pro.local> | 2015-06-23 14:10:51 -0400 |
| commit | a04d00976c6a3e990dd1f59b4ab2507f574a6ddb (patch) | |
| tree | 9c0ad71fc1cc3fbab70463bc885ad0b6335c3900 /experiments/ml.pyx | |
| parent | aa081ff0ddadfcfdcfc4b61af9845760a463e4cc (diff) | |
| download | criminal_cascades-a04d00976c6a3e990dd1f59b4ab2507f574a6ddb.tar.gz | |
ran some experiments with ml3, still no good results
Diffstat (limited to 'experiments/ml.pyx')
| -rw-r--r-- | experiments/ml.pyx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/experiments/ml.pyx b/experiments/ml.pyx index 785986c..c8c99cc 100644 --- a/experiments/ml.pyx +++ b/experiments/ml.pyx @@ -89,7 +89,7 @@ def ml(dict root_victims, dict victims, dict non_victims, DTYPE_t age, # add probability for realized edges and subtract probability these edges fail beta_add += (probs[probs>=thresh]).sum() # add probability for the seeds and non-seeds - beta_add += roots * log(beta) + (n_nodes-roots) * log(1. - beta) + beta_add += roots * log(beta/3012.) + (n_nodes-roots) * log(1. - beta) if beta_add > max_beta_add: max_beta = beta |
