question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Inconsistent documentation in neighbors/classification.py

See original GitHub issue

Per this line, the shape of the first argument, X, is n_query by n_feature. However, subsequent lines (and the code itself) seem to call it n_samples by n_outputs. The code is pretty self explanatory, but it would be nice that lines 138 and 144 are consistent.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
thomasjpfancommented, Feb 18, 2022

Closing because the original issue regarding consistency between X and the output is fixed on main:

https://github.com/scikit-learn/scikit-learn/blob/8d6d7d9f408642ae7394801f2d44db62aa0d5b0c/sklearn/neighbors/_classification.py#L574-L581

0reactions
fx86commented, Jan 17, 2019

I can take this up! If this is not already taken up.

ping @jnothman @leotrs

On Thu, 17 Jan 2019 at 8:32 AM, Joel Nothman notifications@github.com wrote:

Yes.

On Thu, 17 Jan 2019 at 13:56, fx86 notifications@github.com wrote:

X is n_samples by n_features would be more appropriate ? n_outputs sounds like the output of the target column, no ?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub < https://github.com/scikit-learn/scikit-learn/issues/12995#issuecomment-455024174 , or mute the thread < https://github.com/notifications/unsubscribe-auth/AAEz69GGaPUt5iA3A6sC_PjaniJFWg5eks5vD-ZogaJpZM4aDzkF

.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/scikit-learn/scikit-learn/issues/12995#issuecomment-455024970, or mute the thread https://github.com/notifications/unsubscribe-auth/ABPLM1-Gkkt7Wr7BY6SONtVXOfbfk9-7ks5vD-engaJpZM4aDzkF .

– (Handheld)

Read more comments on GitHub >

github_iconTop Results From Across the Web

User guide: contents — scikit-learn 1.2.0 documentation
User Guide: Supervised learning- Linear Models- Ordinary Least Squares, Ridge regression and classification, Lasso, Multi-task Lasso, Elastic-Net, ...
Read more >
fx86 - Profile - Bountysource
fx86 commented on this issueInconsistent documentation in neighbors/classification.py. scikit-learn 3 years ago.
Read more >
RESCRIPt: Reproducible sequence taxonomy reference database ...
Nucleotide sequence and taxonomy reference databases are critical resources for widespread applications including marker-gene and metagenome sequencing for ...
Read more >
Poor Documentation: Why It Happens and How to Fix It
Determining the specifics of what constitutes poor documentation is the first step. According to Drew K.
Read more >
Distribution of difference between each predictor and a trivial model ...
These techniques predict defects at the granularity of typical software assets, such as components and files. In this paper, we investigate feature-oriented ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found