you cannot use a data dependent param self.resolution_ entering the fit. Such a param should be set by the fit method.