# maxentropy: Maximum entropy and minimum divergence models in Python
## Purpose
This package helps you to construct a probability distribution
(Bayesian prior) from prior information that you encode as
generalized moment constraints.
You can use it to either:
1. find the flattest distribution that meets your constraints, using the
maximum entropy principle (discrete distributions only)
2. or find the "closest" model to a given prior model (in a KL divergence
sense) that also satisfies your additional constraints.
## Background
The maximum entropy principle has been shown [Cox 1982, Jaynes 2003] to be the unique consistent approach to
constructing a discrete probability distribution from prior information that is available as "testable information".
If the constraints have the form of linear moment constraints, then
the principle gives rise to a unique probability distribution of
**exponential form**. Most well-known probability distributions are
special cases of maximum entropy distributions. This includes
uniform, geometric, exponential, Pareto, normal, von Mises, Cauchy,
and others: see
[here](https://en.wikipedia.org/wiki/Maximum_entropy_probability_distribution).
## Examples: constructing a prior subject to known constraints
See the [notebooks folder](https://github.com/PythonCharmers/maxentropy/tree/master/notebooks).
### Quickstart guide
This is a good place to start: [Loaded die example (scikit-learn estimator API)](https://github.com/PythonCharmers/maxentropy/blob/master/notebooks/Loaded%20die%20example%20-%20skmaxent.ipynb)
## History
This package previously lived in SciPy
(http://scipy.org) as ``scipy.maxentropy`` from versions v0.5 to v0.10.
It was under-maintained and removed from SciPy v0.11. It has since been
resurrected and refactored to use the scikit-learn Estimator inteface.
## Copyright
(c) Ed Schofield, 2003-2019
没有合适的资源?快使用搜索试试~ 我知道了~
maxentropy:Python中的最大熵模型和最小散度模型.zip
共38个文件
py:23个
ipynb:9个
md:3个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 67 浏览量
2023-09-25
14:23:21
上传
评论
收藏 261KB ZIP 举报
温馨提示
maxentropy:Python中的最大熵模型和最小散度模型.zip
资源推荐
资源详情
资源评论
收起资源包目录
maxentropy:Python中的最大熵模型和最小散度模型.zip (38个子文件)
T
maxentropy-master
setup.py 2KB
.gitattributes 36B
LICENSE.txt 2KB
tests
test_sample_utils.py 369B
test_berger.py 4KB
broken_test_bigmodel.py 3KB
test_maxentropy.py 884B
test_loaded_die.py 2KB
docs
Documentation.md 53B
info.py 2KB
setup.cfg 41B
README.md 2KB
examples_scipy
conditional_example1_broken.py 2KB
loaded_die_example.py 1KB
berger_example.py 2KB
berger_example_simulated.py 3KB
conditional_example2_broken.py 4KB
README.md 148B
notebooks
Kangaroos example.ipynb 59KB
Maximum entropy - loaded die example.ipynb 20KB
Representing prior knowledge - postcodes.ipynb 92KB
Handwritten postcode recognition.ipynb 36KB
scikit-learn and maxentropy experiments.ipynb 21KB
Loaded die example.ipynb 44KB
Berger machine translation example.ipynb 12KB
Truncated Gaussians.ipynb 123KB
Unfinished - maximum entropy derivation of common distributions.ipynb 3KB
maxentropy
utils.py 25KB
__init__.py 4KB
scipy
bigmodel.py 28KB
utils.py 25KB
__init__.py 454B
maxentutils.py 457B
model.py 11KB
basemodel.py 24KB
conditionalmodel.py 11KB
skmaxent.py 36KB
base.py 23KB
A
共 38 条
- 1
资源评论
处处清欢
- 粉丝: 154
- 资源: 2504
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功