2a266a4f59629caf30f48788bde77b734bd10f2f,src/spn/algorithms/stats/Expectations.py,,,#,35

Before Change



    print(spn_to_str_equation(spn))

    data = np.array([0, 0, 1, 3]).reshape(-1, 1)
    data = np.random.rand(5000).reshape(-1, 1)

    ds_context = Context(meta_types=[MetaType.DISCRETE])
    ds_context = Context(meta_types=[MetaType.REAL])

After Change


    ds_context = Context(meta_types=[MetaType.REAL, MetaType.REAL])
    ds_context.add_domains(evidence)

    expectation = Expectation(spn, set([0]), None, evidence, ds_context)

    print("DISCRETE", "mean should be ", np.mean(data), "is", expectation)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: SPFlow/SPFlow
Commit Name: 2a266a4f59629caf30f48788bde77b734bd10f2f
Time: 2018-05-30
Author: molina@cs.tu-darmstadt.de
File Name: src/spn/algorithms/stats/Expectations.py
Class Name:
Method Name:


Project Name: ray-project/ray
Commit Name: 7a78f4e95960bf8560b0547802f171e2b40e4f6b
Time: 2021-01-26
Author: zhisbug@users.noreply.github.com
File Name: python/ray/util/collective/collective_group/nccl_collective_group.py
Class Name: NCCLGroup
Method Name: __init__


Project Name: biocore/scikit-bio
Commit Name: 16d8a0a6c8e30869a1ba891651806e3601a3bf9c
Time: 2014-09-19
Author: jwdebelius@rl1-2-212-185-dhcp.int.colorado.edu
File Name: skbio/stats/tests/test_power.py
Class Name: PowerAnalysisTest
Method Name: test_get_paired_subsample_fewer


Project Name: sao-eht/eat
Commit Name: 433cd5e10c9af9e74f97a2de2abb3142c36bb6a0
Time: 2017-07-04
Author: ckchan@cfa.harvard.edu
File Name: eat/factor.py
Class Name:
Method Name: factor