Skip to content

Commit

Permalink
Fixes see to delete this before merging #40
Browse files Browse the repository at this point in the history
  • Loading branch information
Fontanapink committed Feb 20, 2024
1 parent 07fe4f2 commit 775309a
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions BVAR/VARinfer.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import pymc as pm
import arviz as az
import pytensor.tensor as at
from .VARsim import VARSimulator
from ..model_simulate.VARsim import VARSimulator
from .utils import read_parameters
from base_model.base_model import BaseModel

Expand Down Expand Up @@ -202,13 +202,12 @@ def run_inference_large(self):
plt.savefig("plot-posterior.pdf")


if __name__ == '__main__':
# if __name__ == '__main__':
# Import parameters from JSON file
# FIXME: #40 see to delete this before merging
# parameters = read_parameters('parameters.json')
# simulator = VARSimulator(**parameters)
# simulator.run("VARsim")

parameters = read_parameters('parameters.json')
simulator = VARSimulator(**parameters)
simulator.run("VARsim")

infer = VARInfer(simulator.data)
infer.run_inference()
# infer = VARInfer(simulator.data)
# infer.run_inference()
# infer.run_inference_large()

0 comments on commit 775309a

Please sign in to comment.