Package src :: Package stats306b :: Package datasets :: Module swiss
[hide private]
[frames] | no frames]

Module swiss

source code


Swiss roll data. Taken from

http://isomap.stanford.edu

Reference:
----------

Tenenbaum et al. (2000) "A global geometric framework for nonlinear
dimensionality reduction.", Science (290) 2319-2323.



Functions [hide private]
 
getnearest()
Get 7-mutual nearest neighbour matrix of first 1000 observations.
source code
 
getgraph()
Get graph distance of first 1000 observations.
source code
 
nearest(d, k=4, fill=inf, symmetric=False)
Return matrix of k nearest neighbours distances.
source code
 
process(n=1000, k=7)
Operations used to create the mutual k-nearest distance matrix, and the graph distance matrix.
source code
 
view(data={'X_data': array([[ -7.81669039, 11.63249768, 4.98949669, ...., n=1000) source code
Variables [hide private]
  data = {'X_data': array([[ -7.81669039, 11.63249768, 4.9894...
  X = array([[ -7.81669039, -6.41497431, 15.5174980...
  Y = array([[ 39.40748137, 15.5174980...
Function Details [hide private]

nearest(d, k=4, fill=inf, symmetric=False)

source code 

Return matrix of k nearest neighbours distances.

If symmetric, then it is the matrix of mutual K nearest neighbours,
i.e. entry (i,j) is not set to fill if either:
   1) i is within the k nearest neighbours of j
   2) j is in the k nearest neighbours of i


Variables Details [hide private]

data

Value:
{'X_data': array([[ -7.81669039,  11.63249768,   4.98949669, ...,  -0.\
15761409,
         -6.13858617,  10.16509492],
       [ -6.41497431,  -3.83386251,  -2.87793725, ...,   7.87242236,
         13.21593522,   8.52082985],
       [ 15.51749805,  12.96227365,  27.81921752, ...,  18.35944185,
         32.82565478,   1.06143158]]),
 'Y_data': array([[ 39.40748137,  63.46282985,   4.29079433, ...,  19.\
...

X

Value:
array([[ -7.81669039,  -6.41497431,  15.51749805],
       [ 11.63249768,  -3.83386251,  12.96227365],
       [  4.98949669,  -2.87793725,  27.81921752],
       ..., 
       [ -0.15761409,   7.87242236,  18.35944185],
       [ -6.13858617,  13.21593522,  32.82565478],
       [ 10.16509492,   8.52082985,   1.06143158]])

Y

Value:
array([[ 39.40748137,  15.51749805],
       [ 63.46282985,  12.96227365],
       [  4.29079433,  27.81921752],
       ..., 
       [ 19.01280751,  18.35944185],
       [ 94.79912446,  32.82565478],
       [ 76.50555546,   1.06143158]])