Skip to content

Feature

Feature is a pydantic data structure for holding feature type and shape information for a given feature. It is used in the DataInterface class to automatically store feature information.

opsml.types.Feature

Bases: BaseModel

Source code in opsml/types/model.py
108
109
110
111
class Feature(BaseModel):
    feature_type: str
    shape: Tuple[Any, ...]
    extra_args: Dict[str, Optional[Union[str, int, float, List[str]]]] = Field(default_factory=dict)