Skip to content

DOC Add link to plot_optics.py - #26970

Merged
adrinjalali merged 10 commits into
scikit-learn:mainfrom
tanjina-hub:Tanjina_branch
Aug 15, 2023
Merged

adrinjalali merged 10 commits into
scikit-learn:mainfrom
tanjina-hub:Tanjina_branch

Conversation

@tanjina-hub

@tanjina-hub tanjina-hub commented Aug 1, 2023 •

Copy link
Copy Markdown
Contributor

Towards #26927

Add link to plot_optics.py

#pyladies-sprint

@github-actions

github-actions Bot commented Aug 1, 2023 •

Copy link
Copy Markdown

✔️ Linting Passed

All linting checks passed. Your pull request is in excellent shape! ☀️

Generated for commit: b7a079b. Link to the linter CI: here

@adrinjalali adrinjalali changed the title my first open source contribution DOC Add link to plot_optics.py Aug 2, 2023
Comment thread examples/cluster/plot_optics.py Outdated
Comment on lines +12 to +13
For an example of usage, see
:ref:`sphx_glr_auto_examples_cluster_plot_optics.py`.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

this needs to go to the docstring of the OPTICS class, rather than here, which is in _optics.py

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@adrinjalali I followed your instruction but I really don't getting why some checks failed at the test?

Comment thread sklearn/cluster/_optics.py Outdated
Read more in the :ref:`User Guide <optics>`.

For an example of usage, see
:ref:`sphx_glr_auto_examples_plot_cluster_optics.py`.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

WARNING: undefined label: 'sphx_glr_auto_examples_plot_cluster_optics.py'

change it to:

    :ref:`sphx_glr_auto_examples_cluster_plot_optics.py`.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@greyisbetter Thanks, I tried your suggestion but still there is 2 failing checks in the test.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Using less extra spaces between paragraph may help. And I think it would be better if the example is at the end of the docstring.

@greyisbetter greyisbetter left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

try suggestion or simply run the command given below in your terminal before pushing:

black <path to _optics.py file>

Comment thread sklearn/cluster/_optics.py Outdated

Read more in the :ref:`User Guide <optics>`.

Read more in the :ref:`User Guide <optics>`.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
Read more in the :ref:`User Guide <optics>`.
Read more in the :ref:`User Guide <optics>`.

Comment thread sklearn/cluster/_optics.py Outdated
Comment on lines +235 to +236

For an example of usage, see :ref:`sphx_glr_auto_examples_cluster_plot_optics.py`.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
For an example of usage, see :ref:`sphx_glr_auto_examples_cluster_plot_optics.py`.
For an example of usage, see
:ref:`sphx_glr_auto_examples_cluster_plot_optics.py`.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@greyisbetter Thanks, I tried to follow all of the suggestion but still somehow it couldn't pass all the checks!

Comment thread sklearn/cluster/_optics.py Resolved
@adrinjalali
adrinjalali enabled auto-merge (squash) August 15, 2023 14:45
@adrinjalali
adrinjalali merged commit dadabb5 into scikit-learn:main Aug 15, 2023
@tanjina-hub
tanjina-hub deleted the Tanjina_branch branch August 15, 2023 15:56
TamaraAtanasoska pushed a commit to TamaraAtanasoska/scikit-learn that referenced this pull request Aug 21, 2023
akaashpatelmns pushed a commit to akaashp2000/scikit-learn that referenced this pull request Aug 25, 2023
glemaitre pushed a commit to glemaitre/scikit-learn that referenced this pull request Sep 18, 2023
jeremiedbb pushed a commit that referenced this pull request Sep 20, 2023
REDVM pushed a commit to REDVM/scikit-learn that referenced this pull request Nov 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants