Package src :: Package stats306b :: Package lecture1 :: Module digits
[hide private]
[frames] | no frames]

Module digits

source code

This file imports a sample of handwritten digits (3s), stored as data.

If run from the command line, it plots a sample of 16 randomly selected digits.

Functions [hide private]
 
view()
View a sample of the hand-written digits
source code
Variables [hide private]
  __doc__ = ...
  data = array([[[-1. , -1. , -1. , ..., -1. , -1. , -...
  row = ['-1', '-1', '-1', '-0.783', '-0.984', '-0.827', '0.068'...
  x = '-1'
Variables Details [hide private]

__doc__

Value:
"""
This file imports a sample of handwritten digits (3s), stored
as data.

If run from the command line, it plots a sample of 16 randomly
selected digits.
"""

data

Value:
array([[[-1.   , -1.   , -1.   , ..., -1.   , -1.   , -1.   ],
        [-1.   , -1.   , -1.   , ..., -1.   , -1.   , -1.   ],
        [-1.   , -1.   , -1.   , ..., -1.   , -1.   , -1.   ],
        ..., 
        [-1.   ,  0.075,  1.   , ...,  1.   ,  0.093, -1.   ],
        [-1.   , -0.959, -0.062, ...,  0.583, -0.843, -1.   ],
        [-1.   , -1.   , -1.   , ..., -0.883, -1.   , -1.   ]],

...

row

Value:
['-1',
 '-1',
 '-1',
 '-0.783',
 '-0.984',
 '-0.827',
 '0.068',
 '1',
...