'Reimplemented from OWBaseLearner.'

def update_model(self):

    self.Error.out_of_memory.clear()
    self.model = None
    if self.check_data():
        try:
            self.model = self.learner(self.data)
        except MemoryError:
            self.Error.out_of_memory()
        else:
            self.model.name = self.learner_name
            self.model.instances = self.data
            self.valid_data = True
    self.Outputs.model.send(self.model)
