Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #98778

What is '@' for

X-Received by 10.140.175.139 with SMTP id v133mr20266007qhv.12.1447455860710; Fri, 13 Nov 2015 15:04:20 -0800 (PST)
X-Received by 10.50.22.9 with SMTP id z9mr129262ige.1.1447455860679; Fri, 13 Nov 2015 15:04:20 -0800 (PST)
Path csiph.com!optima2.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!i2no2849213igv.0!news-out.google.com!l1ni3461igd.0!nntp.google.com!i2no2849206igv.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups comp.lang.python
Date Fri, 13 Nov 2015 15:04:20 -0800 (PST)
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=50.100.117.144; posting-account=SZ_svQkAAACWRFG2bDA-zgq8ILyl4-vo
NNTP-Posting-Host 50.100.117.144
User-Agent G2/1.0
MIME-Version 1.0
Message-ID <b4254670-28c9-4e2c-a221-a27c0d6f62e9@googlegroups.com> (permalink)
Subject What is '@' for
From fl <rxjwg98@gmail.com>
Injection-Date Fri, 13 Nov 2015 23:04:20 +0000
Content-Type text/plain; charset=ISO-8859-1
Xref csiph.com comp.lang.python:98778

Show key headers only | View raw


Hi,

I read the following code snippet. A question is here about '@'.
I don't find the answer online yet.

What function is it here?

BTW, below is for printing out?
    """theta = logit^{-1}(a+b)"""

but I don't see it is printed when the following could have been called.

Are you sure it would be printed out?


Thanks,





.................
import pymc
import numpy as np

n = 5*np.ones(4,dtype=int)
x = np.array([-.86,-.3,-.05,.73])
alpha = pymc.Normal('alpha',mu=0,tau=.01)
beta = pymc.Normal('beta',mu=0,tau=.01)

@pymc.deterministic
def theta(a=alpha, b=beta):
    """theta = logit^{-1}(a+b)"""
    return pymc.invlogit(a+b*x)
    
d = pymc.Binomial('d', n=n, p=theta, value=np.array([0.,1.,3.,5.]),\
    observed=True)

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

What is '@' for fl <rxjwg98@gmail.com> - 2015-11-13 15:04 -0800
  Re: What is '@' for Chris Angelico <rosuav@gmail.com> - 2015-11-14 10:14 +1100
    Re: What is '@' for Tim Daneliuk <tundraBOGUS@tundraware.com> - 2015-11-13 17:43 -0600
  Re: What is '@' for Terry Reedy <tjreedy@udel.edu> - 2015-11-13 18:43 -0500
  Re: What is '@' for Dave Farrance <df@see.replyto.invalid> - 2015-11-14 09:14 +0000

csiph-web