Skip to content

Commit deaa0b6

Browse files
committed
Merge pull request #93 from MSusik/py3
examples: thresholder removal
2 parents e62d9f2 + 29fd301 commit deaa0b6

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

beard/similarity/pairs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ def transform(self, X):
331331

332332

333333
class Thresholder(TransformerMixin):
334-
"""Element-wise multiplication on paired data."""
334+
"""Element-wise floating number binarization."""
335335

336336
def __init__(self, threshold):
337337
"""Initialize.

examples/applications/author-disambiguation/distance.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,8 +264,7 @@ def _build_distance_estimator(X, y, verbose=0, ethnicity_estimator=None,
264264
("classifier", EstimatorTransformer(ethnicity_estimator)),
265265
]), groupby=group_by_signature)),
266266
("sigmoid", FuncTransformer(func=expit)),
267-
("combiner", ElementMultiplication()),
268-
("thresholder", Thresholder(0.25))
267+
("combiner", ElementMultiplication())
269268
])))
270269

271270
# Train a classifier on these vectors

0 commit comments

Comments
 (0)