brendanhasz / probflow

A Python package for building Bayesian models with TensorFlow or PyTorch
http://probflow.readthedocs.io
MIT License
170 stars 17 forks source link

model.coverage_by(ci=0.95) is not working #72

Open ramakrse opened 1 year ago

ramakrse commented 1 year ago

Hi, I am exploring this package. I am trying to get familiar with the example problem given in the getting started. It throws an error that it expects x_by and x parameters to pass

Below is the data and use the LinearRegression model and model.coverage_by(ci=0.95). Use Pytorch as the backend.

randn = lambda x: np.random.randn(x).astype('float32')

Generate some data

x = randn(100) y = 2*x -1 + randn(100)

As the documentation is not clear, not sure, what information has to pass. Request input to perform Getting Started

regards Selva