当前位置: 首页>>代码示例>>Python>>正文


Python util.get_variable_name函数代码示例

本文整理汇总了Python中pymc3.util.get_variable_name函数的典型用法代码示例。如果您正苦于以下问题:Python get_variable_name函数的具体用法?Python get_variable_name怎么用?Python get_variable_name使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了get_variable_name函数的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: _repr_latex_

 def _repr_latex_(self, name=None, dist=None):
     if dist is None:
         dist = self
     k = dist.k
     tau_e = dist.tau_e
     return r'${} \sim \text{{AR1}}(\mathit{{k}}={}, \mathit{{tau_e}}={})$'.format(name,
              get_variable_name(k), get_variable_name(tau_e))
开发者ID:springcoil,项目名称:pymc3,代码行数:7,代码来源:timeseries.py

示例2: _repr_latex_

 def _repr_latex_(self, name=None, dist=None):
     if dist is None:
         dist = self
     nu = dist.nu
     V = dist.V
     return r'${} \sim \text{{Wishart}}(\mathit{{nu}}={}, \mathit{{V}}={})$'.format(name,
                                             get_variable_name(nu),
                                             get_variable_name(V))
开发者ID:aasensio,项目名称:pymc3,代码行数:8,代码来源:multivariate.py

示例3: _repr_latex_

 def _repr_latex_(self, name=None, dist=None):
     if dist is None:
         dist = self
     q = dist.q
     beta = dist.beta
     return r'${} \sim \text{{DiscreteWeibull}}(\mathit{{q}}={}, \mathit{{beta}}={})$'.format(name,
                                             get_variable_name(q),
                                             get_variable_name(beta))
开发者ID:springcoil,项目名称:pymc3,代码行数:8,代码来源:discrete.py

示例4: _repr_latex_

 def _repr_latex_(self, name=None, dist=None):
     if dist is None:
         dist = self
     mu = dist.mu
     sd = dist.sd
     return r'${} \sim \text{{GaussianRandomWalk}}(\mathit{{mu}}={}, \mathit{{sd}}={})$'.format(name,
                                             get_variable_name(mu),
                                             get_variable_name(sd))
开发者ID:aasensio,项目名称:pymc3,代码行数:8,代码来源:timeseries.py

示例5: _repr_latex_

 def _repr_latex_(self, name=None, dist=None):
     if dist is None:
         dist = self
     name_eta = get_variable_name(dist.eta)
     name_cutpoints = get_variable_name(dist.cutpoints)
     return (r'${} \sim \text{{OrderedLogistic}}'
             r'(\mathit{{eta}}={}, \mathit{{cutpoints}}={}$'
             .format(name, name_eta, name_cutpoints))
开发者ID:brandonwillard,项目名称:pymc3,代码行数:8,代码来源:discrete.py

示例6: _repr_latex_

 def _repr_latex_(self, name=None, dist=None):
     if dist is None:
         dist = self
     alpha = dist.alpha
     beta = dist.beta
     name = r'\text{%s}' % name
     return r'${} \sim \text{{NegativeBinomial}}(\mathit{{alpha}}={},~\mathit{{beta}}={})$'.format(name,
                                             get_variable_name(alpha),
                                             get_variable_name(beta))
开发者ID:bballamudi,项目名称:pymc3,代码行数:9,代码来源:discrete.py

示例7: _repr_latex_

 def _repr_latex_(self, name=None, dist=None):
     if dist is None:
         dist = self
     mu = dist.mu
     sigma = dist.sigma
     name = r'\text{%s}' % name
     return r'${} \sim \text{{GaussianRandomWalk}}(\mathit{{mu}}={},~\mathit{{sigma}}={})$'.format(name,
                                             get_variable_name(mu),
                                             get_variable_name(sigma))
开发者ID:aloctavodia,项目名称:pymc3,代码行数:9,代码来源:timeseries.py

示例8: _repr_latex_

 def _repr_latex_(self, name=None, dist=None):
     if dist is None:
         dist = self
     mu = dist.mu
     w = dist.w
     sd = dist.sd
     return r'${} \sim \text{{NormalMixture}}(\mathit{{w}}={}, \mathit{{mu}}={}, \mathit{{sigma}}={})$'.format(name,
                                             get_variable_name(w),
                                             get_variable_name(mu),
                                             get_variable_name(sd))
开发者ID:aasensio,项目名称:pymc3,代码行数:10,代码来源:mixture.py

示例9: _repr_latex_

 def _repr_latex_(self, name=None, dist=None):
     if dist is None:
         dist = self
     n = dist.n
     p = dist.p
     psi = dist.psi
     return r'${} \sim \text{{ZeroInflatedBinomial}}(\mathit{{n}}={}, \mathit{{p}}={}, \mathit{{psi}}={})$'.format(name,
                                             get_variable_name(n),
                                             get_variable_name(p),
                                             get_variable_name(psi))
开发者ID:aasensio,项目名称:pymc3,代码行数:10,代码来源:discrete.py

示例10: _repr_cov_params

 def _repr_cov_params(self, dist=None):
     if dist is None:
         dist = self
     if self._cov_type == 'chol':
         chol = get_variable_name(self.chol)
         return r'\mathit{{chol}}={}'.format(chol)
     elif self._cov_type == 'cov':
         cov = get_variable_name(self.cov)
         return r'\mathit{{cov}}={}'.format(cov)
     elif self._cov_type == 'tau':
         tau = get_variable_name(self.tau)
         return r'\mathit{{tau}}={}'.format(tau)
开发者ID:aasensio,项目名称:pymc3,代码行数:12,代码来源:multivariate.py


注:本文中的pymc3.util.get_variable_name函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。