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 update_predictor_exp function and its pytest function #35

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

eliwangj
Copy link
Collaborator

No description provided.

@eliwangj eliwangj requested a review from JunmengXu July 25, 2023 19:06
Copy link
Owner

@Faye-yufan Faye-yufan left a 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,
Copy link
Owner

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?

Copy link
Owner

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.

Copy link
Collaborator Author

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.

Copy link
Owner

@Faye-yufan Faye-yufan left a 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.

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.

2 participants