ddf383126170561049c33b95821b5bf35971147d,src/spn/algorithms/Validity.py,,is_consistent,#Any#,9

Before Change


            return False, "children of (prod) node %s don" have exclusive scope" % (node.id)

    for c in node.children:
        consistent, err = is_consistent(c)
        if not consistent:
            return consistent, err

After Change


        if len(prod_node.children) == 0:
            return False, "Product node %s has no children" % (prod_node.id)

        allchildscope.clear()
        sum_features = 0
        for child in prod_node.children:
            sum_features += len(child.scope)
            allchildscope.update(child.scope)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: SPFlow/SPFlow
Commit Name: ddf383126170561049c33b95821b5bf35971147d
Time: 2018-06-08
Author: molina@cs.tu-darmstadt.de
File Name: src/spn/algorithms/Validity.py
Class Name:
Method Name: is_consistent


Project Name: kevinzakka/recurrent-visual-attention
Commit Name: f466871be6ee80533c997cf6c958aa41a697936f
Time: 2018-01-22
Author: kevinarmandzakka@gmail.com
File Name: trainer.py
Class Name: Trainer
Method Name: train_one_epoch


Project Name: MorvanZhou/Reinforcement-learning-with-tensorflow
Commit Name: 11a884b264b7f511c3dcfe4f19dbbca0842da7ee
Time: 2017-08-13
Author: morvanzhou@gmail.com
File Name: contents/12_Proximal_Policy_Optimization/DPPO.py
Class Name:
Method Name: