5f12688e83bfb0acadb6b8ab56c293ed123e3a7a,src/spn/algorithms/Sampling.py,,sample_prod,#Any#Any#Any#Any#Any#,18

Before Change




def sample_prod(node, input_vals, data=None, lls_per_node=None, rand_gen=None):
    if len(input_vals) == 0:
        return None
    return [input_vals] * len(node.children)


def sample_sum(node, input_vals, data=None, lls_per_node=None, rand_gen=None):

After Change




def sample_prod(node, input_vals, data=None, lls_per_node=None, rand_gen=None):
    if input_vals is None:
        return None

    input_vals = merge_input_vals(input_vals)

    children_row_ids = {}

    for i, c in enumerate(node.children):
        children_row_ids[c] = input_vals

    return children_row_ids

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 11

Instances


Project Name: SPFlow/SPFlow
Commit Name: 5f12688e83bfb0acadb6b8ab56c293ed123e3a7a
Time: 2019-03-14
Author: molina@cs.tu-darmstadt.de
File Name: src/spn/algorithms/Sampling.py
Class Name:
Method Name: sample_prod


Project Name: SPFlow/SPFlow
Commit Name: 5f12688e83bfb0acadb6b8ab56c293ed123e3a7a
Time: 2019-03-14
Author: molina@cs.tu-darmstadt.de
File Name: src/spn/algorithms/MPE.py
Class Name:
Method Name: mpe_prod


Project Name: SPFlow/SPFlow
Commit Name: 5f12688e83bfb0acadb6b8ab56c293ed123e3a7a
Time: 2019-03-14
Author: molina@cs.tu-darmstadt.de
File Name: src/spn/algorithms/Sampling.py
Class Name:
Method Name: sample_sum


Project Name: SPFlow/SPFlow
Commit Name: 5f12688e83bfb0acadb6b8ab56c293ed123e3a7a
Time: 2019-03-14
Author: molina@cs.tu-darmstadt.de
File Name: src/spn/algorithms/MPE.py
Class Name:
Method Name: mpe_sum