Skip to content
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

[JOSS] Link to User Guide from Examples section? #364

Closed
mlgill opened this issue Apr 11, 2018 · 2 comments
Closed

[JOSS] Link to User Guide from Examples section? #364

mlgill opened this issue Apr 11, 2018 · 2 comments
Assignees

Comments

@mlgill
Copy link

mlgill commented Apr 11, 2018

This is a suggestion, not a requirement. Mlxtend has a really nice User Guide, but it took me some time to find it since I saw the shorter examples section first. Is it worth linking to the user guide from the examples section for those who want more information?

@rasbt
Copy link
Owner

rasbt commented Apr 11, 2018

That's a good idea!

I think it would make most sense to include such a link at the end of the examples section in the docstrings. E.g.,

    ...
    Returns
    -------
    scores : array of float, shape=(len(list(n_splits)),)
        Array of scores of the estimator for each bootstrap
        replicate.

    Examples
    --------
    >>> from sklearn import datasets, linear_model
    >>> from mlxtend.evaluate import bootstrap_point632_score
    ...
    >>> print('95%% Confidence interval: [%.2f, %.2f]' % (lower, upper))
    95% Confidence interval: [0.90, 0.98]

    More examples can be found in the user guide at
    http://rasbt.github.io/mlxtend/user_guide/evaluate/bootstrap_point632_score/

In addition to having helpful links in the API docs, it will also be useful if people use the help function in Python (or ? in IPython).

However, the ipynb2markdown.py helper script should then remove this text & link from the output so that it doesn't appear on the linked website itself saying "more examples can be found at ...", which could lead to some confusion.

@rasbt rasbt self-assigned this Apr 17, 2018
@rasbt rasbt mentioned this issue Apr 21, 2018
5 tasks
@rasbt
Copy link
Owner

rasbt commented Apr 21, 2018

Alright, I just added links to the user guides to all API docs. Thanks again for this useful suggestion!

@rasbt rasbt closed this as completed Apr 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants