(data, count, inds, fill=0)
return ret
Unmap a subset of item (data) back to the original set of items (of
    size count)
Unmap a subset of item (data) back to the original set of items (of
    size count)
Unmap a subset of item ( data ) back to the original set of items ( of size count )
def unmap(data, count, inds, fill=0):
    """Unmap a subset of item (data) back to the original set of items (of
    size count)"""
    if count == len(inds):
        return data

    if len(data.shape) == 1:
        ret = np.empty((count, ), dtype=data.dtype)
        ret.fill(fill)
        ret[inds] = data
    else:
        ret = np.empty((count, ) + data.shape[1:], dtype=data.dtype)
        ret.fill(fill)
        ret[inds, :] = data
    return ret
def unmap ( data , count , inds , fill = 0 ) : if count == len ( inds ) : return data if len ( data . shape ) == 1 : ret = np . empty ( ( count , ) , dtype = data . dtype ) ret . fill ( fill ) ret [ inds ] = data else : ret = np . empty ( ( count , ) + data . shape [ 1 : ] , dtype = data . dtype ) ret . fill ( fill ) ret [ inds , : ] = data return ret