Skip to content

Commit 2267064

Browse files
committed
Fix imports in docs
Signed-off-by: Felix Wang <wangfelix98@gmail.com>
1 parent f93c844 commit 2267064

File tree

6 files changed

+14
-4
lines changed

6 files changed

+14
-4
lines changed

docs/getting-started/concepts/feature-view.md

+8
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ A feature view is an object that represents a logical group of time-series featu
77
{% tabs %}
88
{% tab title="driver_trips_feature_view.py" %}
99
```python
10+
from feast import BigQuerySource, FeatureView, Field, Float32, Int64
11+
1012
driver_stats_fv = FeatureView(
1113
name="driver_activity",
1214
entities=["driver"],
@@ -39,6 +41,8 @@ If a feature view contains features that are not related to a specific entity, t
3941
{% tabs %}
4042
{% tab title="global_stats.py" %}
4143
```python
44+
from feast import BigQuerySource, FeatureView, Field, Int64
45+
4246
global_stats_fv = FeatureView(
4347
name="global_stats",
4448
entities=[],
@@ -70,6 +74,8 @@ It is suggested that you dynamically specify the new FeatureView name using `.wi
7074
{% tabs %}
7175
{% tab title="location_stats_feature_view.py" %}
7276
```python
77+
from feast import BigQuerySource, Entity, FeatureView, Field, Int32, ValueType
78+
7379
location = Entity(name="location", join_key="location_id", value_type=ValueType.INT64)
7480

7581
location_stats_fv= FeatureView(
@@ -115,6 +121,8 @@ A feature is an individual measurable property. It is typically a property obser
115121
Features are defined as part of feature views. Since Feast does not transform data, a feature is essentially a schema that only contains a name and a type:
116122

117123
```python
124+
from feast import Field, Float32
125+
118126
trips_today = Field(
119127
name="trips_today",
120128
dtype=Float32

docs/getting-started/concepts/point-in-time-joins.md

+2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ Feature values in Feast are modeled as time-series records. Below is an example
77
The above table can be registered with Feast through the following feature view:
88

99
```python
10+
from feast import FeatureView, Field, FileSource, Float32, Int64
11+
1012
driver_stats_fv = FeatureView(
1113
name="driver_hourly_stats",
1214
entities=["driver"],

docs/reference/data-sources/push.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ When using a PushSource as a stream source in the definition of a feature view,
1414
### Defining a push source
1515

1616
```python
17-
from feast import PushSource, ValueType, BigQuerySource, FeatureView, Feature
17+
from feast import PushSource, ValueType, BigQuerySource, FeatureView, Feature, Field, Int64
1818

1919
push_source = PushSource(
2020
name="push_source",

docs/reference/feature-repository.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ A feature repository can also contain one or more Python files that contain feat
8989
```python
9090
from datetime import timedelta
9191
92-
from feast import BigQuerySource, Entity, Feature, FeatureView, ValueType
92+
from feast import BigQuerySource, Entity, Feature, FeatureView, Field, Float32, String, ValueType
9393
9494
driver_locations_source = BigQuerySource(
9595
table_ref="rh_prod.ride_hailing_co.drivers",

docs/reference/feature-repository/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ A feature repository can also contain one or more Python files that contain feat
9494
```python
9595
from datetime import timedelta
9696
97-
from feast import BigQuerySource, Entity, Feature, FeatureView, ValueType
97+
from feast import BigQuerySource, Entity, Feature, FeatureView, Field, Float32, String, ValueType
9898
9999
driver_locations_source = BigQuerySource(
100100
table_ref="rh_prod.ride_hailing_co.drivers",

docs/tutorials/validating-historical-features.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ pyarrow.parquet.write_table(entities_2019_table, "entities.parquet")
107107
import pyarrow.parquet
108108
import pandas as pd
109109

110-
from feast import Feature, FeatureView, Entity, FeatureStore
110+
from feast import Feature, FeatureView, Entity, FeatureStore, Field, Float64, Int64
111111
from feast.value_type import ValueType
112112
from feast.data_format import ParquetFormat
113113
from feast.on_demand_feature_view import on_demand_feature_view

0 commit comments

Comments
 (0)