package documentation
Undocumented
From __init__.py:
| Function | check |
A wrapper that checks the schema of data frames given a feature view or model contract. |
| Function | feature |
Undocumented |
A wrapper that checks the schema of data frames given a feature view or model contract.
```python @feature_view(...) class MyView:
id = Int32().as_entity() name = String()
@check_schema() def my_function(data: Annotated[pd.DataFrame, MyView]):
...
# Will raise an error since the name column is missing my_function(pd.DataFrame({
"id": [1, 2, 3],
})
def feature_view(source:
BatchSourceable | None = None, name: str | None = None, description: str | None = None, stream_source: StreamDataSource | None = None, application_source: BatchSourceable | None = None, materialized_source: BatchSourceable | None = None, materialize_from: datetime | None = None, contacts: list[ str] | list[ Contact] | None = None, tags: list[ str] | None = None, acceptable_freshness: timedelta | None = None, unacceptable_freshness: timedelta | None = None) -> Callable[ [ type[ T]], FeatureViewWrapper[ T]]:
(source)
¶
Undocumented