bn-testing-0.9.0
توضیحات
A test bench to benchmark learn algorithms for graphical models
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | bn-testing-0.9.0 |
| نام | bn-testing |
| نسخه کتابخانه | 0.9.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Tobias Windisch |
| ایمیل نویسنده | tobias.windisch@posteo.de |
| آدرس صفحه اصلی | https://github.com/windisch/bn_testing |
| آدرس اینترنتی | https://pypi.org/project/bn-testing/ |
| مجوز | Apache-2.0 |
# BN testing
[](https://github.com/windisch/bn_testing/actions/workflows/test_package.yml)
[](https://bn_testing.readthedocs.io/en/latest/?badge=latest)
[](https://pypi.org/project/bn_testing/)
A test framework to evaluate methods that learn Bayesian Networks from
high-dimensional observational data.
## Sampling
Set up the graphical model and sample data
```python
from bn_testing.models import BayesianNetwork
from bn_testing.dags import ErdosReny
from bn_testing.conditionals import PolynomialConditional
model = BayesianNetwork(
dag=ErdosReny(p=0.01, n_nodes=100),
conditionals=PolynomialConditional(max_terms=5)
)
df = model.sample(10000, normalize=True)
```
The observations are stored in a `pandas.DataFrame` where the columns
are the nodes of the DAG and each row is an observation. The
underlying DAG of the graphical model can be accessed with `model.dag`
نیازمندی
| مقدار | نام |
|---|---|
| >=1.23.0 | numpy |
| >=1.5.0 | pandas |
| >=2.5 | networkx |
| >4.2.0 | pymc |
| - | cloudpickle |
| - | aesara |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.8.0 | Python |
نحوه نصب
نصب پکیج whl bn-testing-0.9.0:
pip install bn-testing-0.9.0.whl
نصب پکیج tar.gz bn-testing-0.9.0:
pip install bn-testing-0.9.0.tar.gz