Numerical stability is a crucial requirement of reliable scientific computing. However, despite the pervasiveness of Python in data science, analyzing large Python programs remains challenging due to the lack of scalable numerical analysis tools available for this language. To fill this gap, we developed PyTracer, a profiler to quantify numerical instability in Python applications. PyTracer transparently instruments Python code to produce numerical traces and visualize them interactively in a Plotly dashboard. We designed PyTracer to be agnostic to numerical noise model, allowing for tool evaluation through Monte-Carlo Arithmetic, random rounding, random data perturbation, or structured noise for a particular application. We illustrate PyTracer's capabilities by testing the numerical stability of key functions in both SciPy and Scikit-learn, two dominant Python libraries for mathematical modeling. Through these evaluations, we demonstrate PyTracer as a scalable, automatic, and generic framework for numerical profiling in Python.


翻译:数字稳定性是可靠的科学计算的关键要求。然而,尽管Python在数据科学中非常普遍,分析大型 Python 程序仍具有挑战性,因为缺乏可用于该语言的可缩放的数字分析工具。为了填补这一空白,我们开发了PyTracer, 是一个用于量化 Python 应用中数字不稳定性的剖析器。 PyTracer 透明仪器 Python 代码, 用来生成数字痕量, 并在一个Plotly 仪表板中以可视方式显示它们。 我们设计了 PyTracer, 以对数字噪音模型进行认知, 通过Monte-Carlo Airthmatic, 随机循环, 随机数据穿透, 或为特定应用程序结构化的噪音进行工具评估。 我们通过测试SciPython 和 Sikit-learn 两个主要 Python 图书馆的关键功能的数值稳定性来说明 Python 。 通过这些评估, 我们演示了 PyTracer 是一个可扩展、自动和通用框架, 用于在 Python 中进行数字分析。

0
下载
关闭预览

相关内容

Python是一种面向对象的解释型计算机程序设计语言,在设计中注重代码的可读性,同时也是一种功能强大的通用型语言。
【干货书】数值Python计算,Numerical Python,709页pdf
专知会员服务
104+阅读 · 2021年5月30日
【干货书】Python参考手册,210页pdf
专知会员服务
63+阅读 · 2021年4月30日
【干货书】机器学习速查手册,135页pdf
专知会员服务
121+阅读 · 2020年11月20日
Linux导论,Introduction to Linux,96页ppt
专知会员服务
75+阅读 · 2020年7月26日
Keras François Chollet 《Deep Learning with Python 》, 386页pdf
专知会员服务
143+阅读 · 2019年10月12日
【新书】Python编程基础,669页pdf
专知会员服务
186+阅读 · 2019年10月10日
机器学习入门的经验与建议
专知会员服务
90+阅读 · 2019年10月10日
已删除
将门创投
8+阅读 · 2019年1月30日
CVE-2018-7600 - Drupal 7.x 远程代码执行exp
黑客工具箱
14+阅读 · 2018年4月17日
Adversarial Variational Bayes: Unifying VAE and GAN 代码
CreateAMind
7+阅读 · 2017年10月4日
Score-based diffusion models for accelerated MRI
Arxiv
0+阅读 · 2022年2月24日
Scalpel: The Python Static Analysis Framework
Arxiv
0+阅读 · 2022年2月24日
Arxiv
9+阅读 · 2021年4月8日
Arxiv
5+阅读 · 2018年6月5日
Arxiv
3+阅读 · 2017年12月14日
VIP会员
相关VIP内容
【干货书】数值Python计算,Numerical Python,709页pdf
专知会员服务
104+阅读 · 2021年5月30日
【干货书】Python参考手册,210页pdf
专知会员服务
63+阅读 · 2021年4月30日
【干货书】机器学习速查手册,135页pdf
专知会员服务
121+阅读 · 2020年11月20日
Linux导论,Introduction to Linux,96页ppt
专知会员服务
75+阅读 · 2020年7月26日
Keras François Chollet 《Deep Learning with Python 》, 386页pdf
专知会员服务
143+阅读 · 2019年10月12日
【新书】Python编程基础,669页pdf
专知会员服务
186+阅读 · 2019年10月10日
机器学习入门的经验与建议
专知会员服务
90+阅读 · 2019年10月10日
相关资讯
已删除
将门创投
8+阅读 · 2019年1月30日
CVE-2018-7600 - Drupal 7.x 远程代码执行exp
黑客工具箱
14+阅读 · 2018年4月17日
Adversarial Variational Bayes: Unifying VAE and GAN 代码
CreateAMind
7+阅读 · 2017年10月4日
Top
微信扫码咨询专知VIP会员