Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
f1fd9b8
Allow specifying FeatureServices in FeatureStore methods
achals Jul 6, 2021
27ea33e
format and lint
achals Jul 6, 2021
7ae1ed3
features_refs -> features
achals Jul 6, 2021
6269200
remote type: ignores
achals Jul 6, 2021
8574163
implement applying and persisting feature services into registry
achals Jul 6, 2021
dbe2995
Fix integration test references
achals Jul 6, 2021
7efd3c3
Add backwards compatibility
achals Jul 6, 2021
3e54197
More lint
achals Jul 6, 2021
3e6cad3
add integration tests
achals Jul 7, 2021
86a528a
refactor and lint
achals Jul 7, 2021
a929aa4
More tests
achals Jul 7, 2021
0368903
Add cli commands
achals Jul 7, 2021
7633674
Update sdk/python/feast/feature_store.py
achals Jul 7, 2021
f48542f
Update sdk/python/feast/feature_store.py
achals Jul 7, 2021
42c6a5f
Update sdk/python/feast/feature_store.py
achals Jul 7, 2021
f612ab3
Update sdk/python/feast/feature_store.py
achals Jul 7, 2021
8fe06c1
Update tests to use file offline source
achals Jul 7, 2021
7248a4c
Make tests integration and lint
achals Jul 7, 2021
09a651d
Retrieve feature services to avoid stale references
achals Jul 7, 2021
8dc58aa
Fix lint
achals Jul 7, 2021
6f09686
Merge changes from master
achals Jul 9, 2021
c656190
Merge master into branch
achals Jul 9, 2021
9540c72
fix tests
achals Jul 9, 2021
4241885
fix import
achals Jul 9, 2021
77ab6c0
fix integ tests
achals Jul 9, 2021
6eac6e8
CR
achals Jul 9, 2021
976293b
format
achals Jul 9, 2021
e1f9a07
Fix integ test
achals Jul 10, 2021
52a6507
Fix integ test
achals Jul 10, 2021
8a91fc1
Merge branch 'master' into achal/feature-service-api
achals Jul 12, 2021
c457f1e
Rename in comments
achals Jul 12, 2021
e3d70a9
Docstrings for Feature Services
achals Jul 12, 2021
545f675
make format
achals Jul 12, 2021
a77eb0f
merge from master
achals Jul 14, 2021
eaa3a89
format and refactor
achals Jul 14, 2021
e3cebc1
docs and updates
achals Jul 14, 2021
8a1534e
Update docs/concepts/feature-service.md
achals Jul 14, 2021
3274a1e
Update sdk/python/feast/feature_service.py
achals Jul 14, 2021
39bf511
Update sdk/python/feast/feature_service.py
achals Jul 14, 2021
2133abc
docs docs docs
achals Jul 14, 2021
f6938c0
docs docs
achals Jul 14, 2021
d495856
merge from master
achals Jul 19, 2021
1317d08
Fixes after merge
achals Jul 19, 2021
ea2210d
Remove dupe
achals Jul 19, 2021
2f0d698
Renames and deletions
achals Jul 19, 2021
ac211d2
lint
achals Jul 19, 2021
23c0d80
format and tests
achals Jul 19, 2021
798df64
remove unused imports
achals Jul 19, 2021
81fb228
fix registry
achals Jul 19, 2021
21aa6b6
fix docs
achals Jul 19, 2021
a6ecc6d
fix dangling print
achals Jul 20, 2021
54c95ae
make format and lint
achals Jul 20, 2021
2394f0a
list feature servces
achals Jul 20, 2021
2d11ab4
Merge branch 'master' into achal/feature-service-api
achals Jul 22, 2021
1ed9592
Merge from master
achals Jul 22, 2021
2a48ae8
fix tests
achals Jul 22, 2021
0943faf
Remove unused file
achals Jul 22, 2021
03d0ba5
single heading
achals Jul 22, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
docs and updates
Signed-off-by: Achal Shah <achals@gmail.com>
  • Loading branch information
achals committed Jul 14, 2021
commit e3cebc13aa78748edf6945fed4afa1f619033b83
29 changes: 29 additions & 0 deletions docs/concepts/feature-service.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Feature Service

### Feature Service
Comment thread
achals marked this conversation as resolved.
Outdated

A feature service is an object that represents a logical group of features from one or more [feature views](feature-view.md).
Feature Services allows features from within a feature view to be used as needed by an ML model. Users can expect to create one Feature Service per Model, keeping the features needed by the model tracked.
Comment thread
achals marked this conversation as resolved.
Outdated

{% tabs %}
{% tab title="driver\_trips\_feature\_service.py" %}
```python
from driver_trips_feature_view import driver_stats_fv

driver_stats_fs = FeatureService(
name="driver_activity",
features=[driver_stats_fv]
Comment thread
achals marked this conversation as resolved.
Outdated
)
```
{% endtab %}
{% endtabs %}

Feature services are used during

* The generation of training datasets when querying feature views in order to find historical feature values. A single training dataset may consist of features from multiple feature views.
* Retrieval of features from the online store. Feature services provide the schema definition to Feast in order to look up features from the online store.
Comment thread
achals marked this conversation as resolved.
Outdated

{% hint style="info" %}
Feast does not currently spin up any servers to serve these features.
Comment thread
achals marked this conversation as resolved.
Outdated
{% endhint %}

14 changes: 8 additions & 6 deletions sdk/python/feast/feature_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@

class FeatureService:
"""
A FeatureService object is used to group features together for retrieval.
The features may all be part of the same Feature view, or from a combination of Feature views.
A feature service allows users to group features together for retrieval.
Comment thread
achals marked this conversation as resolved.
Outdated
The features may all be part of the same feature view, or from a combination of feature views.
Comment thread
achals marked this conversation as resolved.
Outdated

Comment thread
achals marked this conversation as resolved.
Outdated
"""

Expand All @@ -36,10 +36,12 @@ def __init__(
):
"""
Create a new Feature Service object.
Comment thread
achals marked this conversation as resolved.
:param name: A unique name for the Feature Service.
:param features: A list of Features that are grouped as part of this FeatureService.
The list may contain Feature Views, Feature Tables, or a subset of either.
:param tags: A dictionary of key-value pairs used for organizing Feature Services.

Args:
name: A unique name for the Feature Service.
features: A list of Features that are grouped as part of this FeatureService.
The list may contain Feature Views, Feature Tables, or a subset of either.
tags: A dictionary of key-value pairs used for organizing Feature Services.
"""
self.name = name
self.features = []
Expand Down