def encodeIntoArray(self, value, output):
denseInput = numpy.zeros(output.shape)<EOL>try:<EOL><INDENT>denseInput[value] = <NUM_LIT:1><EOL><DEDENT>except IndexError:<EOL><INDENT>if isinstance(value, numpy.ndarray):<EOL><INDENT>raise ValueError(<EOL>"<STR_LIT>".format(<EOL>value.dtype))<EOL><DEDENT>raise<EOL><DEDENT>super(SparsePassThroughEncoder, self).encodeIntoArray(denseInput, output)<EOL>
See method description in base.py