HackerTrans
TopNewTrendsCommentsPastAskShowJobs

ezvz

no profile record

comments

ezvz
·2년 전·discuss
Ah really sorry about that, fixed!
ezvz
·2년 전·discuss
Zipline AI | REMOTE | Full Time

We’re rethinking the data platform for the modern age of AI/ML workflows.

Founding team built the Chronon open source project that powers all major AI/ML workflows at Airbnb and Stripe.

Funded with a $7m seed round led by Wing VC, Stripe, and Box Group.

Hiring for two roles - Front-end: https://docs.google.com/document/d/1hHgksMosuIFWWIx2Hf9kD18N...

- Data Infra: https://docs.google.com/document/d/10o75QTLfkaHCiiT2BftBld8I...

Apply by reaching out to [email protected]
ezvz
·2년 전·discuss
Let's try an example: `average page views in the last 1, 7, 30, 60, 180 days`

You need these values accurate as of ~500k timestamps for 10k different page ids, with significant skew for some page ids.

So you have a "left" table with 500k rows, each with a page id and timestamp. Then you have a `page_views` table with many millions/billions/whatever rows that need to be aggregated.

Sure, you could do this with backfill with SQL and fancy window functions. But let's just look at what you would need to do to actually make this work, assuming you wanted it to be serving online with realtime updates (from a page_views kafka topic that is the source of the page views table):

For online serving: 1. Decompose the batch computation to SUM and COUNT and seed the values in your KV store 2. Write the streaming job that does realtime updates to your SUMs/COUNTs. 3. Have an API for fetching and finalizing the AVERAGE value.

For Backfilling: 1. Write your verbose query with windowed aggregations (I encourage you to actually try it). 2. Often you also want a daily front-fill job for scheduled retraining. Now you're also thinking about how to reuse previous values. Maybe you reuse your decomposed SUMs/COUNTs above, but if so you're now orchestrating these pipelines.

For making sure you didn't mess it up: 1. Compare logs of fetched features to backfilled values to make sure that they're temporally consistent.

For sharing: 1. Let's say other ML practitioners are also playing around with this feature, but with a different timelines (i.e. different timestamps). Are they redoing all of the computation? Or are you orchestrating caching and reusing partial windows?

So you can do all that, or you can write a few lines of python in Chronon.

Now let's say you want to add a window. Or say you want to change it so it's aggregated by `user_id` rather than `page_id`. Or say you want to add other aggregations other than AVERAGE. You can redo all of that again, or change a few lines of Python.
ezvz
·2년 전·discuss
6NF works well for some temporal data, but I haven't seen it work well for windowed aggregations because the start/end time format of saving values doesn't handle events "falling out of the window" too well. At least the examples I've seen have values change due to explicit mutation events.
ezvz
·2년 전·discuss
There's a lot more to it than snapshots or timestamped columns when it comes to ML training data generation. We often have windowed aggregations that need to computed as of precise intra-day timestamps in order to achieve parity between training data (backfilled in batch) and the data that is being served online realtime (with streaming aggregations being computed realtime).

Standard OLAP solutions right now are really good at "What's the X day sum of this column as of this timestamp", but when every row of your training data has a precise intra-day timestamp that you need windowed aggregations to be accurate as-of, this is a different challenge.

And when you have many people sharing these aggregations, but with potentially different timestamps/timelines, you also want them sharing partial aggregations where possibly for efficiency.

All of this is well beyond the scope that is addressed by standard OLAP data solutions.

Not to mention the fact that the offline computation needs to translate seamlessly to power online serving (i.e. seeding feature values, and combining with streaming realtime aggregations), and the need for online/offline consistency measurement.

That's why a lot of teams don't even bother with this, and basically just log their feature values from online to offline. But this limits what kind of data they can use, and also how quickly they can iterate on new features (need to wait for enough log data to accumulate before you can train).