ripple-down-rules 0.1.6__tar.gz → 0.1.61__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.
- {ripple_down_rules-0.1.6 → ripple_down_rules-0.1.61}/PKG-INFO +5 -4
- {ripple_down_rules-0.1.6 → ripple_down_rules-0.1.61}/README.md +4 -3
- {ripple_down_rules-0.1.6 → ripple_down_rules-0.1.61}/pyproject.toml +1 -1
- {ripple_down_rules-0.1.6 → ripple_down_rules-0.1.61}/src/ripple_down_rules.egg-info/PKG-INFO +5 -4
- {ripple_down_rules-0.1.6 → ripple_down_rules-0.1.61}/LICENSE +0 -0
- {ripple_down_rules-0.1.6 → ripple_down_rules-0.1.61}/setup.cfg +0 -0
- {ripple_down_rules-0.1.6 → ripple_down_rules-0.1.61}/src/ripple_down_rules/__init__.py +0 -0
- {ripple_down_rules-0.1.6 → ripple_down_rules-0.1.61}/src/ripple_down_rules/datasets.py +0 -0
- {ripple_down_rules-0.1.6 → ripple_down_rules-0.1.61}/src/ripple_down_rules/datastructures/__init__.py +0 -0
- {ripple_down_rules-0.1.6 → ripple_down_rules-0.1.61}/src/ripple_down_rules/datastructures/callable_expression.py +0 -0
- {ripple_down_rules-0.1.6 → ripple_down_rules-0.1.61}/src/ripple_down_rules/datastructures/case.py +0 -0
- {ripple_down_rules-0.1.6 → ripple_down_rules-0.1.61}/src/ripple_down_rules/datastructures/dataclasses.py +0 -0
- {ripple_down_rules-0.1.6 → ripple_down_rules-0.1.61}/src/ripple_down_rules/datastructures/enums.py +0 -0
- {ripple_down_rules-0.1.6 → ripple_down_rules-0.1.61}/src/ripple_down_rules/experts.py +0 -0
- {ripple_down_rules-0.1.6 → ripple_down_rules-0.1.61}/src/ripple_down_rules/failures.py +0 -0
- {ripple_down_rules-0.1.6 → ripple_down_rules-0.1.61}/src/ripple_down_rules/helpers.py +0 -0
- {ripple_down_rules-0.1.6 → ripple_down_rules-0.1.61}/src/ripple_down_rules/prompt.py +0 -0
- {ripple_down_rules-0.1.6 → ripple_down_rules-0.1.61}/src/ripple_down_rules/rdr.py +0 -0
- {ripple_down_rules-0.1.6 → ripple_down_rules-0.1.61}/src/ripple_down_rules/rdr_decorators.py +0 -0
- {ripple_down_rules-0.1.6 → ripple_down_rules-0.1.61}/src/ripple_down_rules/rules.py +0 -0
- {ripple_down_rules-0.1.6 → ripple_down_rules-0.1.61}/src/ripple_down_rules/utils.py +0 -0
- {ripple_down_rules-0.1.6 → ripple_down_rules-0.1.61}/src/ripple_down_rules.egg-info/SOURCES.txt +0 -0
- {ripple_down_rules-0.1.6 → ripple_down_rules-0.1.61}/src/ripple_down_rules.egg-info/dependency_links.txt +0 -0
- {ripple_down_rules-0.1.6 → ripple_down_rules-0.1.61}/src/ripple_down_rules.egg-info/top_level.txt +0 -0
- {ripple_down_rules-0.1.6 → ripple_down_rules-0.1.61}/test/test_json_serialization.py +0 -0
- {ripple_down_rules-0.1.6 → ripple_down_rules-0.1.61}/test/test_on_mutagenic.py +0 -0
- {ripple_down_rules-0.1.6 → ripple_down_rules-0.1.61}/test/test_rdr.py +0 -0
- {ripple_down_rules-0.1.6 → ripple_down_rules-0.1.61}/test/test_rdr_alchemy.py +0 -0
- {ripple_down_rules-0.1.6 → ripple_down_rules-0.1.61}/test/test_rdr_world.py +0 -0
- {ripple_down_rules-0.1.6 → ripple_down_rules-0.1.61}/test/test_relational_rdr.py +0 -0
- {ripple_down_rules-0.1.6 → ripple_down_rules-0.1.61}/test/test_relational_rdr_alchemy.py +0 -0
- {ripple_down_rules-0.1.6 → ripple_down_rules-0.1.61}/test/test_sql_model.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: ripple_down_rules
|
3
|
-
Version: 0.1.
|
3
|
+
Version: 0.1.61
|
4
4
|
Summary: Implements the various versions of Ripple Down Rules (RDR) for knowledge representation and reasoning.
|
5
5
|
Author-email: Abdelrhman Bassiouny <abassiou@uni-bremen.de>
|
6
6
|
License: GNU GENERAL PUBLIC LICENSE
|
@@ -709,7 +709,7 @@ Fit the SCRDR to the data, then classify one of the data cases to check if its c
|
|
709
709
|
and render the tree to a file:
|
710
710
|
|
711
711
|
```Python
|
712
|
-
from ripple_down_rules.datastructures import CaseQuery
|
712
|
+
from ripple_down_rules.datastructures.dataclasses import CaseQuery
|
713
713
|
from ripple_down_rules.rdr import SingleClassRDR
|
714
714
|
from ripple_down_rules.datasets import load_zoo_dataset
|
715
715
|
from ripple_down_rules.utils import render_tree
|
@@ -719,12 +719,13 @@ all_cases, targets = load_zoo_dataset()
|
|
719
719
|
scrdr = SingleClassRDR()
|
720
720
|
|
721
721
|
# Fit the SCRDR to the data
|
722
|
-
case_queries = [CaseQuery(case, target
|
722
|
+
case_queries = [CaseQuery(case, 'species', type(target), True, _target=target)
|
723
|
+
for case, target in zip(all_cases[:10], targets[:10])]
|
723
724
|
scrdr.fit(case_queries, animate_tree=True)
|
724
725
|
|
725
726
|
# Render the tree to a file
|
726
727
|
render_tree(scrdr.start_rule, use_dot_exporter=True, filename="scrdr")
|
727
728
|
|
728
|
-
cat = scrdr.
|
729
|
+
cat = scrdr.classify(all_cases[50])
|
729
730
|
assert cat == targets[50]
|
730
731
|
```
|
@@ -22,7 +22,7 @@ Fit the SCRDR to the data, then classify one of the data cases to check if its c
|
|
22
22
|
and render the tree to a file:
|
23
23
|
|
24
24
|
```Python
|
25
|
-
from ripple_down_rules.datastructures import CaseQuery
|
25
|
+
from ripple_down_rules.datastructures.dataclasses import CaseQuery
|
26
26
|
from ripple_down_rules.rdr import SingleClassRDR
|
27
27
|
from ripple_down_rules.datasets import load_zoo_dataset
|
28
28
|
from ripple_down_rules.utils import render_tree
|
@@ -32,12 +32,13 @@ all_cases, targets = load_zoo_dataset()
|
|
32
32
|
scrdr = SingleClassRDR()
|
33
33
|
|
34
34
|
# Fit the SCRDR to the data
|
35
|
-
case_queries = [CaseQuery(case, target
|
35
|
+
case_queries = [CaseQuery(case, 'species', type(target), True, _target=target)
|
36
|
+
for case, target in zip(all_cases[:10], targets[:10])]
|
36
37
|
scrdr.fit(case_queries, animate_tree=True)
|
37
38
|
|
38
39
|
# Render the tree to a file
|
39
40
|
render_tree(scrdr.start_rule, use_dot_exporter=True, filename="scrdr")
|
40
41
|
|
41
|
-
cat = scrdr.
|
42
|
+
cat = scrdr.classify(all_cases[50])
|
42
43
|
assert cat == targets[50]
|
43
44
|
```
|
@@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
|
|
6
6
|
|
7
7
|
[project]
|
8
8
|
name = "ripple_down_rules"
|
9
|
-
version = "0.1.
|
9
|
+
version = "0.1.61"
|
10
10
|
description = "Implements the various versions of Ripple Down Rules (RDR) for knowledge representation and reasoning."
|
11
11
|
readme = "README.md"
|
12
12
|
authors = [{ name = "Abdelrhman Bassiouny", email = "abassiou@uni-bremen.de" }]
|
{ripple_down_rules-0.1.6 → ripple_down_rules-0.1.61}/src/ripple_down_rules.egg-info/PKG-INFO
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: ripple_down_rules
|
3
|
-
Version: 0.1.
|
3
|
+
Version: 0.1.61
|
4
4
|
Summary: Implements the various versions of Ripple Down Rules (RDR) for knowledge representation and reasoning.
|
5
5
|
Author-email: Abdelrhman Bassiouny <abassiou@uni-bremen.de>
|
6
6
|
License: GNU GENERAL PUBLIC LICENSE
|
@@ -709,7 +709,7 @@ Fit the SCRDR to the data, then classify one of the data cases to check if its c
|
|
709
709
|
and render the tree to a file:
|
710
710
|
|
711
711
|
```Python
|
712
|
-
from ripple_down_rules.datastructures import CaseQuery
|
712
|
+
from ripple_down_rules.datastructures.dataclasses import CaseQuery
|
713
713
|
from ripple_down_rules.rdr import SingleClassRDR
|
714
714
|
from ripple_down_rules.datasets import load_zoo_dataset
|
715
715
|
from ripple_down_rules.utils import render_tree
|
@@ -719,12 +719,13 @@ all_cases, targets = load_zoo_dataset()
|
|
719
719
|
scrdr = SingleClassRDR()
|
720
720
|
|
721
721
|
# Fit the SCRDR to the data
|
722
|
-
case_queries = [CaseQuery(case, target
|
722
|
+
case_queries = [CaseQuery(case, 'species', type(target), True, _target=target)
|
723
|
+
for case, target in zip(all_cases[:10], targets[:10])]
|
723
724
|
scrdr.fit(case_queries, animate_tree=True)
|
724
725
|
|
725
726
|
# Render the tree to a file
|
726
727
|
render_tree(scrdr.start_rule, use_dot_exporter=True, filename="scrdr")
|
727
728
|
|
728
|
-
cat = scrdr.
|
729
|
+
cat = scrdr.classify(all_cases[50])
|
729
730
|
assert cat == targets[50]
|
730
731
|
```
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{ripple_down_rules-0.1.6 → ripple_down_rules-0.1.61}/src/ripple_down_rules/datastructures/case.py
RENAMED
File without changes
|
File without changes
|
{ripple_down_rules-0.1.6 → ripple_down_rules-0.1.61}/src/ripple_down_rules/datastructures/enums.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{ripple_down_rules-0.1.6 → ripple_down_rules-0.1.61}/src/ripple_down_rules/rdr_decorators.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{ripple_down_rules-0.1.6 → ripple_down_rules-0.1.61}/src/ripple_down_rules.egg-info/SOURCES.txt
RENAMED
File without changes
|
File without changes
|
{ripple_down_rules-0.1.6 → ripple_down_rules-0.1.61}/src/ripple_down_rules.egg-info/top_level.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|