MLBlocks icon indicating copy to clipboard operation
MLBlocks copied to clipboard

Support reading an attribute from a class instead of calling a method?

Open csala opened this issue 7 years ago • 0 comments

This is a discussion issue as a followup #71

Should we natively support returning a class attribute value (or multiple) instead of calling a method of the class during the produce phase?

This could be simple achieved at the JSON level by simply not specifying the method key.

Then, we would have:

    "produce": {
        "output": [
            {
                "name": "feature_weights",
                "attribute": "feature_importances_"   # This would be optional, to be used only if the used name does not match the attribute name.
                "type": "list"
            }
        ]
    }

csala avatar Oct 12 '18 18:10 csala