29f961daaf4c3f464dea4563793fdf27d57be09a,innvestigate/utils/keras/graph.py,,reverse_model,#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#,682

Before Change


        // in order to reduce the overhead.

        reverse_mapping = reverse_mappings(layer)
        if reverse_mapping is None:
            reverse_mapping = default_reverse_mapping

        if(inspect.isclass(reverse_mapping) and
           issubclass(reverse_mapping, ReverseMappingBase)):
            reverse_mapping_obj = reverse_mapping(
                layer,

After Change


        // in order to reduce the overhead.

        meta_reverse_mapping = reverse_mappings(layer)
        if meta_reverse_mapping is None:
            reverse_mapping = default_reverse_mapping
        elif(inspect.isclass(meta_reverse_mapping) and
             issubclass(meta_reverse_mapping, ReverseMappingBase)):
            // Mapping is a class
            reverse_mapping_obj = meta_reverse_mapping(
                layer,
                {
                    "model": model,
                    "layer": layer,
                }
            )
            reverse_mapping = reverse_mapping_obj.apply
        elif(callable(meta_reverse_mapping) and
             len(inspect.signature(meta_reverse_mapping).parameters) == 2):
            // Function that returns mapping
            reverse_mapping = meta_reverse_mapping(
                layer,
                {
                    "model": model,
                    "layer": layer,
                }
            )
        else:
            // Nothing meta here
            reverse_mapping = meta_reverse_mapping

        initialized_reverse_mappings[layer] = reverse_mapping

    if project_bottleneck_tensors:
        bottleneck_tensors.update(
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: albermax/innvestigate
Commit Name: 29f961daaf4c3f464dea4563793fdf27d57be09a
Time: 2018-09-26
Author: work.alber.maximilian@gmail.com
File Name: innvestigate/utils/keras/graph.py
Class Name:
Method Name: reverse_model


Project Name: scikit-multiflow/scikit-multiflow
Commit Name: 2b9292146fd2bf7040e7894c2e5b3ccaed7b77bf
Time: 2019-04-30
Author: jacob.montiel@gmail.com
File Name: src/skmultiflow/meta/multi_output_learner.py
Class Name: MultiOutputLearner
Method Name: partial_fit


Project Name: vatlab/SoS
Commit Name: 59f37f513a58724a93623c44b31da147b52801be
Time: 2017-09-02
Author: ben.bog@gmail.com
File Name: src/sos/sos_task.py
Class Name:
Method Name: collect_task_result