-
Notifications
You must be signed in to change notification settings - Fork 197
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
Issue#809 fix docstrings in benchmarking #2646
base: main
Are you sure you want to change the base?
Issue#809 fix docstrings in benchmarking #2646
Conversation
Thank you for contributing to
|
872e65f
to
b949e59
Compare
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.
Some inconsistencies in changes, similarity search is out of scope of the PR
|
||
Returns | ||
------- | ||
float | ||
``float`` | ||
Threshold such that there are at least `k` anomalous ranges. |
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.
Missing double quotes on k
`y_true` : array-like of shape (n_samples,) | ||
Ground truth target labels. | ||
y_pred : array-like of shape (n_samples,) | ||
`y_pred` : array-like of shape (n_samples,) | ||
Cluster labels to evaluate. | ||
|
||
Returns | ||
------- | ||
score : float | ||
`score` : float |
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.
Ticks on variable names and not on types, inconsistent with the rest.
"clustering", "regression". Not case-sensitive. | ||
as_list: boolean, default=False | ||
If True, returns a list instead of a dataframe. | ||
`task`: str, default="classification" |
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.
ticks on variable name, inconsistent with the rest
|
||
Returns | ||
------- | ||
data: pd.DataFrame or list | ||
Standardised name as defined by NAME_ALIASES. | ||
`data`: pd.DataFrame or list |
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.
ticks on variable name and not on types, inconsistent with the rest
@@ -251,39 +251,43 @@ def get_estimator_results( | |||
|
|||
Parameters | |||
---------- | |||
estimators : str ot list of str | |||
`estimators` : str ot list of str |
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.
ticks on variable name and not on types, inconsistent with the rest
include_missing is true. | ||
num_resamples : int or None, default=None | ||
``include_missing`` is ``true``. | ||
`num_resamples` : int or None, default=None |
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.
ticks on variable name and not on types, inconsistent with the rest
datasets : list of or None, default=1 | ||
``get_available_estimators``, ``aeon.benchmarking.results_loading.NAME_ALIASES`` | ||
or the directory at path for valid options. | ||
`datasets` : list of or None, default=1 |
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.
ticks on variable name and not on types, inconsistent with the rest
`task` : str, default="classification" | ||
Should be one of ``aeon.benchmarking.results_loading.VALID_TASK_TYPES``. i.e. | ||
`"classification"`, `"clustering"`, `"regression"`. | ||
`measure` : str, default="accuracy" | ||
Should be one of | ||
`aeon.benchmarking.results_loading.VALID_RESULT_MEASURES[task]`. | ||
Dependent on the task, i.e. for classification, `"accuracy"`, `"auroc"`, | ||
`"balacc"` and regression, `"mse"`, `"mae"`, `"r2"`. | ||
`remove_dataset_modifiers`: bool, default=False |
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.
ticks on variable name and not on types, inconsistent with the rest
path : str, default="https://timeseriesclassification.com/results/ReferenceResults/" | ||
i.e. a loaded result row for `"Dataset_eq"` will be converted to | ||
just `"Dataset"`. | ||
`path` : str, |
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.
ticks on variable name and not on types, inconsistent with the rest
`results`: 2D numpy array | ||
Array of scores. Each column is a results for a classifier, each row a dataset. | ||
names: list of str | ||
`names`: list of str |
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.
ticks on variable name and not on types, inconsistent with the rest
Fixes #809
This PR updates and corrects the docstrings for various benchmarking functions in the Aeon toolkit. The changes improve clarity, consistency, and adherence to documentation standards. The updated files include:
1.thresholding.py
2.clustering.py
3.segmentation.py
4.published_results.py
5.resampling.py
6.results_loaders.py
7.stats.py
No new dependencies. These changes improve documentation readability, making it easier for developers and users to understand function behavior and expected inputs/outputs. Updated docstrings for benchmarking functions, verified formatting and consistency with existing documentation, and ensured the PR title follows the required format: issue#809-fix-docstrings-in-benchmarking.