Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into docs-skeleton
Browse files Browse the repository at this point in the history
  • Loading branch information
jchodera committed May 17, 2015
2 parents 01bcfdf + 8c5713b commit ba0b2f0
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions bhmm/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@

# hmms
from bhmm.hmm.generic_hmm import HMM
#from bhmm.hmm.gaussian_hmm import GaussianHMM
#from bhmm.hmm.discrete_hmm import DiscreteHMM
from bhmm.hmm.gaussian_hmm import GaussianHMM
from bhmm.hmm.discrete_hmm import DiscreteHMM

from bhmm.hmm.generic_sampled_hmm import SampledHMM
#from bhmm.hmm.gaussian_hmm import SampledGaussianHMM
#from bhmm.hmm.discrete_hmm import SampledDiscreteHMM
from bhmm.hmm.gaussian_hmm import SampledGaussianHMM
from bhmm.hmm.discrete_hmm import SampledDiscreteHMM

# estimators
from bhmm.estimators.bayesian_sampling import BayesianHMMSampler as BHMM
Expand Down
2 changes: 1 addition & 1 deletion examples/discrete_1d_2min/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
observations.append(o[shift:][::lag])

# initial HMM
hmm = bhmm.estimate_hmm(observations, nstates, output_model_type='discrete')
hmm = bhmm.estimate_hmm(observations, nstates, type='discrete')
its[i] = lag*hmm.timescales
likelihoods[i] = hmm.likelihood

Expand Down
2 changes: 1 addition & 1 deletion examples/p5ab-hairpin/generate-figure.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def run(nstates, nsamples):

# Initialize BHMM, using MLHMM model as initial model.
print "Initializing BHMM and running with "+str(nsamples)+" samples."
sampler = bhmm.BayesianHMMSampler(O, nstates, initial_model=mle)
sampler = bhmm.BHMM(O, nstates, initial_model=mle)

# Sample models.
bhmm_models = sampler.sample(nsamples=nsamples, save_hidden_state_trajectory=False)
Expand Down
2 changes: 1 addition & 1 deletion examples/rnase-h-d10a/generate-figure.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def run(nstates, nsamples):

# Initialize BHMM, using MLHMM model as initial model.
print "Initializing BHMM and running with "+str(nsamples)+" samples."
sampler = bhmm.BayesianHMMSampler(O, nstates, initial_model=mle)
sampler = bhmm.BHMM(O, nstates, initial_model=mle)

# Sample models.
bhmm_models = sampler.sample(nsamples=nsamples, save_hidden_state_trajectory=False)
Expand Down
2 changes: 1 addition & 1 deletion examples/synthetic-three-state-model/generate-figure.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def run(nstates, nsamples):

# Initialize BHMM with MLHMM model.
print "Sampling models from BHMM..."
sampler = bhmm.BayesianHMMSampler(O, nstates, initial_model=mle)
sampler = bhmm.BHMM(O, nstates, initial_model=mle)
bhmm_models = sampler.sample(nsamples=nsamples, save_hidden_state_trajectory=False)

# Generate a sample saving a hidden state trajectory.
Expand Down

0 comments on commit ba0b2f0

Please sign in to comment.