I'm trying to use a new Classifier instead of default logistic regression, and before training using the model, I changed the classifer using the following code
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-43-e6d175ec5827> in <module>()
----> 1 deduper.train(recall=0.90)
~\AppData\Local\Continuum\anaconda3\lib\site-packages\dedupe\api.py in train(self, recall, index_predicates)
667 """
668 examples, y = flatten_training(self.training_pairs)
--> 669 self.classifier.fit(self.data_model.distances(examples), y)
670
671 self._trainBlocker(recall, index_predicates)
~\AppData\Local\Continuum\anaconda3\lib\site-packages\sklearn\tree\tree.py in fit(self, X, y, sample_weight, check_input, X_idx_sorted)
788 sample_weight=sample_weight,
789 check_input=check_input,
--> 790 X_idx_sorted=X_idx_sorted)
791 return self
792
~\AppData\Local\Continuum\anaconda3\lib\site-packages\sklearn\tree\tree.py in fit(self, X, y, sample_weight, check_input, X_idx_sorted)
114 random_state = check_random_state(self.random_state)
115 if check_input:
--> 116 X = check_array(X, dtype=DTYPE, accept_sparse="csc")
117 y = check_array(y, ensure_2d=False, dtype=None)
118 if issparse(X):
~\AppData\Local\Continuum\anaconda3\lib\site-packages\sklearn\utils\validation.py in check_array(array, accept_sparse, dtype, order, copy, force_all_finite, ensure_2d, allow_nd, ensure_min_samples, ensure_min_features, warn_on_dtype, estimator)
460 " minimum of %d is required%s."
461 % (n_samples, shape_repr, ensure_min_samples,
--> 462 context))
463
464 if ensure_min_features > 0 and array.ndim == 2:
ValueError: Found array with 0 sample(s) (shape=(0, 165)) while a minimum of 1 is required.