hughsalimbeni / bayesian_benchmarks

A community repository for benchmarking Bayesian methods
Apache License 2.0
106 stars 38 forks source link

How to access Wilson_* datasets? #20

Closed patel-zeel closed 1 year ago

patel-zeel commented 2 years ago

I am trying to access Wilson_* datasets but am not able to do so.

from bayesian_benchmarks.data import Boston, Wilson_pol

data1 = Boston()
data2 = Wilson_pol()

data1 loads correctly. data2 throws the following error:

Traceback (most recent call last):
  File "/home/patel_zeel/CGLB-1/cglb_experiments/zdata.py", line 5, in <module>
    data2 = Wilson_pol()
  File "/home/patel_zeel/bayesian_benchmarks/bayesian_benchmarks/data.py", line 54, in __init__
    self.download()
  File "/home/patel_zeel/bayesian_benchmarks/bayesian_benchmarks/data.py", line 93, in download
    is_zipped = np.any([z in self.url for z in [".gz", ".zip", ".tar"]])
  File "/home/patel_zeel/bayesian_benchmarks/bayesian_benchmarks/data.py", line 93, in <listcomp>
    is_zipped = np.any([z in self.url for z in [".gz", ".zip", ".tar"]])
AttributeError: 'Wilson_pol' object has no attribute 'url'
st-- commented 1 year ago

Hi @patel-zeel, the code points to this URL to download: https://drive.google.com/open?id=0BxWe_IuTnMFcYXhxdUNwRHBKTlU but it seems to no longer be publicly accessible... NB, I'm trying to maintain a running version of this package over here: https://github.com/secondmind-labs/bayesian_benchmarks

patel-zeel commented 1 year ago

Thanks a lot for the info, @st--.