Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)

src/p/y/pylearn2-HEAD/pylearn2/datasets/tests/test_four_regions.py   pylearn2(Download)
def test_four_regions():
    dataset = FourRegions(5000)
    X = dataset.get_design_matrix()
    np.testing.assert_(((X < 1.) & (X > -1.)).all())
    y = dataset.get_targets()