964029ec58213aec07fd87a0463c07746a89375c,pymc3/examples/logistic.py,,,#,26

Before Change


    import theano.tensor as t
    return t.exp(x) / (1 + t.exp(x))

model = Model()

with model:
    effects = Normal("effects", mu=0, tau=2. ** -2, shape=(1, npred))
    p = tinvlogit(sum(effects * predictors, 1))

    o = Bernoulli("o", p, observed=outcomes)

def run(n=3000):
    if n == "short":
        n = 50
    with model:

After Change



        trace = sample(n, step, start)

if __name__ == "__main__":
    run()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 19

Instances


Project Name: pymc-devs/pymc3
Commit Name: 964029ec58213aec07fd87a0463c07746a89375c
Time: 2016-05-27
Author: chris.fonnesbeck@vanderbilt.edu
File Name: pymc3/examples/logistic.py
Class Name:
Method Name:


Project Name: pymc-devs/pymc3
Commit Name: 964029ec58213aec07fd87a0463c07746a89375c
Time: 2016-05-27
Author: chris.fonnesbeck@vanderbilt.edu
File Name: pymc3/examples/logistic.py
Class Name:
Method Name:


Project Name: pymc-devs/pymc3
Commit Name: 964029ec58213aec07fd87a0463c07746a89375c
Time: 2016-05-27
Author: chris.fonnesbeck@vanderbilt.edu
File Name: pymc3/examples/gelman_bioassay.py
Class Name:
Method Name:


Project Name: pymc-devs/pymc3
Commit Name: 964029ec58213aec07fd87a0463c07746a89375c
Time: 2016-05-27
Author: chris.fonnesbeck@vanderbilt.edu
File Name: pymc3/examples/python_vs_c.py
Class Name:
Method Name: