Skip to content

Commit

Permalink
format notebooks with isort
Browse files Browse the repository at this point in the history
  • Loading branch information
nwlandry committed Jan 15, 2024
1 parent dc39beb commit 22776d6
Show file tree
Hide file tree
Showing 8 changed files with 45 additions and 54 deletions.
3 changes: 2 additions & 1 deletion Extra/fitting_ipn.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@
"metadata": {},
"outputs": [],
"source": [
"import numpy as np\n",
"import matplotlib.pyplot as plt\n",
"import numpy as np\n",
"\n",
"from lcs import *"
]
},
Expand Down
4 changes: 3 additions & 1 deletion Extra/plot_frac_vs_beta.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@
"metadata": {},
"outputs": [],
"source": [
"import matplotlib.pyplot as plt\n",
"import json\n",
"\n",
"import matplotlib.pyplot as plt\n",
"import numpy as np\n",
"\n",
"from lcs import *"
]
},
Expand Down
9 changes: 5 additions & 4 deletions Extra/plot_graph_topology.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@
"metadata": {},
"outputs": [],
"source": [
"import seaborn as sns\n",
"import pandas as pd\n",
"import matplotlib.pyplot as plt\n",
"import json\n",
"import numpy as np"
"\n",
"import matplotlib.pyplot as plt\n",
"import numpy as np\n",
"import pandas as pd\n",
"import seaborn as sns"
]
},
{
Expand Down
8 changes: 5 additions & 3 deletions Extra/plot_infer_contagion_functions.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,13 @@
"outputs": [],
"source": [
"import json\n",
"import numpy as np\n",
"\n",
"import arviz as az\n",
"import matplotlib.pyplot as plt\n",
"import numpy as np\n",
"import seaborn as sns\n",
"from lcs import *\n",
"import arviz as az"
"\n",
"from lcs import *"
]
},
{
Expand Down
10 changes: 6 additions & 4 deletions convergence/convergence_time_vs_size.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@
"metadata": {},
"outputs": [],
"source": [
"import numpy as np\n",
"import time\n",
"\n",
"import matplotlib.pyplot as plt\n",
"from lcs import *\n",
"import networkx as nx\n",
"import numpy as np\n",
"from numpy.linalg import eigh\n",
"from scipy.stats import beta\n",
"import time\n",
"from numpy.linalg import eigh"
"\n",
"from lcs import *"
]
},
{
Expand Down
7 changes: 4 additions & 3 deletions convergence/determine_mcmc_parameters.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@
"metadata": {},
"outputs": [],
"source": [
"import numpy as np\n",
"import matplotlib.pyplot as plt\n",
"from lcs import *\n",
"import networkx as nx\n",
"import numpy as np\n",
"from numpy.linalg import eigh\n",
"from scipy.stats import beta\n",
"from numpy.linalg import eigh"
"\n",
"from lcs import *"
]
},
{
Expand Down
43 changes: 11 additions & 32 deletions plot_fig2.ipynb

Large diffs are not rendered by default.

15 changes: 9 additions & 6 deletions scripts/will/entropy_metrics/entropy_metrics.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,20 @@
"import sys\n",
"\n",
"sys.path.append(\"../../../\")\n",
"import numpy as np\n",
"import random\n",
"import time\n",
"\n",
"import matplotlib.pyplot as plt\n",
"from lcs import *\n",
"import networkx as nx\n",
"from scipy.stats import beta\n",
"import time\n",
"from numpy.linalg import eigh\n",
"import random\n",
"import numpy as np\n",
"import pandas as pd\n",
"import seaborn as sns\n",
"from numpy.linalg import eigh\n",
"from scipy.stats import beta\n",
"from tqdm import tqdm\n",
"\n",
"from lcs import *\n",
"\n",
"random.seed(1234)\n",
"\n",
"\n",
Expand Down Expand Up @@ -92,6 +94,7 @@
"# x0 = np.zeros(n)\n",
"# x0[random.randrange(n)] = 1\n",
"\n",
"\n",
"gamma0 = 0.1\n",
"nu = eigh(A)[0][-1]\n",
"b0 = 2 * gamma0 / nu\n",
Expand Down

0 comments on commit 22776d6

Please sign in to comment.