ripple-down-rules 0.1.6__py3-none-any.whl → 0.1.61__py3-none-any.whl

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ripple_down_rules
3
- Version: 0.1.6
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=target) for case, target in zip(all_cases, targets)]
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.fit_case(all_cases[50], targets[50])
729
+ cat = scrdr.classify(all_cases[50])
729
730
  assert cat == targets[50]
730
731
  ```
@@ -13,8 +13,8 @@ ripple_down_rules/datastructures/callable_expression.py,sha256=TW_u6CJfelW2CiJj9
13
13
  ripple_down_rules/datastructures/case.py,sha256=A7qkl5W48zldTtA4m-NJRYEwlMBpo7uGugnriNwcY0E,13597
14
14
  ripple_down_rules/datastructures/dataclasses.py,sha256=inhTE4tlMrwVRcYDtqAaR0JlxlyD87JIUvXIu5H9Ioo,5860
15
15
  ripple_down_rules/datastructures/enums.py,sha256=l0Eu-TeJ6qB2XHoJycXmUgLw-3yUebQ8SsEbW8bBZdM,4543
16
- ripple_down_rules-0.1.6.dist-info/licenses/LICENSE,sha256=ixuiBLtpoK3iv89l7ylKkg9rs2GzF9ukPH7ynZYzK5s,35148
17
- ripple_down_rules-0.1.6.dist-info/METADATA,sha256=aoGSheQJpGvz7fNTP9jyKz0V1M416oOQfzgsT_8Sd5s,42518
18
- ripple_down_rules-0.1.6.dist-info/WHEEL,sha256=ck4Vq1_RXyvS4Jt6SI0Vz6fyVs4GWg7AINwpsaGEgPE,91
19
- ripple_down_rules-0.1.6.dist-info/top_level.txt,sha256=VeoLhEhyK46M1OHwoPbCQLI1EifLjChqGzhQ6WEUqeM,18
20
- ripple_down_rules-0.1.6.dist-info/RECORD,,
16
+ ripple_down_rules-0.1.61.dist-info/licenses/LICENSE,sha256=ixuiBLtpoK3iv89l7ylKkg9rs2GzF9ukPH7ynZYzK5s,35148
17
+ ripple_down_rules-0.1.61.dist-info/METADATA,sha256=fstYXWm2KIN0bmiUkJTD6UIDiGQGtjE-pt263bDgJqk,42576
18
+ ripple_down_rules-0.1.61.dist-info/WHEEL,sha256=ck4Vq1_RXyvS4Jt6SI0Vz6fyVs4GWg7AINwpsaGEgPE,91
19
+ ripple_down_rules-0.1.61.dist-info/top_level.txt,sha256=VeoLhEhyK46M1OHwoPbCQLI1EifLjChqGzhQ6WEUqeM,18
20
+ ripple_down_rules-0.1.61.dist-info/RECORD,,