Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the NAryRelation class #2

Merged
merged 12 commits into from
Aug 21, 2024
Merged

Add the NAryRelation class #2

merged 12 commits into from
Aug 21, 2024

Conversation

johnHostetter
Copy link
Owner

The NAryRelation class is used to represent n-ary fuzzy relations, such as t-norms or t-conorms. It allows a convenient and consistent interface to working with fuzzy compound propositions for fuzzy logic, allows the end-user to determine how missing information should be handled, and how to calculate these compound truth values. It also provides the Compound class, allowing multiple different implementations of NAryRelation to coincide and be aggregated together for subsequent operations. Lastly, the NAryRelation implements how a n-ary fuzzy relation should be represented as a directed igraph.Graph.

Currently, the t-norms Minimum, Product and SoftmaxSum are provided.

@johnHostetter johnHostetter added the enhancement New feature or request label Aug 21, 2024
@johnHostetter johnHostetter self-assigned this Aug 21, 2024
@johnHostetter johnHostetter merged commit 50bbd3f into main Aug 21, 2024
2 checks passed
@johnHostetter johnHostetter deleted the dev branch August 21, 2024 16:34
Copy link

codecov bot commented Aug 21, 2024

Codecov Report

Attention: Patch coverage is 79.81651% with 22 lines in your changes missing coverage. Please review.

Project coverage is 72.13%. Comparing base (e7e9b8e) to head (be1586b).
Report is 14 commits behind head on main.

Files Patch % Lines
src/fuzzy/relations/continuous/old_tnorm.py 0.00% 16 Missing ⚠️
src/fuzzy/relations/continuous/t_norm.py 78.57% 3 Missing ⚠️
src/fuzzy/sets/continuous/group.py 0.00% 2 Missing ⚠️
src/fuzzy/relations/continuous/n_ary.py 98.70% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main       #2      +/-   ##
==========================================
+ Coverage   70.11%   72.13%   +2.01%     
==========================================
  Files          12       14       +2     
  Lines         716      793      +77     
==========================================
+ Hits          502      572      +70     
- Misses        214      221       +7     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant