Closed atropos112 closed 3 years ago
I had the same problem. I found out that it depends on the version of scikit-learn. fetch_openml
has an optional argument as_frame
which used to default to False
, making the function return a Numpy array. However, since scikit-learn version 0.24, the default value for as_frame
is 'auto'.
(Source)
I had the same problem. I found out that it depends on the version of scikit-learn.
fetch_openml
has an optional argumentas_frame
which used to default toFalse
, making the function return a Numpy array. However, since scikit-learn version 0.24, the default value foras_frame
is 'auto'.(Source)
Yes ! You got it, thank you !!
In chapter 3 on page 86 (also in the github repo MNIST), one has code
This works well but the next step, namely
some_digit = X[0]
Throws an errorHaving up to date python, and the packages involved I was super confused why this is the case. I realised i can remedy this by instead setting
This turns it into array sure, I have to reshape it right after anyway so its fine. The reason I am writing this is because i then executed the same code that failed for me on google colab and there it just works, any idea what could be causing this ?
Thank you