This repository was archived by the owner on Nov 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 62
Generate PrefixColumnConcatenator with entry point compiler instead of manually. #364
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
49c93d6
Generate PrefixColumnConcatenator with entry point compiler instead o…
216136f
Update PrefixColumnConcatenator docs.
65c78ff
Merge branch 'master' into prefix-col-concat
pieths 72f99c0
Add whitespace change to restart CI run. The Mac build never started.
dc7b9fc
Merge remote-tracking branch 'origin/prefix-col-concat' into prefix-c…
8afb279
Fix incorrect check in PrefixColumnConcatenator core file.
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
""" | ||
|
||
Combines several columns into a single vector-valued column by prefix. | ||
|
||
.. remarks:: | ||
``PrefixColumnConcatenator`` creates a single vector-valued column from | ||
multiple | ||
columns. It can be performed on data before training a model. The | ||
concatenation | ||
can significantly speed up the processing of data when the number of | ||
columns | ||
is as large as hundreds to thousands. | ||
|
||
:param columns: a dictionary of key-value pairs, where key is the output | ||
column name and value is a list of input column names. | ||
|
||
* Only one key-value pair is allowed. | ||
* Input column type: numeric or string. | ||
* Output column type: | ||
`Vector Type </nimbusml/concepts/types#vectortype-column>`_. | ||
|
||
The << operator can be used to set this value (see | ||
`Column Operator </nimbusml/concepts/columns>`_) | ||
|
||
For example | ||
* ColumnConcatenator(columns={'features': ['age', 'parity', | ||
'induced']}) | ||
* ColumnConcatenator() << {'features': ['age', 'parity', | ||
'induced']}) | ||
|
||
For more details see `Columns </nimbusml/concepts/columns>`_. | ||
|
||
.. seealso:: | ||
:py:class:`ColumnDropper | ||
<nimbusml.preprocessing.schema.ColumnDropper>`, | ||
:py:class:`ColumnSelector | ||
<nimbusml.preprocessing.schema.ColumnSelector>`. | ||
|
||
.. index:: transform, schema | ||
|
||
Example: | ||
.. literalinclude:: /../nimbusml/examples/PrefixColumnConcatenator.py | ||
:language: python | ||
""" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need this doc #Resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in latest commit.
In reply to: 346961442 [](ancestors = 346961442)