63804d7dc6089341eca082f77e6f3d99fbf17f6d,src/spn/algorithms/Inference.py,,prod_log_likelihood,#Any#Any#Any#Any#,29

Before Change


def prod_log_likelihood(node, children, data=None, dtype=np.float64):
    llchildren = np.concatenate(children, axis=1)
    assert llchildren.dtype == dtype
    return np.sum(llchildren, axis=1).reshape(-1, 1)


def prod_likelihood(node, children, data=None, dtype=np.float64):
    llchildren = np.concatenate(children, axis=1)

After Change


def prod_log_likelihood(node, children, data=None, dtype=np.float64):
    llchildren = np.concatenate(children, axis=1)
    assert llchildren.dtype == dtype
    pll = np.sum(llchildren, axis=1).reshape(-1, 1)
    pll[np.isinf(pll)] = FMIN
    return pll


def prod_likelihood(node, children, data=None, dtype=np.float64):
    llchildren = np.concatenate(children, axis=1)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: SPFlow/SPFlow
Commit Name: 63804d7dc6089341eca082f77e6f3d99fbf17f6d
Time: 2019-01-17
Author: molina@cs.tu-darmstadt.de
File Name: src/spn/algorithms/Inference.py
Class Name:
Method Name: prod_log_likelihood


Project Name: SPFlow/SPFlow
Commit Name: 8f5a80b0b53e116f9181551f208e6998a5e57db4
Time: 2019-01-17
Author: molina@cs.tu-darmstadt.de
File Name: src/spn/algorithms/Inference.py
Class Name:
Method Name: log_node_likelihood


Project Name: rodluger/starry
Commit Name: b9fe4bd7cbc1113160bb3dd1edc290802d660530
Time: 2019-04-23
Author: rodluger@gmail.com
File Name: starry/Map/doppler.py
Class Name: DopplerBase
Method Name: rv