-
Notifications
You must be signed in to change notification settings - Fork 12
feat(deep_causality): Added Programmatic Verification of Model Assumptions #277
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
Conversation
… to a different causaloid. Signed-off-by: Marvin Hansen <[email protected]>
Signed-off-by: Marvin Hansen <[email protected]>
…tions deepcausality-rs#275 Signed-off-by: Marvin Hansen <[email protected]>
Signed-off-by: Marvin Hansen <[email protected]>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #277 +/- ##
==========================================
+ Coverage 95.56% 95.67% +0.11%
==========================================
Files 231 234 +3
Lines 6133 6225 +92
==========================================
+ Hits 5861 5956 +95
+ Misses 272 269 -3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Latest suggestions up to a8fd18c
Previous suggestionsSuggestions up to commit bb80213
Suggestions up to commit 8e6920e
|
Signed-off-by: Marvin Hansen <[email protected]>
Signed-off-by: Marvin Hansen <[email protected]>
Signed-off-by: Marvin Hansen <[email protected]>
Signed-off-by: Marvin Hansen <[email protected]>
Signed-off-by: Marvin Hansen <[email protected]>
…y-rs#275 Signed-off-by: Marvin Hansen <[email protected]>
User description
This PR introduces a formal mechanism to programmatically
verify the assumptions of a
Model
indeep_causality
.Describe your changes
Key Changes:
AssumptionError
Enum: A dedicated error enumAssumptionError
is introduced to handle failures related toassumption verification.
EvalFn
Signature: TheEvalFn
type alias isupdated to return a
Result<bool, AssumptionError>
, allowingassumption functions to fail gracefully.
Transferable
Trait: A newTransferable
trait isdefined and implemented for the
Model
struct, providing astandardized
verify_assumptions
method.AssumptionError
andModel::verify_assumptions
to cover allsuccess and error cases.
Issue ticket number and link
Closes #275
Code checklist before requesting a review
For details on make, please see BUILD.md
Note: The CI runs all of the above and fixing things before they hit CI speeds
up the review and merge process. Thank you.
PR Type
Enhancement
Description
Enhanced causable reasoning with configurable aggregate logic
Added programmatic model assumption verification system
Introduced RelayTo effect for causaloid dispatching
Updated assumption functions to return Result types
Diagram Walkthrough
File Walkthrough
10 files
Enhanced causable reasoning with aggregate logic
Added AggregateLogic enum for configurable reasoning
Added Transferable trait for model verification
Implemented Transferable trait for Model
Added AssumptionError enum for assumption failures
Updated assumable traits with Result types
Updated assumption verification to return Result
Updated EvalFn to return Result type
Added get_item_by_id method implementations
Added macros for item lookup functionality
9 files
Updated tests with AggregateLogic parameter
Updated assumable tests with PropagatingEffect
Updated assumable tests with PropagatingEffect
Updated assumable tests with PropagatingEffect
Updated assumable tests with PropagatingEffect
Updated assumable tests with PropagatingEffect
Added model assumption verification tests
Updated assumption tests with Result handling
Added tests for AssumptionError enum
1 files
Fixed type references in PropagatingEffect
15 files