bayesian.py 文件源码

python
阅读 35 收藏 0 点赞 0 评论 0

项目:gullikson-scripts 作者: kgullikson88 项目源码 文件源码
def model(self, p, x):
        """
        A parameteric model to fit y = f(x, p)
        This can be overridden in a class that inherits from this one to make a new model

        Parameters:
        ===========
        - p:       Any iterable
                   The model parameters

        - x:       numpy.ndarray
                   The dependent variable

        Returns:
        ========
        A model at each of the x locations
        """
        return np.poly1d(p)(x)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号