-
Notifications
You must be signed in to change notification settings - Fork 4
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 update_predictor_exp function and its pytest function #35
base: main
Are you sure you want to change the base?
Conversation
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.
looks good!
@@ -335,3 +335,32 @@ def update_response_poly_categorical(self, predictor_name: str = None, betas: di | |||
self.response_vector = numeric_vals[predictor_name] | |||
else: | |||
self.response_vector += numeric_vals[predictor_name] | |||
|
|||
def update_predictor_exp(self, rate: float = None, | |||
size: tuple = None, |
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.
Is tuple the ideal choice?
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.
Since the rest of the functions all use list
or np.array
as the input.
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.
Thanks for the feedback!
I was thinking about giving the option of defining output shape, e.g. multi-dimensional output. But I just realized that'd require a significant more complex function. We should indeed go with the simple version for now.
Also I think the size should be the number of observations by default. I will just get rid of this argument size
for now.
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.
Thank you for the clarification! please merge.
No description provided.