e91bb3c5f2e812846d49b74f701cea1f132129c0,bambi/tests/test_built_models.py,,test_poisson_regression,#Any#,504
Before Change
model1.add("threecats")
model1.add("continuous")
model1.add("dummy")
model1.build(backend="pymc3")
model1.fit(tune=0, draws=1, init=None)
// check that term names agree
assert set(model0.term_names) == set(model1.term_names)
After Change
// build model using fit and pymc3
crossed_data["count"] = (crossed_data["Y"] - crossed_data["Y"].min()).round()
model0 = Model(crossed_data)
model0.fit("count ~ dummy + continuous + threecats", family="poisson", tune=0, draws=1)
// build model using add
model1 = Model(crossed_data)
model1.fit("count ~ threecats + continuous + dummy", family="poisson", tune=0, draws=1)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 2
Instances
Project Name: bambinos/bambi
Commit Name: e91bb3c5f2e812846d49b74f701cea1f132129c0
Time: 2021-02-23
Author: tomicapretto@gmail.com
File Name: bambi/tests/test_built_models.py
Class Name:
Method Name: test_poisson_regression
Project Name: bambinos/bambi
Commit Name: e91bb3c5f2e812846d49b74f701cea1f132129c0
Time: 2021-02-23
Author: tomicapretto@gmail.com
File Name: bambi/tests/test_built_models.py
Class Name:
Method Name: test_cell_means_with_many_group_specific_effects
Project Name: bambinos/bambi
Commit Name: e91bb3c5f2e812846d49b74f701cea1f132129c0
Time: 2021-02-23
Author: tomicapretto@gmail.com
File Name: bambi/tests/test_built_models.py
Class Name:
Method Name: test_many_common_many_group_specific