mt_metadata.features.weight_kernel ================================== .. py:module:: mt_metadata.features.weight_kernel Classes ------- .. autoapisummary:: mt_metadata.features.weight_kernel.ThresholdEnum mt_metadata.features.weight_kernel.HalfWindowStyleEnum mt_metadata.features.weight_kernel.FeatureWeightingWindow Module Contents --------------- .. py:class:: ThresholdEnum Bases: :py:obj:`mt_metadata.common.enumerations.StrEnumerationBase` str(object='') -> str str(bytes_or_buffer[, encoding[, errors]]) -> str Create a new string object from the given object. If encoding or errors is specified, then the object must expose a data buffer that will be decoded using the given encoding and error handler. Otherwise, returns the result of object.__str__() (if defined) or repr(object). encoding defaults to 'utf-8'. errors defaults to 'strict'. .. py:attribute:: low_cut :value: 'low cut' .. py:attribute:: high_cut :value: 'high cut' .. py:class:: HalfWindowStyleEnum Bases: :py:obj:`mt_metadata.common.enumerations.StrEnumerationBase` str(object='') -> str str(bytes_or_buffer[, encoding[, errors]]) -> str Create a new string object from the given object. If encoding or errors is specified, then the object must expose a data buffer that will be decoded using the given encoding and error handler. Otherwise, returns the result of object.__str__() (if defined) or repr(object). encoding defaults to 'utf-8'. errors defaults to 'strict'. .. py:attribute:: hamming :value: 'hamming' .. py:attribute:: hann :value: 'hann' .. py:attribute:: rectangle :value: 'rectangle' .. py:class:: FeatureWeightingWindow(**data) Bases: :py:obj:`mt_metadata.base.MetadataBase` Base class for all metadata objects with Pydantic validation. MetadataBase extends DotNotationBaseModel (which inherits from Pydantic's BaseModel) to provide automatic validation according to metadata standards. It adds functionality beyond dictionaries, supporting JSON, XML, pandas Series, and other formats for metadata interchange. .. attribute:: _skip_equals Private attribute listing fields to skip in equality comparisons :type: list[str] .. attribute:: _fields Private attribute caching field information :type: dict[str, Any] .. rubric:: Notes - All field assignments are validated automatically via Pydantic - None values are converted to appropriate defaults (empty string or 0.0) - Supports nested attribute access via dot notation - Thread-safe for read operations after initialization .. py:attribute:: threshold :type: Annotated[ThresholdEnum, Field(default='low cut', description='Specify which side of a threshold should downweighted.', alias=None, json_schema_extra={'units': None, 'required': True, 'examples': ['low cut']})] .. py:attribute:: half_window_style :type: Annotated[HalfWindowStyleEnum, Field(default='hann', description='What taper to use between the 0 (rejected) and 1 (accepted) values.', alias=None, json_schema_extra={'units': None, 'required': True, 'examples': ['hann']})] .. py:attribute:: transition_lower_bound :type: Annotated[float, Field(default=-np.inf, description='a refernece point for where the function begins to change from 0 to 1 or from 1 to zero', alias=None, json_schema_extra={'units': None, 'required': True, 'examples': ['0.3']})] .. py:attribute:: transition_upper_bound :type: Annotated[float, Field(default=np.inf, description='a refernece point for where the function finishes changing from 0 to 1 or from 1 to zero', alias=None, json_schema_extra={'units': None, 'required': True, 'examples': ['0.999']})]