Commit 21bef411 authored by Chris Jewell's avatar Chris Jewell
Browse files

Merge branch 'mod-new-spatial-corr' into 'master'

Mod new spatial corr

See merge request !45
parents 88ebe233 b44a31c1
......@@ -171,7 +171,7 @@ def CovidUK(covariates, initial_state, initial_step, num_steps):
def spatial_effect():
W = tf.convert_to_tensor(covariates["adjacency"])
Dw = tf.linalg.diag(tf.reduce_sum(W, axis=-1)) # row sums
rho = 0.5
rho = 0.25
precision = Dw - rho * W
cov = tf.linalg.inv(precision)
scale = tf.linalg.cholesky(cov)
......
[tool.poetry]
name = "covid19uk"
version = "0.8.0-alpha.2"
version = "0.8.0-alpha.3"
description = "Spatial stochastic SEIR analysis of COVID-19 in the UK"
authors = ["Chris Jewell <c.jewell@lancaster.ac.uk>"]
license = "MIT"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment