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
评论列表
文章目录