FeatureConfig Class
Class to hold feature configuration.
Initialize all attributes.
Constructor
FeatureConfig(_id: str | None = None, _type: str | None = None, _args: Any | None = None, _kwargs: Any | None = None)
Parameters
| Name | Description |
|---|---|
|
_id
|
Id of the featurizer. Default value: None
|
|
_type
|
Type or column purpose the featurizer works on. Default value: None
|
|
_args
|
Arguments to be send to the featurizer. Default value: None
|
|
_kwargs
|
Keyword arguments to be send to the featurizer. Default value: None
|
Methods
| from_dict |
Load from dictionary. |
from_dict
Load from dictionary.
from_dict(dct: Dict[str, Any]) -> FeatureConfig
Parameters
| Name | Description |
|---|---|
|
cls
Required
|
Class object of FeatureConfig. |
|
dct
Required
|
Dictionary holding all the needed params. |
Returns
| Type | Description |
|---|---|
|
Created object. |
Attributes
featurizer_args
Get the featurizer args to be sent to the instance of the featurizer.
Returns
| Type | Description |
|---|---|
|
The args. |
featurizer_kwargs
Get the featurizer kwargs to be sent to the instance of the featurizer.
Returns
| Type | Description |
|---|---|
|
The key word arguments. |
featurizer_type
Get the feature type of the object.
Returns
| Type | Description |
|---|---|
|
The feature type. |
id
Get the id of the object.
Returns
| Type | Description |
|---|---|
|
The id. |