Skip to content

Conversation

@navjotk
Copy link
Collaborator

@navjotk navjotk commented Jul 8, 2022

This is not complete yet but posting to request for comment. Moves in the direction fixing #10

@navjotk navjotk requested a review from alecksphillips July 8, 2022 12:08
@navjotk navjotk force-pushed the attempt_refactor_proposal branch from 11da6ad to 3858d57 Compare July 8, 2022 12:11
self.cmf = np.cumsum(probabilities)
self.randomiser = Random()

def eval(self):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this function should be named "sample", rather than "eval" to match what's implemented in types.py

@alecksphillips
Copy link
Collaborator

This looks a step in the right direction - thanks for figuring out a sensible way to articulate it in code!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants