d41009fb67e289e2c9f124647600a246147b6b86,examples/ma2.py,,get_model,#Any#Any#Any#,36

Before Change



    m = elfi.ElfiModel()

    t1 = elfi.Prior("t1", CustomPrior1, 2, model=m)
    t2 = elfi.Prior("t2", CustomPrior2, t1, 1, model=m)
    Y = elfi.Simulator("MA2", sim_fn, t1, t2, observed=y, model=m)
    S1 = elfi.Summary("S1", autocov, Y, model=m)
    S2 = elfi.Summary("S2", autocov, Y, 2, model=m)
    d = elfi.Discrepancy("d", discrepancy, S1, S2, model=m)

After Change



    m = elfi.ElfiModel()
    elfi.Prior(CustomPrior1, 2, model=m, name="t1")
    elfi.Prior(CustomPrior2, m["t1"], 1, model=m, name="t2")
    elfi.Simulator(sim_fn, m["t1"], m["t2"], observed=y, model=m, name="MA2")
    elfi.Summary(autocov, m["MA2"], model=m, name="S1")
    elfi.Summary(autocov, m["MA2"], 2, model=m, name="S2")
    elfi.Discrepancy(discrepancy, m["S1"], m["S2"], model=m, name="d")
    return m

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: elfi-dev/elfi
Commit Name: d41009fb67e289e2c9f124647600a246147b6b86
Time: 2017-04-05
Author: jarno.lintusaari@aalto.fi
File Name: examples/ma2.py
Class Name:
Method Name: get_model


Project Name: elfi-dev/elfi
Commit Name: d41009fb67e289e2c9f124647600a246147b6b86
Time: 2017-04-05
Author: jarno.lintusaari@aalto.fi
File Name: examples/ma2.py
Class Name:
Method Name: get_model


Project Name: elfi-dev/elfi
Commit Name: d41009fb67e289e2c9f124647600a246147b6b86
Time: 2017-04-05
Author: jarno.lintusaari@aalto.fi
File Name: tests/conftest.py
Class Name:
Method Name: simple_model


Project Name: elfi-dev/elfi
Commit Name: d41009fb67e289e2c9f124647600a246147b6b86
Time: 2017-04-05
Author: jarno.lintusaari@aalto.fi
File Name: tests/conftest.py
Class Name:
Method Name: sleep_model