code: def save_marginals(self, session, X, training=False):
          
  
          save_marginals(session, X, self.marginals(X), training=training)
docs: Save the predicted marginal probabilities for the Candidates X.
  
          :param session: The database session to use.
          :param X: Input data.
          :param training: If True, these are training marginals / labels;
              else they are saved as end model predictions.
          :type training: bool