-
Notifications
You must be signed in to change notification settings - Fork 18
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
numpy style docstrings #84
numpy style docstrings #84
Conversation
@@ -51,8 +87,21 @@ def _extract_edgelists(adj_mat, names): | |||
return pdag | |||
|
|||
|
|||
def fit(self, data, context): | |||
def fit(self, data: 'DataFrame', context: 'DataFrame'): |
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.
a context is an instance of the Context class.
---------- | ||
data : DataFrame | ||
The data to fit to. | ||
context : DataFrame |
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.
see comment above
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.
I think this looks good. Looking over the GIN code, I can't think of any reason to make this interface more complicated than it is. Make that adjustment for the Context type hint and we can get this merged.
Also @HarshaSatyavardhan, this: #87 |
Some CI failures:
|
Merging in to GIN PR |
Fixes #
Changes proposed in this pull request:
Before submitting
section of the
CONTRIBUTING
docs.Writing docstrings section of the
CONTRIBUTING
docs.After submitting