hypothesis-gufunc:扩展假设以测试numpy通用函数

上传者: 42105816 | 上传时间: 2025-08-04 11:24:27 | 文件大小: 41KB | 文件类型: ZIP
假设GU函数 此项目是实验性的,API不稳定。 官方仅支持Python> = 3.6,但较旧版本的Python也可能工作。 该软件包包括对策略的支持,这些策略生成遵循numpy通用通用函数API的函数的参数。 因此,它可以自动生成具有遵循形状约束的形状的矩阵。 例如,要生成np.dot的测试输入,可以使用, import numpy as np from hypothesis import given from hypothesis . strategies import floats from hypothesis_gufunc . gufunc import gufunc_args easy_floats = floats ( min_value = - 10 , max_value = 10 ) @ given ( gufunc_args ( '(m,n),(n,p)->(m

文件下载

资源详情

[{"title":"( 36 个子文件 41KB ) hypothesis-gufunc:扩展假设以测试numpy通用函数","children":[{"title":"hypothesis-gufunc-master","children":[{"title":"setup.py <span style='color:#111;'> 1.75KB </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 189B </span>","children":null,"spread":false},{"title":"test.sh <span style='color:#111;'> 5.56KB </span>","children":null,"spread":false},{"title":".readthedocs.yml <span style='color:#111;'> 569B </span>","children":null,"spread":false},{"title":".travis.yml <span style='color:#111;'> 247B </span>","children":null,"spread":false},{"title":"MANIFEST.in <span style='color:#111;'> 100B </span>","children":null,"spread":false},{"title":".pre-commit-config.yaml <span style='color:#111;'> 1.74KB </span>","children":null,"spread":false},{"title":"LICENSE <span style='color:#111;'> 11.09KB </span>","children":null,"spread":false},{"title":"README.rst <span style='color:#111;'> 4.38KB </span>","children":null,"spread":false},{"title":"hypothesis_gufunc","children":[{"title":"__init__.py <span style='color:#111;'> 75B </span>","children":null,"spread":false},{"title":"gufunc.py <span style='color:#111;'> 17.24KB </span>","children":null,"spread":false},{"title":"extra","children":[{"title":"__init__.py <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"xr.py <span style='color:#111;'> 21.33KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":".secrets.baseline <span style='color:#111;'> 638B </span>","children":null,"spread":false},{"title":"requirements","children":[{"title":"extra.txt <span style='color:#111;'> 337B </span>","children":null,"spread":false},{"title":"base.txt <span style='color:#111;'> 263B </span>","children":null,"spread":false},{"title":"test.txt <span style='color:#111;'> 568B </span>","children":null,"spread":false},{"title":"test.in <span style='color:#111;'> 91B </span>","children":null,"spread":false},{"title":"tools.in <span style='color:#111;'> 73B </span>","children":null,"spread":false},{"title":"base.in <span style='color:#111;'> 32B </span>","children":null,"spread":false},{"title":"tools.txt <span style='color:#111;'> 1.44KB </span>","children":null,"spread":false},{"title":"self.txt <span style='color:#111;'> 25B </span>","children":null,"spread":false},{"title":"extra.in <span style='color:#111;'> 44B </span>","children":null,"spread":false},{"title":"docs.txt <span style='color:#111;'> 1.13KB </span>","children":null,"spread":false},{"title":"docs.in <span style='color:#111;'> 26B </span>","children":null,"spread":false}],"spread":false},{"title":"docs","children":[{"title":".gitignore <span style='color:#111;'> 7B </span>","children":null,"spread":false},{"title":"dummy.py <span style='color:#111;'> 154B </span>","children":null,"spread":false},{"title":"Makefile <span style='color:#111;'> 6.29KB </span>","children":null,"spread":false},{"title":"index.rst <span style='color:#111;'> 175B </span>","children":null,"spread":false},{"title":"conf.py <span style='color:#111;'> 7.61KB </span>","children":null,"spread":false},{"title":"authors.rst <span style='color:#111;'> 162B </span>","children":null,"spread":false},{"title":"readme.rst <span style='color:#111;'> 27B </span>","children":null,"spread":false},{"title":"code.rst <span style='color:#111;'> 348B </span>","children":null,"spread":false}],"spread":true},{"title":"test","children":[{"title":"test_gufunc.py <span style='color:#111;'> 19.06KB </span>","children":null,"spread":false},{"title":"dummy.py <span style='color:#111;'> 183B </span>","children":null,"spread":false},{"title":"extra","children":[{"title":"test_xr.py <span style='color:#111;'> 13.11KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明