Skip to content

Support ColumnAttribute on properties and not just fields #254

Closed

Description

@kevmal

It looks like it's been considered:

// REVIEW: This will have to be updated whenever we start
// supporting properties and not just fields.

I just wanted to get the issue started as it's probably the best solution to #180.

Activity

  1. zeahmed commented on Jun 1, 2018

    @zeahmed
    Contributor

    It could be a good feature to support custom transformation on some feature while using CollectionDataSource e.g. applying log on some numeric column(s).

  2. isaacabraham commented on Jun 7, 2018

    @isaacabraham

    Please can you also support not just properties but also non-default constructors? This is important to get a coherent F# story going.

  3. dsyme commented on Jul 30, 2018

    @dsyme
    Contributor

    I searched for uses of "GetFields" and here's what I see:

    Relevant:

    Not relevant:

  4. dsyme commented on Jul 31, 2018

    @dsyme
    Contributor

    @eerhardt I've taken a look at what it might take to fix this, could you take a look and check the general direction of travel please?

    Here's the prototype: https://github.com/dsyme/machinelearning/compare/fs1...dsyme:fs2?expand=1

    I've submitted a WIP PR for this though it is not yet complete: #616

  5. eerhardt commented on Jul 31, 2018

    @eerhardt
    Member

    Taking a look now. /cc @Ivanidzo4ka as well, since he was investigating allowing properties too.

  6. Zruty0 commented on Aug 2, 2018

    @Zruty0
    Contributor

    Now that #616 is in, I think this one should be closed.

    I discovered one inconvenient side effect though: we are requiring both the getter and the setter to be present and public for the properties. It adds confusion to the cases like in #595 , where you can use properties to act like 'calculated columns', without a clear way to provide a setter.

    I'll open a new issue for this.

  7. ghost locked as resolved and limited conversation to collaborators on Mar 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    F#Support of F# languageenhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions