def makeData(amount=10000):
 center = array([0.5, 0.5])
 def makePoint():
  "Return a random point and its satellite information.\n\n        Satellite is 'blue' if point is in the circle, else 'red'."
  point = (random.random((2,)) * 10)
  vectorLength = (lambda x: dot(x.T, x))
  return (point, ('blue' if (vectorLength((point - center)) < 25) else 'red'))
 return [makePoint() for _ in range(amount)]

def makeData ( amount = 10000 ) : center = array ( [ 0.5 , 0.5 ] ) def makePoint ( ) : point = ( random . random ( ( 2 , ) ) * 10 ) vectorLength = ( lambda x : dot ( x . T , x ) ) return ( point , ( 'blue' if ( vectorLength ( ( point - center ) ) < 25 ) else 'red' ) ) return [ makePoint ( ) for _ in range ( amount ) ]
return 2d dataset of points in where points in a circle of radius .