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
Support ContinuousFactor in likelihood weighted sampling #925
base: dev
Are you sure you want to change the base?
Conversation
Codecov Report
@@ Coverage Diff @@
## dev #925 +/- ##
==========================================
- Coverage 94.74% 94.66% -0.09%
==========================================
Files 114 114
Lines 11161 11219 +58
==========================================
+ Hits 10575 10620 +45
- Misses 586 599 +13
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
@@ -96,6 +96,9 @@ def variables(self): | |||
def variables(self, value): | |||
self._variables = value | |||
|
|||
def sample(self, size, evidence): | |||
raise NotImplementedError('Coming soon...') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Message suggestion: Work in progress, maybe you can help us out :D
OK. Let me know when you are ready, so I can rebase |
@ankurankan I added continuous factor support in likelihood weighted sampling by encapsulating the sampling details in the corresponding factor classes. The same approach can be easily extended into other sampling methods.