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

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

src/p/y/pylearn2-HEAD/pylearn2/utils/tests/test_video.py   pylearn2(Download)
"""Tests for pylearn2.utils.video"""
import numpy
from pylearn2.utils.video import FrameLookup, spatiotemporal_cubes
 
__author__ = "David Warde-Farley"
    def check_patch_coverage(files):
        rng = numpy.random.RandomState(1)
        inputs = [(fname, array.shape) for fname, array in files.iteritems()]
        shape = (5, 7, 7)
        for fname, index in spatiotemporal_cubes(inputs, shape, 50000, rng):