ageron / handson-ml

⛔️ DEPRECATED – See https://github.com/ageron/handson-ml3 instead.
Apache License 2.0
25.18k stars 12.92k forks source link

Trouble with fetch_openml #594

Closed GiaGoswami closed 3 years ago

GiaGoswami commented 4 years ago

Hi! I was having trouble with fetch_openml. Here is the code line and the Error message : Code : mnist = fetch_openml(dataname="MNIST original") Error : TypeError: fetch_openml() got an unexpected keyword argument 'dataname' I tried to change the name, but that didn't help. Does anyone know how I can fix this Error?

Praful932 commented 4 years ago

@GiaGoswami if you want to use mnist you could do this mnist = fetch_openml('mnist_784', version = 1)

GiaGoswami commented 4 years ago

Thank you.

GiaGoswami commented 3 years ago

Never mind

ageron commented 3 years ago

Note that since Scikit-Learn 0.24, fetch_openml() returns a Pandas dataframe by default, which breaks the code in the book. So you need to add the argument as_frame=False to ask the function to return a NumPy array, as before.