Diebold Mariano Test 工具包
特点
通过DM检验的结果,可以判别任意两类算法的预测结果是否存在差异性。
安装
pip install diebold-mariano-test
更新
pip install --upgrade diebold-mariano-test
使用说明
>>> # 导入包
>>> from diebold_mariano_test import *
>>> ori_list = [3, 5, 4, 1] # 原始时间序列数据
>>> a1_list = [2, 3, 4, 2] # 预测算法一得到的时间序列数据
>>> a2_list = [3, 2, 2, 4] # 预测算法二得到的时间序列数据
>>> # 使用MSE方法计算 Diebold-Mariano Test.
>>> d_t_list = cul_d_t(MSE, ori_list, a1_list, a2_list)
>>> print(d_t_list) # 输出中间变量d_t的数值。
[1, -4, -8, -16]
>>> cul_DM(d_t_list) # 输出结果
-2.254898764780173
>>> cul_P(d_t_list) # 输出伴随的P值
0.024139683878213303
>>> # 使用MAE方法计算 Diebold-Mariano Test.
>>> d_t_list = cul_d_t(MAE, ori_list, a1_list, a2_list)
>>> print(d_t_list) # 输出中间变量d_t的数值。
[1, 0, -2, -4]
>>> cul_DM(d_t_list) # 输出结果
-1.4213381090374029
>>> cul_P(d_t_list) # 输出伴随的P值
0.155218489684684
说明
项目发布于PyPI:单击访问
本模块尚不完善,有任何相关问题或建议,欢迎在本项目的github页面中提交issue: 单击访问
License
GNU General Public License v3.0
Metadata
Release files for diebold-mariano-test 0.0.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| diebold-mariano-test-0.0.8.tar.gz | 3.8 kB | Without provenance | Details for diebold-mariano-test-0.0.8.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| diebold_mariano_test-0.0.8-py3-none-any.whl | Python 3 | none | any | Details for diebold_mariano_test-0.0.8-py3-none-any.whl |
Total release size: 20.5 kB
Release files / diebold-mariano-test-0.0.8.tar.gz
| Download URL | diebold-mariano-test-0.0.8.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
94a13527bae50d96877e05d5421df7da967f7e17297f03cc2a7cf369f740a2d1
|
|
BLAKE2b-256 checksum How to use checksums |
ff3fb6bc2596cf5a40aff1fbb197cd03ae1f23d8f96b53084cbc8cf4b9f6603c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.0
|
Release files / diebold_mariano_test-0.0.8-py3-none-any.whl
| Download URL | diebold_mariano_test-0.0.8-py3-none-any.whl |
|---|---|
| Size | 16.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
655eb7a5aeee383e8593ccc85bc4801782bfa1221a8456e4fc1a7e5caf062cac
|
|
BLAKE2b-256 checksum How to use checksums |
ddc7d279030f72a0a6bf0eea7179f8c8816e987b802351f6aaa27fa361883e07
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.0
|
Security for diebold-mariano-test 0.0.8
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.