feature
The features module provides a list of feature object to be used to define the dataset structure.
Modules:
| Name | Description |
|---|---|
abstracts |
Feature abstract classes module. |
augmentation |
feature's utils. |
feature |
Represent a feature object. |
feature_types |
Feature types module. |
Classes:
| Name | Description |
|---|---|
BaseFeature |
Base Feature used if no convenient available feature. |
ExplainableFeature |
Define a feature object. |
IndexMetadata |
Represents an index metadata, automatically added to the schema, cf doc dataset/concept. |
BaseFeature
#
ExplainableFeature
#
Define a feature object.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
|
UUID | None
|
Feature Identifier |
None
|
|
bool
|
Whether the feature is target or not. |
False
|
|
ImageFeature | NumericalFeature | CategoricalFeature | MultivariateTimeSeriesFeature | UnivariateTimeSeriesFeature | MultivariateNumericalFeature | BoundingBoxesFeature
|
|
required |
|
Feature type. |
required | |
|
TorchPreprocessor | SklearnPreprocessor | IdentityPreprocessor
|
The feature preprocessor function used to preprocess the data. |
required |
|
str
|
|
required |
|
ImageFeatureAugmentation | None
|
|
None
|
Methods:
| Name | Description |
|---|---|
to_model |
Convert to FeatureInsert instance. |
Attributes:
feature_type: ImageFeature | NumericalFeature | CategoricalFeature | MultivariateTimeSeriesFeature | UnivariateTimeSeriesFeature | MultivariateNumericalFeature | BoundingBoxesFeature = field(kw_only=True)
#
preprocessor: TorchPreprocessor | SklearnPreprocessor | IdentityPreprocessor | BoundingBoxesPreprocessor = field(kw_only=True)
#
feature_augmentation: ImageFeatureAugmentation | None = field(kw_only=True, default=None)
#
to_model() -> FeatureInsert
#
Convert to FeatureInsert instance.
Source code in src/xpdeep/dataset/feature/feature.py
IndexMetadata
#
Represents an index metadata, automatically added to the schema, cf doc dataset/concept.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
|
str
|
|
required |
|
str | None
|
|
None
|
|
str
|
|
'xpdeep_index'
|
Methods:
| Name | Description |
|---|---|
to_model |
Convert to IndexMetadataInsert instance. |
Attributes:
| Name | Type | Description |
|---|---|---|
name |
str
|
|
id |
str | None
|
|
feature_type |
str
|
|