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
[ENH] add at least one usage example to docstrings of estimators #4264
Comments
Hi @fkiraly! Happy to help adding some/more examples in the doc strings of estimators. Do you have a list already of some of the likely most used estimators that could benefit with an example? |
There are currently 90 (out of 237) objects in from sktime.registry import all_estimators
ests = all_estimators()
[x[1] for x in ests if "Example" not in x[1].__doc__ ] (to subset to types, use the |
The most "important" ones that I see in the list are (subjectively chosen):
|
Adds to #4264 This fixes a small pet peeve of mine with the current documentation, which is that the actual import for the technique is often not listed in the example, so you can't just copy and paste from the API reference to see how it works. This inconvenience is compounded by the fact that the actual imports you need to use are often irregular and can't be easily inferred from the way different methods are listed in the API docs. So you often have to go on a bit of a chase just to figure out how to import something.
Adds to #4264. Added usage examples to `k_means` and `k_medoids`.
I am adding examples to docstrings for DBScan. |
FYI @Verogli, there's an example for although the result isn't "nice" in the sense of the clulster split being very clear. |
Thank you. I will look into that. |
Hi! It's my first time contributing. I plan to add an example for |
Nice! Yes, the doctest should be skipped due to the soft dependency (alternatively, you can make the execution condtional on the soft dependency being present, that's a newer feature in |
Hi all! It's my first time contributing. I've added an example for DummyClassifier following the example from DummyRegressor. I've included doctest skip due to the soft dependency, hope that is fine. |
Great addition, thanks, @YashKhare20! Minor note, I think |
Hello Team! I've added an example for |
Added examples to docstrings in ```DummyClassifier```
Each estimator should have an example in its docstring.
This example should cover basic usage, and possiblly advanced cases.
The recipe for adding examples is:
numpydoc
stypeNaiveForecaster
ForecastingGridSearchCV
(search in code base)ARIMA
To pick this up, post an estimator here that you are working on, to avoid double work, and make a PR.
The text was updated successfully, but these errors were encountered: