def makeDataset(inputSize, nbExamples, dictSize, patternSize) :

	data = numpy.random.randint(0, dictSize, (nbExamples, inputSize)).astype("int8")
	targets = []
	for i in xrange(len(data)) :
		if i/2 == 0 :
			targets.append(0)
		else :
			targets.append(1)
			r = numpy.random.randint(inputSize - patternSize)
			data[i][r:r+patternSize] = 1

	return data, targets
dataset/ETHPy150Open tariqdaouda/Mariana/Mariana/examples/conv_basic_emb.py/makeDataset/operator `%` -> `/`