8e97e631da24177368b9f6ae7cd4b5d4f2baa304,kmodes/util/dissim.py,,jaccard_dissim_label,#Any#Any#,20

Before Change



def jaccard_dissim_label(a, b, **__):
    Jaccard dissimilarity function for label encoded variables
    if (a.astype(int) < 0).any() or (b.astype(int) < 0).any():
        raise ValueError("Missing values detected in Numeric columns.")
    intersect_len = np.empty(len(a), dtype=int)
    union_len = np.empty(len(a), dtype=int)

After Change



def jaccard_dissim_label(a, b, **__):
    Jaccard dissimilarity function for label encoded variables
    if np.isnan(np.array(a, dtype=np.float64)).any() or np.isnan(np.array(b, dtype=np.float64)).any():
        raise ValueError("Missing values detected in Numeric columns.")
    intersect_len = np.empty(len(a), dtype=int)
    union_len = np.empty(len(a), dtype=int)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: nicodv/kmodes
Commit Name: 8e97e631da24177368b9f6ae7cd4b5d4f2baa304
Time: 2019-07-22
Author: BIKASH.PANDEY@springandriver.com
File Name: kmodes/util/dissim.py
Class Name:
Method Name: jaccard_dissim_label


Project Name: scikit-learn-contrib/categorical-encoding
Commit Name: 970491cd9b3cb21b043c22b50b4d09f9dd2481a7
Time: 2018-10-19
Author: jan@motl.us
File Name: category_encoders/woe.py
Class Name: WOEEncoder
Method Name: _score


Project Name: facebookresearch/Horizon
Commit Name: fed370d1b954e61c9f450d8e0b7182dcdcca2cec
Time: 2019-12-29
Author: chenz@instagram.com
File Name: ml/rl/workflow/preprocess_handler.py
Class Name: ParametricDqnPreprocessHandler
Method Name: preprocess