(x, depth)
return np.array([np.eye(depth)[int(indices)] for indices in x])
:param x: 
        :param depth:
        :return:
:param x: 
        :param depth:
        :return:
: param x : : param depth : : return :
def to_onehot(x, depth):
        """
        
        :param x: 
        :param depth:
        :return: 
        """
        return np.array([np.eye(depth)[int(indices)] for indices in x])
def to_onehot ( x , depth ) : return np . array ( [ np . eye ( depth ) [ int ( indices ) ] for indices in x ] )