feature
Represent a feature object.
__all__ = ['BaseFeature', 'CategoricalFeature', 'ExposedFeature', 'Feature', 'Image', 'Metadata', 'MultivariateAsynchronousTimeSerie', 'MultivariateNumericalFeature', 'MultivariateSynchronousTimeSerie', 'NumericalFeature', 'Token', 'UnivariateAsynchronousTimeSerie', 'UnivariateSynchronousTimeSerie', 'YoloBboxWithClassFeature']
#
ExposedFeature = ExposedCategoricalFeature | ExposedCategoricalFeatureList | ExposedNumericalFeature | ExposedMultivariateNumericalFeature | ExposedBboxFeatureList | ExposedUnivariateSynchronousTimeSerie | ExposedUnivariateAsynchronousTimeSerie | ExposedMultivariateSynchronousTimeSerie | ExposedMultivariateAsynchronousTimeSerie | ExposedImage | ExposedToken | ExposedYoloBboxWithClassFeature | ExposedMetadata
#
EXPOSED_FEATURE_TYPE = TypeVar('EXPOSED_FEATURE_TYPE', bound=ExposedFeature)
#
Feature = NumericalFeature | CategoricalFeature | MultivariateNumericalFeature | UnivariateSynchronousTimeSerie | UnivariateAsynchronousTimeSerie | MultivariateSynchronousTimeSerie | MultivariateAsynchronousTimeSerie | Image | Token | YoloBboxWithClassFeature | Metadata
#
AbstractDataElement
#
Represent a schema column, with a name.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name |
str
|
|
required |
name: str
#
TargetableFeature
#
A feature that can be a target.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
is_target |
bool
|
|
False
|
is_target: bool = False
#
BaseFeature
#
ExplainableFeature
#
Define a feature object.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
preprocessor |
SklearnPreprocessor | IdentityPreprocessor
|
feature preprocessor function used to preprocess the data. |
required |
NumericalFeature
#
CategoricalFeature
#
Categorical feature.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
categories |
list[Union[str, int, bool]]
|
|
required |
MultivariateNumericalFeature
#
MultivariateNumericalFeature feature.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
size |
int
|
|
required |
channel_names |
list[str] | None
|
|
None
|
size: int = field(kw_only=True)
#
channel_names: list[str] | None = field(default=None, kw_only=True)
#
as_exposed: ExposedMultivariateNumericalFeature
#
MultivariateNumericalFeature as ExposedMultivariateNumericalFeature.
from_exposed(exposed_feature: ExposedMultivariateNumericalFeature) -> Self
#
MultivariateNumericalFeature from ExposedMultivariateNumericalFeature.
Source code in src/xpdeep/dataset/schema/feature/feature.py
UnivariateSynchronousTimeSerie
#
UnivariateSynchronousTimeSerie feature.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
size |
int
|
|
required |
mirrored_channel |
str | None
|
|
None
|
size: int = field(kw_only=True)
#
mirrored_channel: str | None = field(default=None, kw_only=True)
#
as_exposed: ExposedUnivariateSynchronousTimeSerie
#
UnivariateSynchronousTimeSerie as ExposedUnivariateSynchronousTimeSerie.
from_exposed(exposed_feature: ExposedUnivariateSynchronousTimeSerie) -> Self
#
UnivariateSynchronousTimeSerie from ExposedUnivariateSynchronousTimeSerie.
Source code in src/xpdeep/dataset/schema/feature/feature.py
UnivariateAsynchronousTimeSerie
#
UnivariateSynchronousTimeSerie feature.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
size |
int
|
|
required |
mirrored_channel |
str | None
|
|
None
|
size: int = field(kw_only=True)
#
mirrored_channel: str | None = field(default=None, kw_only=True)
#
as_exposed: ExposedUnivariateAsynchronousTimeSerie
#
UnivariateAsynchronousTimeSerie as ExposedUnivariateAsynchronousTimeSerie.
from_exposed(exposed_feature: ExposedUnivariateAsynchronousTimeSerie) -> Self
#
UnivariateAsynchronousTimeSerie from ExposedUnivariateAsynchronousTimeSerie.
Source code in src/xpdeep/dataset/schema/feature/feature.py
MultivariateSynchronousTimeSerie
#
MultivariateSynchronousTimeSerie feature.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
size |
list[int]
|
|
required |
channel_names |
str | None
|
|
None
|
size: list[int] = field(kw_only=True)
#
channel_names: str | None = field(default=None, kw_only=True)
#
as_exposed: ExposedMultivariateSynchronousTimeSerie
#
MultivariateSynchronousTimeSerie as ExposedMultivariateSynchronousTimeSerie.
from_exposed(exposed_feature: ExposedMultivariateSynchronousTimeSerie) -> Self
#
MultivariateSynchronousTimeSerie from ExposedMultivariateSynchronousTimeSerie.
Source code in src/xpdeep/dataset/schema/feature/feature.py
MultivariateAsynchronousTimeSerie
#
MultivariateAsynchronousTimeSerie feature.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
size |
list[int]
|
|
required |
channel_names |
list[str] | None
|
|
None
|
size: list[int] = field(kw_only=True)
#
channel_names: list[str] | None = field(default=None, kw_only=True)
#
as_exposed: ExposedMultivariateAsynchronousTimeSerie
#
MultivariateAsynchronousTimeSerie as ExposedMultivariateAsynchronousTimeSerie.
from_exposed(exposed_feature: ExposedMultivariateAsynchronousTimeSerie) -> Self
#
MultivariateAsynchronousTimeSerie from ExposedMultivariateAsynchronousTimeSerie.