py-bnlearn 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,22 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Erdogan Taskesen
4
+ bnlearn - Python package
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ of this software and associated documentation files (the "Software"), to deal
8
+ in the Software without restriction, including without limitation the rights
9
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ copies of the Software, and to permit persons to whom the Software is
11
+ furnished to do so, subject to the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be included in all
14
+ copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ SOFTWARE.
File without changes
@@ -0,0 +1,51 @@
1
+ Metadata-Version: 2.4
2
+ Name: py-bnlearn
3
+ Version: 0.1.0
4
+ Summary: bnlearn is a Python package for Causal Discovery by learning the graphical structure of Bayesian networks, parameter learning, inference and sampling methods.
5
+ Author-email: Erdogan Taskesen <erdogant@gmail.com>
6
+ License-Expression: MIT
7
+ Project-URL: Homepage, https://erdogant.github.io/bnlearn
8
+ Project-URL: Download, https://github.com/erdogant/bnlearn/archive/{version}.tar.gz
9
+ Keywords: Python,causal discovery,causal learning
10
+ Classifier: Programming Language :: Python :: 3
11
+ Classifier: Operating System :: OS Independent
12
+ Classifier: Intended Audience :: Education
13
+ Classifier: Intended Audience :: Science/Research
14
+ Classifier: Operating System :: Unix
15
+ Classifier: Operating System :: Microsoft :: Windows
16
+ Classifier: Operating System :: MacOS
17
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
18
+ Requires-Python: >=3
19
+ Description-Content-Type: text/markdown
20
+ License-File: LICENSE
21
+ Requires-Dist: bnlearn
22
+ Dynamic: license-file
23
+
24
+ # bnlearn
25
+
26
+ [![Python](https://img.shields.io/pypi/pyversions/bnlearn)](https://img.shields.io/pypi/pyversions/bnlearn)
27
+ [![PyPI Version](https://img.shields.io/pypi/v/bnlearn)](https://pypi.org/project/bnlearn/)
28
+ [![License](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/erdogant/bnlearn/blob/master/LICENSE)
29
+ [![Github Forks](https://img.shields.io/github/forks/erdogant/bnlearn.svg)](https://github.com/erdogant/bnlearn/network)
30
+ [![GitHub Open Issues](https://img.shields.io/github/issues/erdogant/bnlearn.svg)](https://github.com/erdogant/bnlearn/issues)
31
+ [![Project Status](http://www.repostatus.org/badges/latest/active.svg)](http://www.repostatus.org/#active)
32
+ [![Downloads](https://pepy.tech/badge/bnlearn/month)](https://pepy.tech/project/bnlearn)
33
+ [![Downloads](https://pepy.tech/badge/bnlearn)](https://pepy.tech/project/bnlearn)
34
+ [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/erdogant/bnlearn/blob/master/notebooks/bnlearn.ipynb)
35
+ [![Sphinx](https://img.shields.io/badge/Sphinx-Docs-Green)](https://erdogant.github.io/bnlearn/)
36
+
37
+ * ``py-bnlearn`` is Python package that originates from ``bnlearn`` library.
38
+ * More information can be found [at the bnlearn library](https://github.com/erdogant/bnlearn)
39
+
40
+ ### Maintainers
41
+ * Erdogan Taskesen, github: [erdogant](https://github.com/erdogant)
42
+
43
+ ### Licence
44
+ See [LICENSE](LICENSE) for details.
45
+
46
+ ### Maintainer
47
+ * Erdogan Taskesen, github: [erdogant](https://github.com/erdogant)
48
+ * Contributions are welcome.
49
+ * Yes! This library is entirely **free** but it runs on coffee! :) Feel free to support with a <a href="https://erdogant.github.io/donate/?currency=USD&amount=5">Coffee</a>.
50
+
51
+ [![Buy me a coffee](https://img.buymeacoffee.com/button-api/?text=Buy+me+a+coffee&emoji=&slug=erdogant&button_colour=FFDD00&font_colour=000000&font_family=Cookie&outline_colour=000000&coffee_colour=ffffff)](https://www.buymeacoffee.com/erdogant)
@@ -0,0 +1,28 @@
1
+ # bnlearn
2
+
3
+ [![Python](https://img.shields.io/pypi/pyversions/bnlearn)](https://img.shields.io/pypi/pyversions/bnlearn)
4
+ [![PyPI Version](https://img.shields.io/pypi/v/bnlearn)](https://pypi.org/project/bnlearn/)
5
+ [![License](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/erdogant/bnlearn/blob/master/LICENSE)
6
+ [![Github Forks](https://img.shields.io/github/forks/erdogant/bnlearn.svg)](https://github.com/erdogant/bnlearn/network)
7
+ [![GitHub Open Issues](https://img.shields.io/github/issues/erdogant/bnlearn.svg)](https://github.com/erdogant/bnlearn/issues)
8
+ [![Project Status](http://www.repostatus.org/badges/latest/active.svg)](http://www.repostatus.org/#active)
9
+ [![Downloads](https://pepy.tech/badge/bnlearn/month)](https://pepy.tech/project/bnlearn)
10
+ [![Downloads](https://pepy.tech/badge/bnlearn)](https://pepy.tech/project/bnlearn)
11
+ [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/erdogant/bnlearn/blob/master/notebooks/bnlearn.ipynb)
12
+ [![Sphinx](https://img.shields.io/badge/Sphinx-Docs-Green)](https://erdogant.github.io/bnlearn/)
13
+
14
+ * ``py-bnlearn`` is Python package that originates from ``bnlearn`` library.
15
+ * More information can be found [at the bnlearn library](https://github.com/erdogant/bnlearn)
16
+
17
+ ### Maintainers
18
+ * Erdogan Taskesen, github: [erdogant](https://github.com/erdogant)
19
+
20
+ ### Licence
21
+ See [LICENSE](LICENSE) for details.
22
+
23
+ ### Maintainer
24
+ * Erdogan Taskesen, github: [erdogant](https://github.com/erdogant)
25
+ * Contributions are welcome.
26
+ * Yes! This library is entirely **free** but it runs on coffee! :) Feel free to support with a <a href="https://erdogant.github.io/donate/?currency=USD&amount=5">Coffee</a>.
27
+
28
+ [![Buy me a coffee](https://img.buymeacoffee.com/button-api/?text=Buy+me+a+coffee&emoji=&slug=erdogant&button_colour=FFDD00&font_colour=000000&font_family=Cookie&outline_colour=000000&coffee_colour=ffffff)](https://www.buymeacoffee.com/erdogant)
@@ -0,0 +1,21 @@
1
+ """py-bnlearn — a thin proxy to bnlearn for compatibility"""
2
+ import importlib
3
+ import sys
4
+
5
+ __author__ = 'Erdogan Tasksen'
6
+ __email__ = 'erdogant@gmail.com'
7
+ __version__ = '0.1.0'
8
+
9
+ try:
10
+ # Prefer importing the top-level bnlearn package
11
+ _bn = importlib.import_module('bnlearn')
12
+ # Make `import py-bnlearn` return the bnlearn module object
13
+ sys.modules[__name__] = _bn
14
+ except Exception:
15
+ # bnlearn isn't installed — keep lightweight metadata so import doesn't fail
16
+ __doc__ = """
17
+ bnlearn (proxy)
18
+ -----------------
19
+ This package is a thin compatibility layer that forwards to the real
20
+ `bnlearn` package when it is installed.
21
+ """
@@ -0,0 +1,22 @@
1
+ # --------------------------------------------------
2
+ # Author : E.Taskesen
3
+ # Contact : erdogant@gmail.com
4
+ # github : https://github.com/erdogant/bnlearn
5
+ # Licence : MIT
6
+ # --------------------------------------------------
7
+
8
+ import py_bnlearn
9
+ print(py_bnlearn.__version__)
10
+
11
+ # %%
12
+ import py_bnlearn as bn
13
+ import numpy as np
14
+
15
+ n = np.random.randint(10, 1000)
16
+ DAG = bn.import_DAG('sprinkler')
17
+ df = bn.sampling(DAG, n=n, methodtype='gibbs')
18
+ model = bn.structure_learning.fit(df, start_dag=DAG)
19
+ model = bn.structure_learning.fit(df, start_dag='test')
20
+
21
+ bn.plot(model)
22
+
@@ -0,0 +1,6 @@
1
+ # --------------------------------------------------
2
+ # Author : E.Taskesen
3
+ # Contact : erdogant@gmail.com
4
+ # github : https://github.com/erdogant/bnlearn
5
+ # Licence : MIT
6
+ # --------------------------------------------------
@@ -0,0 +1,51 @@
1
+ Metadata-Version: 2.4
2
+ Name: py-bnlearn
3
+ Version: 0.1.0
4
+ Summary: bnlearn is a Python package for Causal Discovery by learning the graphical structure of Bayesian networks, parameter learning, inference and sampling methods.
5
+ Author-email: Erdogan Taskesen <erdogant@gmail.com>
6
+ License-Expression: MIT
7
+ Project-URL: Homepage, https://erdogant.github.io/bnlearn
8
+ Project-URL: Download, https://github.com/erdogant/bnlearn/archive/{version}.tar.gz
9
+ Keywords: Python,causal discovery,causal learning
10
+ Classifier: Programming Language :: Python :: 3
11
+ Classifier: Operating System :: OS Independent
12
+ Classifier: Intended Audience :: Education
13
+ Classifier: Intended Audience :: Science/Research
14
+ Classifier: Operating System :: Unix
15
+ Classifier: Operating System :: Microsoft :: Windows
16
+ Classifier: Operating System :: MacOS
17
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
18
+ Requires-Python: >=3
19
+ Description-Content-Type: text/markdown
20
+ License-File: LICENSE
21
+ Requires-Dist: bnlearn
22
+ Dynamic: license-file
23
+
24
+ # bnlearn
25
+
26
+ [![Python](https://img.shields.io/pypi/pyversions/bnlearn)](https://img.shields.io/pypi/pyversions/bnlearn)
27
+ [![PyPI Version](https://img.shields.io/pypi/v/bnlearn)](https://pypi.org/project/bnlearn/)
28
+ [![License](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/erdogant/bnlearn/blob/master/LICENSE)
29
+ [![Github Forks](https://img.shields.io/github/forks/erdogant/bnlearn.svg)](https://github.com/erdogant/bnlearn/network)
30
+ [![GitHub Open Issues](https://img.shields.io/github/issues/erdogant/bnlearn.svg)](https://github.com/erdogant/bnlearn/issues)
31
+ [![Project Status](http://www.repostatus.org/badges/latest/active.svg)](http://www.repostatus.org/#active)
32
+ [![Downloads](https://pepy.tech/badge/bnlearn/month)](https://pepy.tech/project/bnlearn)
33
+ [![Downloads](https://pepy.tech/badge/bnlearn)](https://pepy.tech/project/bnlearn)
34
+ [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/erdogant/bnlearn/blob/master/notebooks/bnlearn.ipynb)
35
+ [![Sphinx](https://img.shields.io/badge/Sphinx-Docs-Green)](https://erdogant.github.io/bnlearn/)
36
+
37
+ * ``py-bnlearn`` is Python package that originates from ``bnlearn`` library.
38
+ * More information can be found [at the bnlearn library](https://github.com/erdogant/bnlearn)
39
+
40
+ ### Maintainers
41
+ * Erdogan Taskesen, github: [erdogant](https://github.com/erdogant)
42
+
43
+ ### Licence
44
+ See [LICENSE](LICENSE) for details.
45
+
46
+ ### Maintainer
47
+ * Erdogan Taskesen, github: [erdogant](https://github.com/erdogant)
48
+ * Contributions are welcome.
49
+ * Yes! This library is entirely **free** but it runs on coffee! :) Feel free to support with a <a href="https://erdogant.github.io/donate/?currency=USD&amount=5">Coffee</a>.
50
+
51
+ [![Buy me a coffee](https://img.buymeacoffee.com/button-api/?text=Buy+me+a+coffee&emoji=&slug=erdogant&button_colour=FFDD00&font_colour=000000&font_family=Cookie&outline_colour=000000&coffee_colour=ffffff)](https://www.buymeacoffee.com/erdogant)
@@ -0,0 +1,12 @@
1
+ LICENSE
2
+ MANIFEST.in
3
+ README.md
4
+ pyproject.toml
5
+ py-bnlearn/__init__.py
6
+ py-bnlearn/examples.py
7
+ py-bnlearn/py_bnlearn.py
8
+ py_bnlearn.egg-info/PKG-INFO
9
+ py_bnlearn.egg-info/SOURCES.txt
10
+ py_bnlearn.egg-info/dependency_links.txt
11
+ py_bnlearn.egg-info/requires.txt
12
+ py_bnlearn.egg-info/top_level.txt
@@ -0,0 +1 @@
1
+ bnlearn
@@ -0,0 +1 @@
1
+ py-bnlearn
@@ -0,0 +1,37 @@
1
+ [build-system]
2
+ requires = ["setuptools", "wheel"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "py-bnlearn"
7
+ version = "0.1.0"
8
+ authors = [{ name = "Erdogan Taskesen", email = "erdogant@gmail.com" },]
9
+ description = "bnlearn is a Python package for Causal Discovery by learning the graphical structure of Bayesian networks, parameter learning, inference and sampling methods."
10
+ readme = "README.md"
11
+ requires-python = ">=3"
12
+ license = "MIT"
13
+ keywords = ["Python", "causal discovery", "causal learning"]
14
+ classifiers = [
15
+ "Programming Language :: Python :: 3",
16
+ "Operating System :: OS Independent",
17
+ "Intended Audience :: Education",
18
+ "Intended Audience :: Science/Research",
19
+ "Operating System :: Unix",
20
+ "Operating System :: Microsoft :: Windows",
21
+ "Operating System :: MacOS",
22
+ "Topic :: Scientific/Engineering :: Artificial Intelligence",
23
+ ]
24
+
25
+ dependencies = [
26
+ "bnlearn",
27
+ ]
28
+
29
+ [project.urls]
30
+ Homepage = "https://erdogant.github.io/bnlearn"
31
+ Download = "https://github.com/erdogant/bnlearn/archive/{version}.tar.gz"
32
+
33
+ [tool.setuptools]
34
+ packages = ["py-bnlearn"]
35
+ include-package-data = true
36
+
37
+
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+