Column Expand¶
Column Expand is used for adding arbitrary number of columns with user-provided values. This module is run directly on dense table(raw data), before data entering Data Transform.
Param¶
column_expand_param
¶
Attributes¶
Classes¶
ColumnExpandParam(append_header=None, method='manual', fill_value=consts.FLOAT_ZERO, need_run=True)
¶
Bases: BaseParam
Define method used for expanding column
Parameters:
Name | Type | Description | Default |
---|---|---|---|
append_header |
None or str or List[str], default
|
Name(s) for appended feature(s). If None is given, module outputs the original input value without any operation. |
None
|
method |
str, default
|
If method is 'manual', use user-specified |
'manual'
|
fill_value |
int or float or str or List[int] or List[float] or List[str], default
|
Used for filling expanded feature columns. If given a list, length of the list must match that of |
consts.FLOAT_ZERO
|
need_run |
Indicate if this module needed to be run. |
True
|
Source code in python/federatedml/param/column_expand_param.py
41 42 43 44 45 46 47 |
|
Attributes¶
append_header = append_header
instance-attribute
¶method = method
instance-attribute
¶fill_value = fill_value
instance-attribute
¶need_run = need_run
instance-attribute
¶Functions¶
check()
¶Source code in python/federatedml/param/column_expand_param.py
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 |
|
Last update:
2022-07-12