基于灵敏度分析的分割模型解释库

misas的Python项目详细描述


基于灵敏度分析的分段模型解释

Interpret and explain your segmetation models through analysing their sensitivity to defined alterations of the input

当前输入更改包括:

  • 旋转
  • 种植

安装

pip install misas

如何使用

kaggle数据示例

fromfastai.visionimport*
^{pr2}$

旋转

plot_series(get_rotation_series(img(),trainedModel))

png

results=eval_rotation_series(img(),trueMask(),trainedModel)plt.plot(results['deg'],results['c1'])plt.plot(results['deg'],results['c2'])plt.axis([0,360,0,1])
[0, 360, 0, 1]

png

可以使用交互式元素手动探索旋转的影响

fromipywidgetsimportinteract,interactive,fixed,interact_manualimportipywidgetsaswidgets
rotation_series=get_rotation_series(img(),trainedModel,step=10)
defplot_rotation_frame(deg):returnplot_frame(*rotation_series[int(deg/10)],figsize=(10,10))
#hide_outputinteract(plot_rotation_frame,deg=widgets.IntSlider(min=0,max=360,step=10,value=90,continuous_update=False))

还有许多其他的转换可以尝试(例如裁剪、亮度、对比度等)以及MR特定的工件。在

概述

这是misas如何工作的示意性概述。用惊人的Excalidraw创建。 schema

徽标

标志由Markus J.Ankenbrand设计,使用:

归属

这个项目的灵感来自于"Is it a Duck or Rabbit" tweet作者@minimaxir。同时查看corresponding repo。在

%%html<blockquoteclass="twitter-tweet"><plang="en"dir="ltr">IsitaDuckoraRabbit?ForGoogleCloudVision,itdependshowtheimageisrotated.<ahref="https://t.co/a30VzjEXVv">pic.twitter.com/a30VzjEXVv</a></p>&mdash;MaxWoolf(@minimaxir)<ahref="https://twitter.com/minimaxir/status/1103676561809539072?ref_src=twsrc%5Etfw">March7,2019</a></blockquote><scriptasyncsrc="https://platform.twitter.com/widgets.js"charset="utf-8"></script>

Is it a Duck or a Rabbit? For Google Cloud Vision, it depends how the image is rotated. pic.twitter.com/a30VzjEXVv

— Max Woolf (@minimaxir) March 7, 2019
<;脚本异步src=”https://platform.twitter.com/widgets.js“charset=”utf-8“>;<;/script>;

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java如何在收到spring mqtt集成中停止重复订阅保留的消息   java改造安卓在textview中显示数据   读取CSV Java时获取While循环中的最后一行数据   将Java程序转换为小程序的部署   java如何在不向Src添加文件的情况下将文件放入GitLab测试   java包含字节数组列表的方法   java十进制转换错误   eclipse是由java引起的。lang.ClassNotFoundException:org。springframework。js。资源ResourceServlet   继承Java向上与向下   java自动调整标签内容的大小   java从Android中的AlertDialog返回信息   java在声明按钮时仿真程序中出现错误   java编写刷新线程的最佳方法   Java初学者错误   java需要帮助重置JComboBox   java如何用Spring/MultipartFile捕获中断流   java是否可以在JUnit中设置被测试类的方法的返回值?