-
Notifications
You must be signed in to change notification settings - Fork 69
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
Feature/issue 373 #397
Feature/issue 373 #397
Conversation
…inor tweaks to docstrings for learner, metrics, and experiments
…to feature/issue-373
This is ready for review. @desilinguist, I'm no longer getting any warnings when I generate the documentation with |
…com:EducationalTestingService/skll into feature/issue-373 Adding tests to ensure coverage is okay.
Okay, now that the coverage issue is resolved, I am going to start to review this. |
skll/config.py
Outdated
Returns | ||
------- | ||
invalid_options : set | ||
The set of invalid options specified by the user. |
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.
Do we want to specify the type of the set elements to expect? eg set of str
. This change would apply to a lot of other functions as well.
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.
Yes, this seems like a nice thing to do.
- Replace `Note` with `Notes`. - Fix some boolean defaults. - Add more details about lists and sets.
- feature_set -> `FeatureSet` - Some other minor changes - Add new authors.
…ds, and (2) use single backticks
3 similar comments
- Use double backticks where possible to be consistent with the non-docstring documentation. - Fix some typos here and there. - Minor rephrasings.
- Some other minor changes.
@aoifecahill Once the build passes, this is just waiting for your approval. |
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, thanks!
This is a PR to address #373. It updates all of the docstrings in the
skll
package. There are two main types of changes:numpy
-style. This sometimes involved adding additional information, such as any errors being raised or arguments the were not mentioned.numpy
-style docstrings to functions and methods where none previously existed.I have also added the
sphinx.ext.napoleon
extension to thedoc/config.py
file to properly parsenumpy
-style docstrings when generating documentation for RTD.Please review new docstrings especially carefully, with an eye toward proper argument and return data types.