MadLib._internal.labeler.CustomLabeler

class MadLib._internal.labeler.CustomLabeler(a_df, b_df, id_col: str = '_id')[source]

Bases: Labeler

__init__(a_df, b_df, id_col: str = '_id')[source]

Methods

__init__(a_df, b_df[, id_col])

label_pair(row1, row2)

label the pair (id1, id2)

abstractmethod label_pair(row1, row2)[source]

label the pair (id1, id2)

Returns:

float

Return type:

the label for the pair