Skip to content

[DOC] Add Usage Examples to Core Function Docstrings #1538

@SimonBlanke

Description

@SimonBlanke

Examples in docstrings provide various benefits for users and devs: You can see these examples during IDE hover tooltips, can generate examples for your auto generated documentation and can quickly see the usage pattern as a dev going through the code. Core public functions lack Examples sections in their docstrings.
Here are some of the public methods that would benefit from examples in docstrings:

  • openml/datasets/functions.py:get_dataset()
  • openml/datasets/functions.py:get_datasets()
  • openml/tasks/functions.py:get_task()
  • openml/runs/functions.py:run_model_on_task()
  • openml/study/functions.py:get_suite()
  • openml/study/functions.py:get_study()
  • openml/study/functions.py:create_study()

Metadata

Metadata

Assignees

No one assigned

    Labels

    Good First IssueIssues suitable for people new to contributing to openml-python!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions