Skip to content

Commit

Permalink
Fix MCMC step initialization when not specified by user. Closes #2
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanjgallagher committed Nov 15, 2021
1 parent adb17c0 commit 90fb289
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 5 deletions.
4 changes: 1 addition & 3 deletions core_periphery_sbm/core_periphery.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import os
import sys
import warnings
import numpy as np
import networkx as nx
Expand Down Expand Up @@ -246,7 +244,7 @@ def initialize_inference(self, G):
self.log_posteriors[0] = self.get_log_posterior()
# Set number of MCMC steps if not set by user
if self.n_mcmc is None:
self.n_mcmc = N * len(self.n_blocks)
self.n_mcmc = self.N_nodes * len(self.n_blocks)

def update_block_stats(self, G):
"""
Expand Down
1 change: 0 additions & 1 deletion core_periphery_sbm/inference.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import sys
import numpy as np
from scipy.stats import beta
from scipy.special import loggamma
Expand Down
Empty file modified core_periphery_sbm/model_fit.py
100644 → 100755
Empty file.
1 change: 0 additions & 1 deletion core_periphery_sbm/network_helper.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import numpy as np
import networkx as nx

def get_max_edges(block_r, block_s, block_ns):
"""
Expand Down

0 comments on commit 90fb289

Please sign in to comment.