Feature Config
Module for handling configuration for feature generation.
Config
A configuration object that defines the dataset and features to be used in a feature generator.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
dataset
|
DatasetConfig
|
The configuration for the dataset to be used. |
required |
features
|
Sequence[FeatureConfig]
|
The configurations for the features to be generated. |
required |
Methods:
| Name | Description |
|---|---|
from_yaml |
Load a Config object from a YAML file. |
Source code in amee_utils/feature_generator/config.py
from_yaml(path)
classmethod
Load a Config object from a YAML file.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path
|
Path
|
The path to the YAML file. |
required |
Returns:
| Type | Description |
|---|---|
Config
|
The Config object loaded from the YAML file. |
Source code in amee_utils/feature_generator/config.py
DatasetConfig
Configuration for a dataset.
Attributes:
| Name | Type | Description |
|---|---|---|
key_cols |
list[str]
|
List of column names that serve as keys for the dataset. |
date_col |
str
|
Name of the column that contains date information for the dataset. |
Source code in amee_utils/feature_generator/config.py
FeatureConfig
A generic configuration class for features.
Source code in amee_utils/feature_generator/config.py
get_function_dict()
Return a dictionary of feature functions and their corresponding column names.
Returns:
| Type | Description |
|---|---|
dict
|
A dictionary of feature functions and their corresponding column names. |