main.py 文件源码

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

项目:house-price-map 作者: andyljones 项目源码 文件源码
def get_relative_prices(walking_time, smoothed_prices):
    x = walking_time.flatten()
    y = smoothed_prices.flatten()
    mask = sp.isnan(x) | sp.isnan(y)

    spline = sp.interpolate.UnivariateSpline(x[~mask], y[~mask], s=len(x))
    v = spline(x)

    rel = (y - v).reshape(walking_time.shape)

    return rel
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号