gp_utils.py 文件源码

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

项目:GPfates 作者: Teichlab 项目源码 文件源码
def breakpoint_linear(x, ts, k1, k2, c1):
    '''Function representing a step-wise linear curve with one
    breakpoint located at ts.
    '''
    return np.piecewise(x, [x < ts], [lambda x: k1 * x + c1,
                                      lambda x: k2 * x + (k1 - k2) * ts + c1])
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号