The fetch_MLdata function cannot download the MNIST dataset problem
from sklearn.datasets import fetch_mldata
mnist = fetch_mldata('MNIST original')
solution
1. Download the data set
!wget https://github.com/amplab/datascience-sp14/raw/master/lab7/mldata/mnist-original.mat
2. View the SkLearn data root directory
from sklearn.datasets.base import get_data_home
print (get_data_home())
!tree /root/scikit_learn_data
3. Copy the data set to mldata
directory
!cp mnist-original.mat /root/scikit_learn_data/mldata
!tree /root/scikit_learn_data
4. Verify
from sklearn.datasets import fetch_mldata
mnist = fetch_mldata('MNIST original')
mnist
5. OK!!!
mnist.data.shape
mnist.target.shape
added
from sklearn.datasets import fetch_openml
mnist = fetch_openml('mnist_784', version=1)
can’t download it!
from tensorflow.examples.tutorials.mnist import input_data
mnist = input_data.read_data_sets("./data/")
Read More:
- Process of checking the error of connection reset by peer reported by reactor netty
- About connection reset by peer: socket write error
- Nginx: recv() failed (104: connection reset by peer) troubleshooting
- subsystem request failed on channel 0 Couldn’t read packet: Connection reset by peer
- Caused by: java.net.SocketException : connection reset or caused by: java.sql.SQLRecoverableException solve
- Solve the problem caused by: java.sql.SQLRecoverableException : IO error: connection reset related problems
- <info> peer_manager_handler: Connection security failed
- java.sql.SQLRecoverableException: IO Error: Connection reset
- Failed to load resource: net::ERR_CONNECTION_RESET
- The browser console reports failed to load resource: net :: ERR_CONNECTION_RESET, which results in unable to log in
- Istio Error 503 upstream connect error or disconnect/reset before headers. reset reason: connect
- “2003” error reported by sqlyog for Linux remote connection solution
- Caused by: io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: no furthe
- requests.exceptions.InvalidSchema : no connection adapters were found for a murder case caused by a comma
- As appears Error:Cause : peer not authenticated
- Reset power on password of lightning simulator
- Reset local git account and generate secret key
- Eclipse reset annotation shortcuts
- Android studio reported an error, Error:SSL peer shut down incorrectly
- Android studio error resolution: Error:SSL peer shut down incorrectly