57873938a7a032f5d428c2b094d7f88c3dd353c3,cde/helpers.py,,sample_center_points,#Any#Any#Any#Any#Any#,32

Before Change


    df = pd.concat([dist, y_s], axis=1).sort_values("distance")

    // Y sorted by their distance to the
    Y = df.as_matrix(np.arange(Y.shape[1]))
    centers = np.array([Y[0], Y[-1]])
    Y = Y[1:-1]
    // adjust k such that the final output has size k
    k -= 2

After Change


    df = pd.concat([dist, y_s], axis=1).sort_values("distance")

    // Y sorted by their distance to the
    Y = df[np.arange(Y.shape[1])].values
    centers = np.array([Y[0], Y[-1]])
    Y = Y[1:-1]
    // adjust k such that the final output has size k
    k -= 2
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: freelunchtheorem/Conditional_Density_Estimation
Commit Name: 57873938a7a032f5d428c2b094d7f88c3dd353c3
Time: 2018-08-18
Author: jonas.rothfuss@gmx.de
File Name: cde/helpers.py
Class Name:
Method Name: sample_center_points


Project Name: nilmtk/nilmtk
Commit Name: ef61bd954f975ee108ffe88482c5ad3207d222fe
Time: 2018-09-08
Author: 10246101+PMeira@users.noreply.github.com
File Name: nilmtk/dataset_converters/eco/convert_eco.py
Class Name:
Method Name: convert_eco


Project Name: scikit-learn-contrib/sklearn-pandas
Commit Name: a4a2a4c55bbd5dd13ddb87f2ef95551996631c76
Time: 2015-11-07
Author: israel.saeta@dukebody.com
File Name: sklearn_pandas/__init__.py
Class Name: DataFrameMapper
Method Name: _get_col_subset