Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Offline Pipeline] Static sources / one-time execution #14

Open
sarahwooders opened this issue Dec 1, 2021 · 0 comments
Open

[Offline Pipeline] Static sources / one-time execution #14

sarahwooders opened this issue Dec 1, 2021 · 0 comments

Comments

@sarahwooders
Copy link
Contributor

sarahwooders commented Dec 1, 2021

The offline pipeline is built for offline development of features for experimentation and model training. The offline pipeline works with a static data source and writes the resulting features to either a CSV or an external DB connection.

The offline pipeline should be easily transferable to the online setting by changing the source type to be dynamic (e.g. a kafka stream). The offline pipeline will complete execution once all the data is read and processed.

Example

# define connectors 
source_conn = TableConnector(hive_connection, historical=True)
embedding_conn = TableConnector(redis_connection, historical=False) 

# offline pipeline requires that all sources are static
pipeline = Ralf(offline=True) 
source = ralf.csv_source(filename="data.csv", static=True, connector=source_conn) 
user_clicks = source.groupby(key="user") 
embedding = user_clicks.map(MyOperator, args=(...), connector=embedding_conn)
pipeline.run()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant