2c0dd1a02309507c6fa547c62f97979c5559d4f6,kmodes/kprototypes.py,,k_prototypes,#Any#Any#Any#Any#Any#Any#Any#Any#,105

Before Change


    // Convert to numpy arrays, if needed.
    Xnum = np.asanyarray(X[:, [ii for ii in range(X.shape[1])
                               if ii not in categorical]]).astype(float)
    Xcat = np.asanyarray(X[:, categorical])

    // Estimate a good value for gamma, which determines the weighing of
    // categorical values in clusters (see Huang [1997]).
    if gamma is None:

After Change


    npoints = X.shape[0]
    assert n_clusters < npoints, "More clusters than data points?"

    Xnum, Xcat = _split_num_cat(X, categorical)

    // Estimate a good value for gamma, which determines the weighing of
    // categorical values in clusters (see Huang [1997]).
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 3

Instances


Project Name: nicodv/kmodes
Commit Name: 2c0dd1a02309507c6fa547c62f97979c5559d4f6
Time: 2015-05-11
Author: nico.devos@autogrid.com
File Name: kmodes/kprototypes.py
Class Name:
Method Name: k_prototypes


Project Name: metric-learn/metric-learn
Commit Name: 3e38fe09a87e6ef05289f3cbe6ffa03e2dc716e8
Time: 2017-03-02
Author: perimosocordiae@gmail.com
File Name: metric_learn/lfda.py
Class Name: LFDA
Method Name: _process_inputs


Project Name: metric-learn/metric-learn
Commit Name: 3e38fe09a87e6ef05289f3cbe6ffa03e2dc716e8
Time: 2017-03-02
Author: perimosocordiae@gmail.com
File Name: metric_learn/rca.py
Class Name: RCA
Method Name: _process_data


Project Name: fgnt/pb_bss
Commit Name: 4c35f8992242ba85a60234099da30a7a85d3a7aa
Time: 2019-08-01
Author: mail@lukas-drude.de
File Name: pb_bss/evaluation/module_si_sdr.py
Class Name:
Method Name: si_sdr


Project Name: metric-learn/metric-learn
Commit Name: 9f732502dbf778c8c579cffc3927f619ed8f4089
Time: 2019-05-13
Author: 31916524+wdevazelhes@users.noreply.github.com
File Name: metric_learn/rca.py
Class Name: RCA
Method Name: fit