cefe625f707d3fd0241f4ad682d2d991233db200,tmtoolkit/lda_utils/common.py,,results_by_parameter,#Any#Any#Any#Any#Any#Any#Any#,174

Before Change


        return []

    if sort_by not in ("param", "result"):
        raise ValueError("`sort_by` must be either "param" to order by parameter value or "result" to order by"
                         " evaluation result value.")

    if crossvalid_use_measurment not in ("validation", "training"):
        raise ValueError("`crossvalid_use_measurment` must be either "validation" or "training" to use the validation "
                         "or training measurements.")

After Change


        if sort_by:
            sorted_ind = argsort([r[sort_by] for r in metric_results])
        else:
            sorted_ind = argsort(params)

        if sort_desc:
            sorted_ind = reversed(sorted_ind)

        measurements = tuples

    return [measurements[i] for i in sorted_ind]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: WZBSocialScienceCenter/tmtoolkit
Commit Name: cefe625f707d3fd0241f4ad682d2d991233db200
Time: 2017-10-12
Author: markus.konrad@wzb.eu
File Name: tmtoolkit/lda_utils/common.py
Class Name:
Method Name: results_by_parameter


Project Name: flow-project/flow
Commit Name: 5f6bfb974e70d43bd4a7083512ca4f7e6134f774
Time: 2017-08-11
Author: akreidieh@gmail.com
File Name: cistar-dev/cistar/core/base_env.py
Class Name: SumoEnvironment
Method Name: sort_by_position


Project Name: scikit-learn/scikit-learn
Commit Name: f6b8bc0eceadac57c9d748fc307bfe82b68cee96
Time: 2020-05-19
Author: venky.yuvy@gmail.com
File Name: sklearn/feature_selection/_rfe.py
Class Name: RFE
Method Name: _fit