Submit
Path:
~
/
/
opt
/
alt
/
python35
/
share
/
doc
/
alt-python35-scikit-learn-0.18.1
/
examples
/
datasets
/
File Content:
plot_digits_last_image.py
#!/usr/bin/python # -*- coding: utf-8 -*- """ ========================================================= The Digit Dataset ========================================================= This dataset is made up of 1797 8x8 images. Each image, like the one shown below, is of a hand-written digit. In order to utilize an 8x8 figure like this, we'd have to first transform it into a feature vector with length 64. See `here <http://archive.ics.uci.edu/ml/datasets/Pen-Based+Recognition+of+Handwritten+Digits>`_ for more information about this dataset. """ print(__doc__) # Code source: Gaƫl Varoquaux # Modified for documentation by Jaques Grobler # License: BSD 3 clause from sklearn import datasets import matplotlib.pyplot as plt #Load the digits dataset digits = datasets.load_digits() #Display the first digit plt.figure(1, figsize=(3, 3)) plt.imshow(digits.images[-1], cmap=plt.cm.gray_r, interpolation='nearest') plt.show()
Edit
Rename
Chmod
Delete
FILE
FOLDER
Name
Size
Permission
Action
README.txt
121 bytes
0644
plot_digits_last_image.py
932 bytes
0644
plot_iris_dataset.py
1929 bytes
0644
plot_random_dataset.py
2254 bytes
0644
plot_random_multilabel_dataset.py
3402 bytes
0644
N4ST4R_ID | Naxtarrr