3e9d29aa75b6a18620d03cc4a0a3df8116ea38c7,tensorforce/core/distributions/bernoulli.py,Bernoulli,__init__,#Bernoulli#Any#Any#Any#Any#,38

Before Change



        else:
            if len(self.embedding_shape) < 1 or len(self.embedding_shape) > 3:
                raise TensorforceError.unexpected()
            if self.embedding_shape[:-1] == self.action_spec["shape"][:-1]:
                size = self.action_spec["shape"][-1]
            elif self.embedding_shape[:-1] == self.action_spec["shape"]:
                size = 0
            else:
                raise TensorforceError.unexpected()
            self.logit = self.add_module(
                name="logit", module="linear", modules=layer_modules, size=size,
                input_spec=input_spec
            )

After Change



        else:
            if len(self.embedding_shape) < 1 or len(self.embedding_shape) > 3:
                raise TensorforceError.value(
                    name=name, argument="embedding_shape", value=self.embedding_shape,
                    hint="invalid rank"
                )
            if self.embedding_shape[:-1] == self.action_spec["shape"][:-1]:
                size = self.action_spec["shape"][-1]
            elif self.embedding_shape[:-1] == self.action_spec["shape"]:
                size = 0
            else:
                raise TensorforceError.value(
                    name=name, argument="embedding_shape", value=self.embedding_shape,
                    hint="incompatible with action shape"
                )
            self.logit = self.add_module(
                name="logit", module="linear", modules=layer_modules, size=size,
                input_spec=input_spec
            )
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 10

Instances


Project Name: reinforceio/tensorforce
Commit Name: 3e9d29aa75b6a18620d03cc4a0a3df8116ea38c7
Time: 2020-01-18
Author: alexkuhnle@t-online.de
File Name: tensorforce/core/distributions/bernoulli.py
Class Name: Bernoulli
Method Name: __init__


Project Name: reinforceio/tensorforce
Commit Name: 3e9d29aa75b6a18620d03cc4a0a3df8116ea38c7
Time: 2020-01-18
Author: alexkuhnle@t-online.de
File Name: tensorforce/core/distributions/gaussian.py
Class Name: Gaussian
Method Name: __init__


Project Name: reinforceio/tensorforce
Commit Name: 3e9d29aa75b6a18620d03cc4a0a3df8116ea38c7
Time: 2020-01-18
Author: alexkuhnle@t-online.de
File Name: tensorforce/core/distributions/categorical.py
Class Name: Categorical
Method Name: __init__


Project Name: reinforceio/tensorforce
Commit Name: 3e9d29aa75b6a18620d03cc4a0a3df8116ea38c7
Time: 2020-01-18
Author: alexkuhnle@t-online.de
File Name: tensorforce/core/distributions/bernoulli.py
Class Name: Bernoulli
Method Name: __init__


Project Name: reinforceio/tensorforce
Commit Name: 3e9d29aa75b6a18620d03cc4a0a3df8116ea38c7
Time: 2020-01-18
Author: alexkuhnle@t-online.de
File Name: tensorforce/core/distributions/beta.py
Class Name: Beta
Method Name: __init__