-
Notifications
You must be signed in to change notification settings - Fork 216
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gazetteer_example.py error occurred at the active learning step #130
Comments
I had the same error while running the The Traceback is:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Below are the error messages:
Environment: Python 3.7
ValueError Traceback (most recent call last)
/tmp/ipykernel_5240/2454607948.py in
35 # print('starting active labeling...')
36
---> 37 dedupe.convenience.console_label(gazetteer)
38
39 gazetteer.train()
~/anaconda3/envs/conda_python37_env/lib/python3.7/site-packages/dedupe/convenience.py in console_label(deduper)
148 try:
149 if not unlabeled:
--> 150 unlabeled = deduper.uncertain_pairs()
151
152 record_pair = unlabeled.pop()
~/anaconda3/envs/conda_python37_env/lib/python3.7/site-packages/dedupe/api.py in uncertain_pairs(self)
1166 self.active_learner is not None
1167 ), "Please initialize with the prepare_training method"
-> 1168 return [self.active_learner.pop()]
1169
1170 def mark_pairs(self, labeled_pairs: TrainingData) -> None:
~/anaconda3/envs/conda_python37_env/lib/python3.7/site-packages/dedupe/labeler.py in pop(self)
329
330 prob_l = [learner.candidate_scores() for learner in self._learners]
--> 331 probs = numpy.concatenate(prob_l, axis=1)
332
333 # where do the classifers disagree?
<array_function internals> in concatenate(*args, **kwargs)
ValueError: all the input array dimensions for the concatenation axis must match exactly, but along dimension 0, the array at index 0 has size 4998 and the array at index 1 has size 4996
The text was updated successfully, but these errors were encountered: