QInfer / python-qinfer

Library for Bayesian inference via sequential Monte Carlo for quantum parameter estimation.
BSD 3-Clause "New" or "Revised" License
92 stars 31 forks source link

Generalization for mismatched model shape and timestep updates in perf_test #62

Closed cgranade closed 8 years ago

cgranade commented 8 years ago

This PR generalizes perf_test_multiple to include two additional important cases: when the true model and estimation model admit different numbers of parameters, and when the true model has a timestep update that must be considered. In the first case, both the estimated and true modelparameter vectors are now correctly recorded, while the loss is restricted to those parameters shared between the two (aligning at the right, in keeping with NumPy convention). In the second, a call to true_model.update_timestep is now made after each simulate_experiment call in the updater loop.