remove api cruft
@@ -790,12 +790,8 @@ class Dedupe(DedupeMatching, ActiveMatching):
self._checkData(data)
self.active_learner = self.ActiveLearner(self.data_model)
- self.sampled_records = self.active_learner.sample_combo(
- data, blocked_proportion, sample_size, original_length)
-
- def _blockLearner(self, predicates):
- return training.DedupeBlockLearner(predicates,
- self.sampled_records)
+ self.active_learner.sample_combo(data, blocked_proportion,
+ sample_size, original_length)
def _checkData(self, data):
if len(data) == 0:
@@ -841,17 +837,12 @@ class RecordLink(RecordLinkMatching, ActiveMatching):
self._checkData(data_1, data_2)
self.active_learner = self.ActiveLearner(self.data_model)
- self.sampled_records = self.active_learner.sample_product(data_1, data_2,
+ self.active_learner.sample_product(data_1, data_2,
blocked_proportion,
sample_size,
original_length_1,
original_length_2)
- def _blockLearner(self, predicates):
- return training.RecordLinkBlockLearner(predicates,
- self.sampled_records_1,
- self.sampled_records_2)
-
def _checkData(self, data_1, data_2):
if len(data_1) == 0:
raise ValueError(
