#NEWLINE# def infer_newX( self , Y_new , optimize = True ) : #NEWLINE# #INDENT# '\n        Infer X for the new observed data *Y_new*.\n\n        :param Y_new: the new observed data for inference\n        :type Y_new: numpy.ndarray\n        :param optimize: whether to optimize the location of new X (True by default)\n        :type optimize: boolean\n        :return: a tuple containing the posterior estimation of X and the model that optimize X\n        :rtype: (:class:`~GPy.core.parameterization.variational.VariationalPosterior` and numpy.ndarray, :class:`~GPy.core.model.Model`)\n        ' #NEWLINE# from .. inference.latent_function_inference.inferenceX import infer_newX #NEWLINE# return infer_newX ( optimize , Y_new , optimize = optimize )