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/ml.pyx | |
| 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/ml.pyx')
| -rw-r--r-- | experiments/ml.pyx | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/experiments/ml.pyx b/experiments/ml.pyx index 5016347..785986c 100644 --- a/experiments/ml.pyx +++ b/experiments/ml.pyx @@ -6,9 +6,6 @@ from libc.math cimport log, exp DTYPE = np.float64 ctypedef np.float_t DTYPE_t -cdef DTYPE_t plogis(DTYPE_t weight, DTYPE_t delta): - return 1./(1. + exp(-weight/delta)) - cdef DTYPE_t weight_success(int dist, int dt, DTYPE_t alpha, DTYPE_t delta, DTYPE_t w1, DTYPE_t w2, DTYPE_t w3): """weight for successful infection, exponential time model""" |
