mapswipe_analysis.py 文件源码

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

项目:mapswipe-ml 作者: philiptromans 项目源码 文件源码
def cell_renderer(quadkey, solution):
    retVal = ""
    retVal = "Quadkey: <a href=\"{}\" target=\"_blank\">{}</a><br>".format(quadkey_to_url(quadkey), quadkey)
    if solution is not None:
        retVal += "Officially: {}<br>".format(solution.ground_truth[quadkey])
        retVal += "Predicted class: " + solution.predicted_class(quadkey) + "<br>"

    retVal += "<img align=\"center\" src=\"mapswipe_working_dir/{}\"/>".format(os.path.relpath(mapswipe.get_tile_path(quadkey),
                                                                         os.path.join(str(Path.home()),'.mapswipe')))
    if solution is not None:
        retVal += "PV:" + str(solution.prediction_vectors[quadkey])

    return retVal
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号