AdamCobb / hamiltorch

PyTorch-based library for Riemannian Manifold Hamiltonian Monte Carlo (RMHMC) and inference in Bayesian neural networks
BSD 2-Clause "Simplified" License
426 stars 63 forks source link

predict_model() got multiple values for argument 'samples' #11

Closed shib0li closed 4 years ago

shib0li commented 4 years ago

Hi Adam,

When I run the notebook example of BNN at block 29, it shoots me this error. Any idea why this happens? Thanks.

AdamCobb commented 4 years ago

Hi Shibo Li,

Did you manage to solve the issue? I think I didn't update the notebook to the new code base, where the predict_model() needs the arguments for the data to be explicitly defined as a kwarg. e.g. "x=x_val, y=y_val", or if using a data loader "test_loader = test_loader".

Thanks,

Adam