75284b46aca2d78bcc1b80739b2ed283b8ca457d,tensorforce/models/distribution_model.py,DistributionModel,get_components,#DistributionModel#,274

Before Change


        return model_summaries + network_summaries + distribution_summaries

    def get_components(self):
        model_components = super(DistributionModel, self).get_components()
        return model_components + [self.network] + list(self.distributions.values())

After Change


        return model_summaries + network_summaries + distribution_summaries

    def get_components(self):
        result = dict(super(DistributionModel, self).get_components())
        result[DistributionModel.COMPONENT_NETWORK] = self.network
        for action, distribution in self.distributions.items():
            result["%s_%s" % (DistributionModel.COMPONENT_DISTRIBUTION, action)] = distribution
        if len(self.distributions) == 1:
            result[DistributionModel.COMPONENT_DISTRIBUTION] = next(iter(self.distributions.values()))
        return result
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 31

Instances


Project Name: reinforceio/tensorforce
Commit Name: 75284b46aca2d78bcc1b80739b2ed283b8ca457d
Time: 2018-03-17
Author: janislav@vmware.com
File Name: tensorforce/models/distribution_model.py
Class Name: DistributionModel
Method Name: get_components


Project Name: reinforceio/tensorforce
Commit Name: 75284b46aca2d78bcc1b80739b2ed283b8ca457d
Time: 2018-03-17
Author: janislav@vmware.com
File Name: tensorforce/models/dpg_target_model.py
Class Name: DPGTargetModel
Method Name: get_components


Project Name: reinforceio/tensorforce
Commit Name: 75284b46aca2d78bcc1b80739b2ed283b8ca457d
Time: 2018-03-17
Author: janislav@vmware.com
File Name: tensorforce/models/distribution_model.py
Class Name: DistributionModel
Method Name: get_components


Project Name: reinforceio/tensorforce
Commit Name: 75284b46aca2d78bcc1b80739b2ed283b8ca457d
Time: 2018-03-17
Author: janislav@vmware.com
File Name: tensorforce/models/q_model.py
Class Name: QModel
Method Name: get_components