data = fetch_mldata("climate-model-simulation-crashes")
except HTTPError as e:
url = "https://archive.ics.uci.edu/ml/machine-learning-databases/00252/pop_failures.dat"
urlretrieve(url, "pop_failures.dat")
data = dict()
samples = np.loadtxt("pop_failures.dat", skiprows=1)
os.remove("pop_failures.dat")
data["data"] = samples[:, :-1]
After Change
elif name == "Housing":
data = fetch_california_housing()
dataset_size = 1000 // this is necessary so that SVR does not slow down too much
data["data"] = data["data"][:dataset_size]
data["target"] =data["target"][:dataset_size]
elif name == "digits":
data = load_digits()