Data aggregation pipeline for running real-time predictive models
Project description
![Blurr](logo.png)
[![CircleCI](https://circleci.com/gh/productml/blurr/tree/master.svg?style=svg)](https://circleci.com/gh/productml/blurr/tree/master)
[![Documentation Status](https://readthedocs.org/projects/productml-blurr/badge/?version=latest)](http://productml-blurr.readthedocs.io/en/latest/?badge=latest)
```
We believe in a
world where everyone is a
data engineer
A data scientist
An ML engineer, ooh!
The lines are blurred (cough)
Like development
and operations became
DevOps over time
```
- [What is Blurr](# Turn-raw-data-into-features-for-machine-learning-without-ETLs)
- [DTC at a glance](# DTC-at-a-glance)
- [Tutorial and Docs](#Tutorial-and-Docs)
- [Install](#Use-Blurr)
- [Walkthroughs](#Walkthroughs)
- [Contribute](#Contribute-to-Blurr)
- [Data Science 'Joel Test'](#Data-Science-'Joel-Test')
- [Get in touch](#Get-in-touch)
- [Roadmap](#Roadmap)
# Turn raw data into features for machine learning without ETLs
Blurr transforms `raw data` into `features` for model training and prediction using a `high-level expressive YAML-based language` called the Data Transform Configuration (DTC).
For production ML applications, `experimentation` and `iteration speed` is important. Working directly with raw data provides the most flexibility. Blurr allows product teams to iterate quickly during ML dev and provides a self-service way to take experiments to production.
![Data Transformer](docs/images/data-transformer.png)
# DTC at a glance
Raw data like this
```javascript
{ "user_id": "09C1", "session_id": "915D", "country" : "US", "event_id": "game_start" }
{ "user_id": "09C1", "session_id": "915D", "country" : "US", "event_id": "game_end", "won": 1 }
{ "user_id": "09C1", "session_id": "915D", "country" : "US", "event_id": "game_start" }
{ "user_id": "09C1", "session_id": "915D", "country" : "US", "event_id": "game_end", "won": 1 }
{ "user_id": "B6FA", "session_id": "D043", "country" : "US", "event_id": "game_start" }
{ "user_id": "B6FA", "session_id": "D043", "country" : "US", "event_id": "game_end", "won": 1 }
{ "user_id": "09C1", "session_id": "T8KA", "country" : "UK", "event_id": "game_start" }
{ "user_id": "09C1", "session_id": "T8KA", "country" : "UK", "event_id": "game_end", "won": 1 }
```
turns into
session_id | user_id | games_played | games_won
--- | ------------ | -------------- | --------
915D | 09C1 | 2 | 2
D043 | B6FA | 1 | 1
T8KA | 09C1 | 1 | 1
using this DTC
```yaml
Type: Blurr:Streaming
Version: '2018-03-07'
Store:
- Type: Blurr:Store:MemoryStore
Name: hello_world_store
Identity: source.user_id
DataGroups:
- Type: Blurr:DataGroup:BlockAggregate
Name: session_stats
Store: hello_world_store
Split: source.session_id != session_stats.session_id
Fields:
- Name: session_id
Type: string
Value: source.session_id
- Name: games_played
Type: integer
Value: session_stats.games_played + 1
When: source.event_id == 'game_start'
- Name: games_won
Type: integer
Value: session_stats.games_won + 1
When: source.event_id == 'game_end' and source.won == '1'
```
# Tutorial and Docs
[Streaming DTC Tutorial](http://productml-blurr.readthedocs.io/en/latest/Streaming%20dtc%20tutorial/) |
[Window DTC Tutorial](http://productml-blurr.readthedocs.io/en/latest/Window%20dtc%20tutorial/)
[Read the docs](http://productml-blurr.readthedocs.io/en/latest/)
# Use Blurr
We interact with Blurr using a Command Line Interface (CLI). Blurr is installed via pip:
`$ pip install blurr`
Transform data
```
$ blurr transform \
--streaming-dtc ./dtcs/sessionize-dtc.yml \
--window-dtc ./dtcs/windowing-dtc.yml \
--source file://path
```
[CLI documentation](http://productml-blurr.readthedocs.io/en/latest/Blurr%20CLI/)
# Walkthroughs
Walkthroughs for using Blurr to build models for specific use cases.
[Dynamic in-game offers (Offer AI)](examples/offer-ai/offer-ai-walkthrough.md)
[Frequently Bought Together](examples/frequently-bought-together/fbt-walkthrough.md)
# Contribute to Blurr
Welcome to the Blurr community! We are so glad that you share our passion for making data management and machine learning accessible to everyone.
Please create a [new issue](https://github.com/productml/blurr/issues/new) to begin a discussion. Alternatively, feel free to pick up an existing issue!
Please sign the [Contributor License Agreement](https://docs.google.com/forms/d/e/1FAIpQLSeUP5RFuXH0Kbi4CnV6V3IZ-xyJmd3KQP_2Ij-pTvN-_h7wUg/viewform) before raising a pull request.
# Data Science 'Joel Test'
Inspired by the (old school) [Joel Test](https://www.joelonsoftware.com/2000/08/09/the-joel-test-12-steps-to-better-code/) to rate software teams, here's our version for data science teams. What's your score? We'd love to know!
1. Data pipelines are versioned and reproducible
2. Pipelines (re)build in one step
3. Deploying to production needs minimal engineering help
4. Successful ML is a long game. You play it like it is
5. Kaizen. Experimentation and iterations are a way of life
# Get in touch
Email us at blurr@productml.com or star this project to stay in touch!
# Roadmap
Blurr is all about enabling machine learning and AI teams to run faster.
**Developer Preview 0**: Local transformations only
**Developer Preview 1**: S3-S3 data transformations
**Developer Preview 2**: Add DynamoDB as a Store + Features server for ML production use
Ingestion connectors to Kafka and Spark
[![CircleCI](https://circleci.com/gh/productml/blurr/tree/master.svg?style=svg)](https://circleci.com/gh/productml/blurr/tree/master)
[![Documentation Status](https://readthedocs.org/projects/productml-blurr/badge/?version=latest)](http://productml-blurr.readthedocs.io/en/latest/?badge=latest)
```
We believe in a
world where everyone is a
data engineer
A data scientist
An ML engineer, ooh!
The lines are blurred (cough)
Like development
and operations became
DevOps over time
```
- [What is Blurr](# Turn-raw-data-into-features-for-machine-learning-without-ETLs)
- [DTC at a glance](# DTC-at-a-glance)
- [Tutorial and Docs](#Tutorial-and-Docs)
- [Install](#Use-Blurr)
- [Walkthroughs](#Walkthroughs)
- [Contribute](#Contribute-to-Blurr)
- [Data Science 'Joel Test'](#Data-Science-'Joel-Test')
- [Get in touch](#Get-in-touch)
- [Roadmap](#Roadmap)
# Turn raw data into features for machine learning without ETLs
Blurr transforms `raw data` into `features` for model training and prediction using a `high-level expressive YAML-based language` called the Data Transform Configuration (DTC).
For production ML applications, `experimentation` and `iteration speed` is important. Working directly with raw data provides the most flexibility. Blurr allows product teams to iterate quickly during ML dev and provides a self-service way to take experiments to production.
![Data Transformer](docs/images/data-transformer.png)
# DTC at a glance
Raw data like this
```javascript
{ "user_id": "09C1", "session_id": "915D", "country" : "US", "event_id": "game_start" }
{ "user_id": "09C1", "session_id": "915D", "country" : "US", "event_id": "game_end", "won": 1 }
{ "user_id": "09C1", "session_id": "915D", "country" : "US", "event_id": "game_start" }
{ "user_id": "09C1", "session_id": "915D", "country" : "US", "event_id": "game_end", "won": 1 }
{ "user_id": "B6FA", "session_id": "D043", "country" : "US", "event_id": "game_start" }
{ "user_id": "B6FA", "session_id": "D043", "country" : "US", "event_id": "game_end", "won": 1 }
{ "user_id": "09C1", "session_id": "T8KA", "country" : "UK", "event_id": "game_start" }
{ "user_id": "09C1", "session_id": "T8KA", "country" : "UK", "event_id": "game_end", "won": 1 }
```
turns into
session_id | user_id | games_played | games_won
--- | ------------ | -------------- | --------
915D | 09C1 | 2 | 2
D043 | B6FA | 1 | 1
T8KA | 09C1 | 1 | 1
using this DTC
```yaml
Type: Blurr:Streaming
Version: '2018-03-07'
Store:
- Type: Blurr:Store:MemoryStore
Name: hello_world_store
Identity: source.user_id
DataGroups:
- Type: Blurr:DataGroup:BlockAggregate
Name: session_stats
Store: hello_world_store
Split: source.session_id != session_stats.session_id
Fields:
- Name: session_id
Type: string
Value: source.session_id
- Name: games_played
Type: integer
Value: session_stats.games_played + 1
When: source.event_id == 'game_start'
- Name: games_won
Type: integer
Value: session_stats.games_won + 1
When: source.event_id == 'game_end' and source.won == '1'
```
# Tutorial and Docs
[Streaming DTC Tutorial](http://productml-blurr.readthedocs.io/en/latest/Streaming%20dtc%20tutorial/) |
[Window DTC Tutorial](http://productml-blurr.readthedocs.io/en/latest/Window%20dtc%20tutorial/)
[Read the docs](http://productml-blurr.readthedocs.io/en/latest/)
# Use Blurr
We interact with Blurr using a Command Line Interface (CLI). Blurr is installed via pip:
`$ pip install blurr`
Transform data
```
$ blurr transform \
--streaming-dtc ./dtcs/sessionize-dtc.yml \
--window-dtc ./dtcs/windowing-dtc.yml \
--source file://path
```
[CLI documentation](http://productml-blurr.readthedocs.io/en/latest/Blurr%20CLI/)
# Walkthroughs
Walkthroughs for using Blurr to build models for specific use cases.
[Dynamic in-game offers (Offer AI)](examples/offer-ai/offer-ai-walkthrough.md)
[Frequently Bought Together](examples/frequently-bought-together/fbt-walkthrough.md)
# Contribute to Blurr
Welcome to the Blurr community! We are so glad that you share our passion for making data management and machine learning accessible to everyone.
Please create a [new issue](https://github.com/productml/blurr/issues/new) to begin a discussion. Alternatively, feel free to pick up an existing issue!
Please sign the [Contributor License Agreement](https://docs.google.com/forms/d/e/1FAIpQLSeUP5RFuXH0Kbi4CnV6V3IZ-xyJmd3KQP_2Ij-pTvN-_h7wUg/viewform) before raising a pull request.
# Data Science 'Joel Test'
Inspired by the (old school) [Joel Test](https://www.joelonsoftware.com/2000/08/09/the-joel-test-12-steps-to-better-code/) to rate software teams, here's our version for data science teams. What's your score? We'd love to know!
1. Data pipelines are versioned and reproducible
2. Pipelines (re)build in one step
3. Deploying to production needs minimal engineering help
4. Successful ML is a long game. You play it like it is
5. Kaizen. Experimentation and iterations are a way of life
# Get in touch
Email us at blurr@productml.com or star this project to stay in touch!
# Roadmap
Blurr is all about enabling machine learning and AI teams to run faster.
**Developer Preview 0**: Local transformations only
**Developer Preview 1**: S3-S3 data transformations
**Developer Preview 2**: Add DynamoDB as a Store + Features server for ML production use
Ingestion connectors to Kafka and Spark
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
blurr-dev-0.309.tar.gz
(4.5 kB
view details)
Built Distribution
File details
Details for the file blurr-dev-0.309.tar.gz
.
File metadata
- Download URL: blurr-dev-0.309.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a76ab21494b8d3f16bedf9bba368ae1c28268fb3a991f1c36b616ee106894286 |
|
MD5 | c039bed7e07f3ebdfc138ecce542a437 |
|
BLAKE2b-256 | 2805728fa35294308b97120a1a0204c61f1a201cb3a959774e59b398b38d99db |
File details
Details for the file blurr_dev-0.309-py3-none-any.whl
.
File metadata
- Download URL: blurr_dev-0.309-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 90ed9ee887afec4c2a0db842374f876f91afea95f4027ef937c92bb22d826d77 |
|
MD5 | 9a9d43d7c0d28c94127f3e622657f0c6 |
|
BLAKE2b-256 | ed5734666b078ba61980faa8fcf174959154f8941c092441336fe712580ac0a3 |