Description
Describe the bug
Observation:
Dataset for fetch_california_housing fails with 403 forbidden error.
Error:
urllib.error.HTTPError: HTTP Error 403: Forbidden
On Trying to reach the URL directly using the curl command as well fails:
wget https://ndownloader.figshare.com/files/5976036/cal_housing.tgz --2024-02-08 15:37:14-- https://ndownloader.figshare.com/files/5976036/cal_housing.tgz Resolving ndownloader.figshare.com (ndownloader.figshare.com)... 54.217.124.219, 52.16.102.173, 2a05:d018:1f4:d003:1c8b:1823:acce:812, ... Connecting to ndownloader.figshare.com (ndownloader.figshare.com)|54.217.124.219|:443... connected. HTTP request sent, awaiting response... 403 Forbidden 2024-02-08 15:37:14 ERROR 403: Forbidden.
Acceptance Criteria:
Steps/Code to Reproduce
from sklearn.datasets import fetch_california_housing
var = fetch_california_housing()
print(var.keys())
Expected Results
data should be downloaded
Actual Results
data should be downloaded to the system
Versions
System:
python: 3.12.1 | packaged by Anaconda, Inc. | (main, Jan 19 2024, 15:51:05) [GCC 11.2.0]
executable: /home/vikkram/miniconda3/envs/priceenv/bin/python
machine: Linux-5.15.133.1-microsoft-standard-WSL2-x86_64-with-glibc2.31
Python dependencies:
sklearn: 1.3.0
pip: 23.3.1
setuptools: 68.2.2
numpy: 1.26.3
scipy: 1.11.4
Cython: None
pandas: 2.1.4
matplotlib: 3.8.0
joblib: 1.2.0
threadpoolctl: 2.2.0
Built with OpenMP: True
threadpoolctl info:
filepath: /home/vikkram/miniconda3/envs/priceenv/lib/libmkl_rt.so.2
prefix: libmkl_rt
user_api: blas
internal_api: mkl
version: 2023.1-Product
num_threads: 2
threading_layer: intel
filepath: /home/vikkram/miniconda3/envs/priceenv/lib/libiomp5.so
prefix: libiomp
user_api: openmp
internal_api: openmp
version: None
num_threads: 4
filepath: /home/vikkram/miniconda3/envs/priceenv/lib/libgomp.so.1.0.0
prefix: libgomp
user_api: openmp
internal_api: openmp
version: None
num_threads: 4
None