Please use the logistic regression(default parameters) in sklearn to classify the data above, and print the training accuracy and test accuracy.
Training accuracy: 97.50%
Testing accuracy: 87.30%
Please use the naive bayes(Bernoulli, default parameters) in sklearn to classify the data above, and print the training accuracy and test accuracy.
Training accuracy: 82.07%
Testing accuracy: 80.60%
Please use the support vector machine(default parameters) in sklearn to classify the data above, and print the training accuracy and test accuracy.
Training accuracy: 97.88%
Testing accuracy: 85.10%
Please adjust the parameters of SVM to increase the testing accuracy, and print the training accuracy and test accuracy.
Training accuracy: 95.37%
Testing accuracy: 87.10%
Please print the training and testing accuracy.
Training accuracy: 99.73%
Testing accuracy: 99.10%
A tutorial for MNIST handwritten digit classification using sklearn, PyTorch and Keras.
numpy_matplotlib_sklearn.ipynb
: for numpy, matplotlib and sklearn.pytorch.ipynb
: for pytorch.keras.ipynb
: for keras.- Reference solution: (not published yet)
Code tested on following environments, other version should also work:
- linux system (ubuntu 16.04)
- python 3.6.3
- numpy 1.13.3
- matplotlib 2.1.0
- sklearn 0.19.1
- pytorch 0.4.1
- keras 2.1.2
Please read HEAR.