def save(self, doc):
        if doc.id:
            return self.update(doc)
        else:
            return self.insert(doc)
def get_iterations(self):
        """!
        @return (uint) Amount of iterations that were done by the EM algorithm.