b23d308a30d8986bdbb66b54320c8d0ac6a457d4,tensorforce/util.py,,deep_disjoint_update,#Any#Any#,154

Before Change


            target[key] = value
        elif isinstance(target[key], dict):
            if not isinstance(value, dict):
                raise TensorforceError.unexpected()
            deep_disjoint_update(target=target[key], source=value)
        elif target[key] != value:
            raise TensorforceError.mismatch(
                name="spec", argument=key, value1=target[key], value2=value

After Change


                    name="spec", argument=key, value1=target[key], value2=value
                )
            deep_disjoint_update(target=target[key], source=value)
        elif is_iterable(x=target[key]):
            if not is_iterable(x=value) or len(target[key]) != len(value):
                raise TensorforceError.mismatch(
                    name="spec", argument=key, value1=target[key], value2=value
                )
            for x, y in zip(target[key], value):
                if x != y:
                    raise TensorforceError.mismatch(
                        name="spec", argument=key, value1=target[key], value2=value
                    )
        elif target[key] != value:
            raise TensorforceError.mismatch(
                name="spec", argument=key, value1=target[key], value2=value
            )
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: reinforceio/tensorforce
Commit Name: b23d308a30d8986bdbb66b54320c8d0ac6a457d4
Time: 2019-12-02
Author: alexkuhnle@t-online.de
File Name: tensorforce/util.py
Class Name:
Method Name: deep_disjoint_update


Project Name: reinforceio/tensorforce
Commit Name: f19c4f5cfecdccd65a65f298fd26f17b9d21ad52
Time: 2019-06-13
Author: alexkuhnle@t-online.de
File Name: tensorforce/core/models/policy_model.py
Class Name: PolicyModel
Method Name: __init__


Project Name: reinforceio/tensorforce
Commit Name: 8b61a18641fdaa14601d0ed2e3337c8ee7b65f7c
Time: 2020-03-22
Author: alexkuhnle@t-online.de
File Name: tensorforce/core/networks/network.py
Class Name: LayerbasedNetwork
Method Name: internals_spec