Skip to content

Rename X,y to features, labels #570

Closed

Description

@mfeurer

As suggested here: #547 (comment)

Activity

  1. PGijsbers commented on Oct 15, 2018

    @PGijsbers
    Member

    Hi,
    I've been wanting to start helping more again, especially after next week.
    This seems like an easy enough issue to jump into. Unless anyone from #547 would prefer to work on it of course :)

    To what extent will the renaming go? There are several cases where the X,y naming convention is used:

    One could leave the function local variables untouched without the end-user ever noticing. But I do favor being consistent myself.

  2. mfeurer commented on Oct 15, 2018

    @mfeurer
    MemberAuthor

    Hey, that sounds great. We'll hopefully get #547 merged today or tomorrow, @glemaitre do you think we can get #545 merged quickly afterwards? Then the two biggest PRs would be done and his should be feasible without too many breaking changes. Also, I totally agree that you should strive to rename all variables and not just the public ones.

  3. glemaitre commented on Oct 15, 2018

    @glemaitre
    Contributor

    @glemaitre do you think we can get #545 merged quickly afterwards

    Yes right after #547. I just need to address the missing point and merge conflict. I actually need the PR to upload some dataset :)

  4. PGijsbers commented on Oct 16, 2018

    @PGijsbers
    Member

    Cool! :) I'll try to keep an eye on it, but a ping here after the merges is appreciated!

  5. PGijsbers commented on Oct 27, 2018

    @PGijsbers
    Member

    I noticed both PRs have been merged, so I will start working on it now.

  6. PGijsbers commented on Oct 27, 2018

    @PGijsbers
    Member

    It seems the development branch is failing unit tests as is. Is there any idea on whether or not this is resolved soon? It seems a little dangerous to make changes and not be able to verify if I broke anything? @mfeurer

  7. mfeurer commented on Nov 13, 2018

    @mfeurer
    MemberAuthor

    Hey, yes, the development branch currently has one failing unit test. @janvanrijn promised to fix this throughout the next days (as this requires quite a lot of work). However, it should be safe to ignore this unit test for renaming the attributes.

  8. added
    Good First Issue
    on Jan 15, 2019
  9. removed their assignment
    on Mar 7, 2019
  10. PGijsbers commented on Mar 7, 2019

    @PGijsbers
    Member

    I'm unassigning myself. I'll happily still do it (when I have time, e.g. in the hackathon), but I figured if someone else (new) wants to pick this up, that is fine too. The idea of me picking this up was so I could get myself familiar with the code again, but that point is moot as I had to get into things for last week's PRs.

  11. skubatur commented on Mar 9, 2020

    @skubatur

    Can I be assigned to this one?

  12. PGijsbers commented on Mar 9, 2020

    @PGijsbers
    Member

    Thanks for wanting to contribute! We wrote contribution guidelines here and if you have any other questions feel free to ask :) Looking forward to your PR.

  13. skubatur commented on Mar 9, 2020

    @skubatur

    Thanks for wanting to contribute! We wrote contribution guidelines here and if you have any other questions feel free to ask :) Looking forward to your PR.

    So, to re-iterate what needs to be done. We are renaming X to features, and y to labels.
    In the following cases:

    • local variables in examples
    • function names
    • local variables in functions
    • docstrings of said functions

    Correct?
    Or is X -> data a better choice?

  14. PGijsbers commented on Mar 10, 2020

    @PGijsbers
    Member

    @mfeurer Where do you stand on this nowadays? I don't have a preference (as long as its all lower-case ;) )

  15. mfeurer commented on Mar 11, 2020

    @mfeurer
    MemberAuthor

    Thanks @skubatur for picking this up.

    I don't have a strong preference. I'm wondering what a good name for X would be, though. I wouldn't call it features as this doesn't imply we're talking about data. I'm also not 100% sure about calling it data as the observations y is also data. @amueller @PGijsbers @glemaitre

  16. PGijsbers commented on Mar 11, 2020

    @PGijsbers
    Member

    The selection of which feature is the target is in some sense also arbitrary. I don't really care as long as it is consistent and lower case.

  17. PGijsbers commented on Feb 23, 2023

    @PGijsbers
    Member

    We have decided that for now we do not want to rename the variables anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Good First Issue

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions