f2cfa5fb8e73229a1757acbcc94bab13099de439,PyPi/utils/spaces.py,Discrete,get_idx,#Discrete#Any#,57

Before Change


        return self._values[idx]

    def get_idx(self, value):
        return np.argwhere(self._values == value).ravel()


class MultiDiscrete(Space):

After Change


        else:
            raise ValueError("Wrong dimension for indices array.")

        return np.array(idxs)


class MultiDiscrete(Space):
    def __init__(self, discrete_spaces):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: AIRLab-POLIMI/mushroom
Commit Name: f2cfa5fb8e73229a1757acbcc94bab13099de439
Time: 2017-06-05
Author: carlo.deramo@gmail.com
File Name: PyPi/utils/spaces.py
Class Name: Discrete
Method Name: get_idx


Project Name: AIRLab-POLIMI/mushroom
Commit Name: f2cfa5fb8e73229a1757acbcc94bab13099de439
Time: 2017-06-05
Author: carlo.deramo@gmail.com
File Name: PyPi/utils/spaces.py
Class Name: MultiDiscrete
Method Name: get_idx


Project Name: chainer/chainercv
Commit Name: 90b78b1379b3423aa3b4b5d0de7313f88bda23ab
Time: 2019-02-17
Author: yuyuniitani@gmail.com
File Name: chainercv/utils/mask/mask_to_bbox.py
Class Name:
Method Name: mask_to_bbox