c90f5e3b772de1fea494b6f4d130581ca2184e99,src/spn/algorithms/stats/Expectations.py,,Expectation,#Any#Any#Any#Any#Any#Any#,32
Before Change
return likelihood(node, evidence)
node_expectations = {type(leaf): leaf_expectation for leaf in get_nodes_by_type(marg_spn, Leaf)}
node_expectations.update({Sum: lambda x, c, input, dtype: sum_expectation(x, c, input, moment=moment, dtype=dtype),
Product: lambda x, c, input, dtype: prod_expectation(x, c, input, moment=moment, dtype=dtype)})
After Change
// if we have evidence, we want to compute the conditional expectation
else:
raise NotImplementedError("Please use a conditional SPN to calculated conditional expectations")
return expectation
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: SPFlow/SPFlow
Commit Name: c90f5e3b772de1fea494b6f4d130581ca2184e99
Time: 2018-09-25
Author: claas@voelcker.net
File Name: src/spn/algorithms/stats/Expectations.py
Class Name:
Method Name: Expectation
Project Name: BindsNET/bindsnet
Commit Name: d6ff6aed66ebc20cbc9694ee732c2a7e2d51f409
Time: 2019-06-13
Author: jessehagenaars@gmail.com
File Name: bindsnet/pipeline/base_pipeline.py
Class Name:
Method Name: recursive_to
Project Name: brian-team/brian2
Commit Name: 49dfdbd2da65978cef30011da0cfa6e0fa0ea334
Time: 2016-05-15
Author: raymon92@gmail.com
File Name: brian2/importexport/explicit.py
Class Name: PandasImportExport
Method Name: export_data