19985b2eadb39a85e1787298c5e8e9d670bd55f3,pyod/models/combination.py,,average,#,212

Before Change


    scores = check_array(scores)

    if estimator_weight is not None:
        estimator_weight = column_or_1d(estimator_weight).reshape(1, -1)
        assert_equal(scores.shape[1], estimator_weight.shape[1])

        // (d1*w1 + d2*w2 + ...+ dn*wn)/(w1+w2+...+wn)
        // generated weighted scores

After Change


    scores = check_array(scores)

    if estimator_weights is not None:
        if estimator_weights.shape != (1, scores.shape[1]):
            raise ValueError(
                "Bad input shape of estimator_weight: (1, {score_shape}),"
                "and {estimator_weights} received".format(
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: yzhao062/pyod
Commit Name: 19985b2eadb39a85e1787298c5e8e9d670bd55f3
Time: 2019-07-17
Author: zhaoy@cmu.edu
File Name: pyod/models/combination.py
Class Name:
Method Name: average


Project Name: yzhao062/pyod
Commit Name: ac188ae1d993fdd970e5c550d5cb4589036aa08d
Time: 2018-12-28
Author: yuezhao@cs.toronto.edu
File Name: examples/abod_example.py
Class Name:
Method Name: visualize


Project Name: yzhao062/pyod
Commit Name: 12426e5f8fd983ce83d6cf4ef2c713a0acad9b7e
Time: 2018-12-28
Author: yuezhao@cs.toronto.edu
File Name: examples/temp_do_not_use.py
Class Name:
Method Name: visualize