As a result, from hpolib.benchmarks.ml.bnn_benchmark import BNNOnBostonHousing gives the error,
ImportError: cannot import name 'BayesianNeuralNetwork'
Am I missing something here? How can I solve this?
Hi, Yes, the package you referenced does not have the BNN interface you need. You need to use a different fork from here
pip install git+https://github.com/automl/sgmcmc.git
Hi,
I am trying to work on this example where BostonHousing is loaded using,
from hpolib.benchmarks.ml.bnn_benchmark import BNNOnBostonHousing
However, this imports BayesianNeuralNetwork from the sgmcmc package. The sgmcmc package seems to have just one branch with no class definition for BayesianNeuralNetwork.
As a result,
from hpolib.benchmarks.ml.bnn_benchmark import BNNOnBostonHousing
gives the error,ImportError: cannot import name 'BayesianNeuralNetwork'
Am I missing something here? How can I solve this?
Thanks.