Github user jkbradley commented on the pull request:
https://github.com/apache/spark/pull/5731#issuecomment-126534353
Here are some initial thoughts: We should definitely permit users to
specify features with indices and names. Supporting both within the same type
makes the API pretty complex. What if we instead had 1 Param for each way of
selecting columns, where the full set of selected columns will be the union of
each subset (without duplicates)?
2 params:
* ```selectedIndices: IntArrayParam```
* ```selectedNames: StringArrayParam```
E.g.:
* Input Vector col with length 10 and names "col1, col2, ..."
* selectedIndices = 1, 3
* selectedNames = "col1", "col5"
* Output Vector has columns 1, 3, 5
I'll copy this proposal to JIRA.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]