Package src :: Package stats306b :: Package datasets :: 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]
 
getdigit(digit) source code
 
training(which=None) source code
 
test(which=None) source code
 
view()
View a sample of the hand-written digits
source code
 
Lpen(nx, ny)
Simple way to create "random-walk" Laplacian penalty.
source code
Variables [hide private]
  __doc__ = ...
  data = array([[[-1. , -1. , -1. , ..., -1. , -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.   ]],

...