+
Skip to content

Conversation

TomatoChocolate12
Copy link
Contributor

Reference Issues/PRs

Towards fixing issue #7386

What does this implement/fix? Explain your changes.

Implements a docstring for the HierarchicalDask class.

Does your contribution introduce a new dependency? If yes, which one?

None

What should a reviewer concentrate their feedback on?

Did you add any tests for the change?

No, it is not required.

Any other comments?

PR checklist

For all contributions
  • I've added myself to the list of contributors with any new badges I've earned :-)
    How to: add yourself to the all-contributors file in the sktime root directory (not the CONTRIBUTORS.md). Common badges: code - fixing a bug, or adding code logic. doc - writing or improving documentation or docstrings. bug - reporting or diagnosing a bug (get this plus code if you also fixed the bug in the PR).maintenance - CI, test framework, release.
    See here for full badge reference
  • Optionally, for added estimators: I've added myself and possibly to the maintainers tag - do this if you want to become the owner or maintainer of an estimator you added.
    See here for further details on the algorithm maintainer role.
  • The PR title starts with either [ENH], [MNT], [DOC], or [BUG]. [BUG] - bugfix, [MNT] - CI, test framework, [ENH] - adding or improving code, [DOC] - writing or improving documentation or docstrings.
For new estimators
  • I've added the estimator to the API reference - in docs/source/api_reference/taskname.rst, follow the pattern.
  • I've added one or more illustrative usage examples to the docstring, in a pydocstyle compliant Examples section.
  • If the estimator relies on a soft dependency, I've set the python_dependencies tag and ensured
    dependency isolation, see the estimator dependencies guide.

Copy link
Collaborator

@fkiraly fkiraly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, good start!

The index convention is not correct, dask frames do not have an index. Instead, the index columns are encoded using a specific schema, which should be described here.

I recommend you use get_examples to generate some examples for the data type, which should highlight the condition. Alternatively, the _check method has the exact conditions as code. Please let us know if you would like more explanation.

PS: once you have figured it out, PanelDask has a very similar description.

@fkiraly fkiraly added documentation Documentation & tutorials module:datatypes datatypes module: data containers, checkers & converters labels Jan 26, 2025
@TomatoChocolate12
Copy link
Contributor Author

hello @fkiraly , sorry about late response to the review, was busy with a few things. i have made the changes requested and have used the check_dask_frame function from the _check method as suggested. please have a look at it and let me know if any changes are required. thanks for the review!

Copy link
Collaborator

@fkiraly fkiraly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@TomatoChocolate12
Copy link
Contributor Author

Thanks for the feedback.

  • The docstring formatting convention for classes states that there needs to be a mention of the methods. Should I add a separate Methods section with an explanation of the _check method?
  • I took a better look at this and it seems like every column name starts with _index_. So, I assume the columns are named _index_0, _index_1 and so on. Should I add this as well?

@TomatoChocolate12
Copy link
Contributor Author

@fkiraly I have added information regarding the column naming convention to the docstring. I decided not to add a Methods section as none of the other docstrings for other such classes had this section.

Copy link
Collaborator

@fkiraly fkiraly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! This is great!

Only minor change requests:

  • ensure the code formatting is as per the precommit. You added too many newlines and this will fail the CI.
  • the bullet point lists need to be preceded and succeeded by newlines to render correctly. See the readthedocs build for how it looks like.

@TomatoChocolate12
Copy link
Contributor Author

i have made the requested changes, hope they pass the tests now

Copy link
Collaborator

@fkiraly fkiraly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like they do, thanks!

@fkiraly fkiraly merged commit 13d6a83 into sktime:main Mar 8, 2025
1 check passed
Spinachboul pushed a commit to Spinachboul/sktime that referenced this pull request Mar 23, 2025
#### Reference Issues/PRs

Towards fixing issue sktime#7386

#### What does this implement/fix? Explain your changes.

Implements a docstring for the HierarchicalDask class.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Documentation & tutorials module:datatypes datatypes module: data containers, checkers & converters

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载