ripple-down-rules 0.2.1__tar.gz → 0.2.2__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.2.1 → ripple_down_rules-0.2.2}/PKG-INFO +1 -1
- {ripple_down_rules-0.2.1 → ripple_down_rules-0.2.2}/pyproject.toml +1 -1
- {ripple_down_rules-0.2.1 → ripple_down_rules-0.2.2}/src/ripple_down_rules.egg-info/PKG-INFO +1 -1
- {ripple_down_rules-0.2.1 → ripple_down_rules-0.2.2}/test/test_rdr_alchemy.py +1 -1
- {ripple_down_rules-0.2.1 → ripple_down_rules-0.2.2}/test/test_relational_rdr.py +2 -1
- {ripple_down_rules-0.2.1 → ripple_down_rules-0.2.2}/test/test_relational_rdr_alchemy.py +2 -1
- {ripple_down_rules-0.2.1 → ripple_down_rules-0.2.2}/LICENSE +0 -0
- {ripple_down_rules-0.2.1 → ripple_down_rules-0.2.2}/README.md +0 -0
- {ripple_down_rules-0.2.1 → ripple_down_rules-0.2.2}/setup.cfg +0 -0
- {ripple_down_rules-0.2.1 → ripple_down_rules-0.2.2}/src/ripple_down_rules/__init__.py +0 -0
- {ripple_down_rules-0.2.1 → ripple_down_rules-0.2.2}/src/ripple_down_rules/datasets.py +0 -0
- {ripple_down_rules-0.2.1 → ripple_down_rules-0.2.2}/src/ripple_down_rules/datastructures/__init__.py +0 -0
- {ripple_down_rules-0.2.1 → ripple_down_rules-0.2.2}/src/ripple_down_rules/datastructures/callable_expression.py +0 -0
- {ripple_down_rules-0.2.1 → ripple_down_rules-0.2.2}/src/ripple_down_rules/datastructures/case.py +0 -0
- {ripple_down_rules-0.2.1 → ripple_down_rules-0.2.2}/src/ripple_down_rules/datastructures/dataclasses.py +0 -0
- {ripple_down_rules-0.2.1 → ripple_down_rules-0.2.2}/src/ripple_down_rules/datastructures/enums.py +0 -0
- {ripple_down_rules-0.2.1 → ripple_down_rules-0.2.2}/src/ripple_down_rules/experts.py +0 -0
- {ripple_down_rules-0.2.1 → ripple_down_rules-0.2.2}/src/ripple_down_rules/failures.py +0 -0
- {ripple_down_rules-0.2.1 → ripple_down_rules-0.2.2}/src/ripple_down_rules/helpers.py +0 -0
- {ripple_down_rules-0.2.1 → ripple_down_rules-0.2.2}/src/ripple_down_rules/prompt.py +0 -0
- {ripple_down_rules-0.2.1 → ripple_down_rules-0.2.2}/src/ripple_down_rules/rdr.py +0 -0
- {ripple_down_rules-0.2.1 → ripple_down_rules-0.2.2}/src/ripple_down_rules/rdr_decorators.py +0 -0
- {ripple_down_rules-0.2.1 → ripple_down_rules-0.2.2}/src/ripple_down_rules/rules.py +0 -0
- {ripple_down_rules-0.2.1 → ripple_down_rules-0.2.2}/src/ripple_down_rules/utils.py +0 -0
- {ripple_down_rules-0.2.1 → ripple_down_rules-0.2.2}/src/ripple_down_rules.egg-info/SOURCES.txt +0 -0
- {ripple_down_rules-0.2.1 → ripple_down_rules-0.2.2}/src/ripple_down_rules.egg-info/dependency_links.txt +0 -0
- {ripple_down_rules-0.2.1 → ripple_down_rules-0.2.2}/src/ripple_down_rules.egg-info/top_level.txt +0 -0
- {ripple_down_rules-0.2.1 → ripple_down_rules-0.2.2}/test/test_json_serialization.py +0 -0
- {ripple_down_rules-0.2.1 → ripple_down_rules-0.2.2}/test/test_on_mutagenic.py +0 -0
- {ripple_down_rules-0.2.1 → ripple_down_rules-0.2.2}/test/test_rdr.py +0 -0
- {ripple_down_rules-0.2.1 → ripple_down_rules-0.2.2}/test/test_rdr_world.py +0 -0
- {ripple_down_rules-0.2.1 → ripple_down_rules-0.2.2}/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.2.
|
3
|
+
Version: 0.2.2
|
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
|
@@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
|
|
6
6
|
|
7
7
|
[project]
|
8
8
|
name = "ripple_down_rules"
|
9
|
-
version = "0.2.
|
9
|
+
version = "0.2.2"
|
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" }]
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: ripple_down_rules
|
3
|
-
Version: 0.2.
|
3
|
+
Version: 0.2.2
|
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
|
@@ -128,7 +128,7 @@ class TestAlchemyRDR(TestCase):
|
|
128
128
|
case_queries = []
|
129
129
|
for case, targets in zip(self.all_cases[:n], habitat_targets):
|
130
130
|
for attr, target in targets.items():
|
131
|
-
case_queries.append(CaseQuery(case, attr, (Species,) if attr == 'species' else (
|
131
|
+
case_queries.append(CaseQuery(case, attr, (Species,) if attr == 'species' else (HabitatTable,),
|
132
132
|
True if attr == 'species' else False, _target=target))
|
133
133
|
grdr.fit(case_queries, expert=expert, animate_tree=draw_tree)
|
134
134
|
for rule in grdr.start_rules:
|
@@ -5,6 +5,7 @@ from unittest import TestCase
|
|
5
5
|
|
6
6
|
from typing_extensions import List, Optional, Any
|
7
7
|
|
8
|
+
from ripple_down_rules.datastructures.case import CaseAttribute
|
8
9
|
from ripple_down_rules.datastructures.dataclasses import CaseQuery, CallableExpression
|
9
10
|
from ripple_down_rules.experts import Human
|
10
11
|
from ripple_down_rules.rdr import SingleClassRDR
|
@@ -103,7 +104,7 @@ class RelationalRDRTestCase(TestCase):
|
|
103
104
|
|
104
105
|
def test_parse_relational_conclusions(self):
|
105
106
|
user_input = "case.parts.contained_objects"
|
106
|
-
conclusion = CallableExpression(user_input,
|
107
|
+
conclusion = CallableExpression(user_input, (CaseAttribute, PhysicalObject,))
|
107
108
|
print(conclusion)
|
108
109
|
print(conclusion(self.robot))
|
109
110
|
assert conclusion(self.robot) == self.target
|
@@ -7,6 +7,7 @@ from sqlalchemy import ForeignKey
|
|
7
7
|
from sqlalchemy.orm import MappedAsDataclass, DeclarativeBase, declared_attr, Mapped, mapped_column, relationship
|
8
8
|
from typing_extensions import List, Any, Set
|
9
9
|
|
10
|
+
from ripple_down_rules.datastructures.case import CaseAttribute
|
10
11
|
from ripple_down_rules.datastructures.dataclasses import CaseQuery
|
11
12
|
from ripple_down_rules.datastructures.callable_expression import CallableExpression
|
12
13
|
from ripple_down_rules.experts import Human
|
@@ -170,7 +171,7 @@ class RelationalRDRTestCase(TestCase):
|
|
170
171
|
|
171
172
|
def test_parse_relational_conclusions(self):
|
172
173
|
user_input = "case.parts.contained_objects"
|
173
|
-
conclusion = CallableExpression(user_input,
|
174
|
+
conclusion = CallableExpression(user_input, (CaseAttribute, PhysicalObject,))
|
174
175
|
print(conclusion)
|
175
176
|
print(conclusion(self.robot))
|
176
177
|
assert conclusion(self.robot) == self.target
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{ripple_down_rules-0.2.1 → ripple_down_rules-0.2.2}/src/ripple_down_rules/datastructures/__init__.py
RENAMED
File without changes
|
File without changes
|
{ripple_down_rules-0.2.1 → ripple_down_rules-0.2.2}/src/ripple_down_rules/datastructures/case.py
RENAMED
File without changes
|
File without changes
|
{ripple_down_rules-0.2.1 → ripple_down_rules-0.2.2}/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
|
File without changes
|
File without changes
|
File without changes
|
{ripple_down_rules-0.2.1 → ripple_down_rules-0.2.2}/src/ripple_down_rules.egg-info/SOURCES.txt
RENAMED
File without changes
|
File without changes
|
{ripple_down_rules-0.2.1 → ripple_down_rules-0.2.2}/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
|