def min_func(x, target=ssp):
    x_ssp = self.encode(np.atleast_2d(x))
    return (- np.inner(x_ssp, target).flatten())
def min_func(x, target=ssp):
    x_ssp = self.encode(np.atleast_2d(x))
    return (- np.inner(x_ssp, target).flatten())