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

Module twomoon

source code

Two moon toy data set

Functions [hide private]
 
view()
scatterplot of two moon dataset with labels
source code
 
generate(npts=75)
Generate a sample from the two moon generative model
source code
Variables [hide private]
  data = array([[ 0.991, -0.02...
  row = '2.123,-0.17\r\n'
  x = '-0.17\r\n'
Variables Details [hide private]

data

Value:
array([[ 0.991, -0.02 ],
       [ 0.846,  0.072],
       [ 0.903,  0.003],
       [ 0.82 ,  0.096],
       [ 0.9  ,  0.207],
       [ 1.139,  0.151],
       [ 1.067,  0.187],
       [ 1.194,  0.431],
...