b78eaa3d258110a02d3c462f29a0e22f5ef56ce9,autosklearn/metalearning/metafeatures/metafeatures.py,ClassProbabilitySTD,_calculate,#ClassProbabilitySTD#Any#Any#Any#,335

Before Change


        occurence_dict = helper_functions.get_value("ClassOccurences")
        occurences = np.array([occurrence for occurrence in occurence_dict.itervalues()],
                             dtype=np.float64)
        return (occurences / y.size).std()

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Reif, A Comprehensive Dataset for Evaluating Approaches of various Meta-Learning Tasks
// defines these five metafeatures as simple metafeatures, but they could also

After Change


        if len(y.shape) == 2:
            stds = []
            for i in range(y.shape[1]):
                std = np.array(
                    [occurrence for occurrence in occurence_dict[
                                                      i].itervalues()],
                    dtype=np.float64)
                std = (std / y.shape[0]).std()
                stds.append(std)
            return np.mean(stds)
        else:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: automl/auto-sklearn
Commit Name: b78eaa3d258110a02d3c462f29a0e22f5ef56ce9
Time: 2015-11-13
Author: feurerm@informatik.uni-freiburg.de
File Name: autosklearn/metalearning/metafeatures/metafeatures.py
Class Name: ClassProbabilitySTD
Method Name: _calculate


Project Name: rlworkgroup/garage
Commit Name: 563acaf48cf475f4b125fd32374c6bb566049551
Time: 2019-11-06
Author: 43084978+yonghyuc@users.noreply.github.com
File Name: src/garage/torch/algos/vpg.py
Class Name: VPG
Method Name: process_samples


Project Name: rail-berkeley/softlearning
Commit Name: 5c81c1c3138d296b8ac5f836e118cfb849b7bf5d
Time: 2018-05-22
Author: haarnoja@berkeley.edu
File Name: softqlearning/algos/softqlearning.py
Class Name: SoftQLearning
Method Name: _evaluate