def _addTrainingData(self, labeled_pairs):

        for label, examples in labeled_pairs.items():
            n_examples = len(examples)
            labels = [label] * n_examples

            new_data = numpy.empty(n_examples,
                                   dtype=self.training_data.dtype)

            new_data['label'] = labels
            new_data['distances'] = self.data_model.distances(examples)

            self.training_data = numpy.append(self.training_data,
                                              new_data)
Appends training data to the training data collection.
dataset/ETHPy150Open datamade/dedupe/dedupe/api.py/ActiveMatching._addTrainingData