问题描述
对于机器学习项目,我需要标记一堆集群。我们小组有使用 GUI 的想法,以便学生可以轻松掌握它。
import bokeh # 2.0.1
import holoviews as hv
import numpy as np
import panel as pn
hv.extension('bokeh')
hv_tab = hv.Table(df)
points = hv.Points(hv_tab.to.points(['x','y'],['url','text'])).opts(size=10,min_height=500,tools=['hover','Box_select','lasso_select','tap'])
annotator = hv.annotate.instance()
layout = annotator(hv.element.tiles.Wikipedia() * points,annotations=['Label'],name="Point Annotations")
print(layout)
我可以使用悬停和 BoxSelect 工具在右侧窗格中突出显示。 但是有没有办法只显示集群中的点并一次性标记它们?
我尝试过使用流模块,但找不到选择框/套索/等范围内的所有点的方法。并注释集群的所有点。
有没有办法根据坐标过滤显示的结果?有没有办法一次编辑多个点?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)