def predict_log_hazard_relative_to_mean(self, X):
        """
        X: a (n,d) covariate numpy array or DataFrame. If a DataFrame, columns
            can be in any order. If a numpy array, columns must be in the
            same order as the training data.        

        Returns the log hazard relative to the hazard of the mean covariates. This is the behaviour 
        of R's predict.coxph.
        """
        mean_covariates = self.data.mean(0).to_frame().T
        return np.log(self.predict_partial_hazard(mean_covariates).squeeze()/self.predict_partial_hazard(X))
dataset/ETHPy150Open CamDavidsonPilon/lifelines/lifelines/fitters/coxph_fitter.py/CoxPHFitter.predict_log_hazard_relative_to_mean/swapped operands of `/`