TreeWalker:避免跨行和跨树的冗余工作

When you buy something online, whether it's a gift for an approaching birthday or a spare part to fix a leaky faucet, you want to know how soon it will arrive. That delivery estimate can determine whether you decide to place the order and which shipping option you choose.

当你在网上买东西时,无论是为即将到来的生日买礼物,还是买一个修理漏水水龙头的备用零件,你都想知道它多快能送到。这个送达时间预估可能决定你是否下单,以及选择哪种配送方式。

Shopify uses machine learning models to predict delivery dates, with estimates showing up in many places: in agentic search results, on product pages, at checkout, and in the Shop app. Those ML models need to produce accurate and fast estimates so that merchants and their buyers can continue to rely on Shopify’s checkout speed.

Shopify 使用机器学习模型来预测送达日期,预估结果会出现在许多地方:智能体搜索结果中、商品页面上、结账时,以及 Shop 应用里。这些 ML 模型需要生成准确且快速的预估,这样商家及其买家才能继续信赖 Shopify 的结账速度。

Shop Promise showing an estimated arrival date, trusted delivery, and free returns

Our main delivery prediction system uses a discrete-time hazard model to forecast the conditional probability of a package arriving on each future date: “given that it didn't arrive on Monday, what's the chance it will arrive on Tuesday?” Those conditional probabilities give us the distribution we use to predict a delivery date or date range.

我们的主要配送预测系统使用离散时间风险模型,来预测包裹在每个未来日期到达的条件概率:“假设它在周一没有到达,那么它在周二到达的概率是多少?”这些条件概率给出了我们用来预测配送日期或日期范围的分布。

One forecast scores several related rows, one for each time horizon, through the same tree ensemble. Shipment facts (like weight and carrier) stay fixed while the horizon and calendar features change.

一次预测会通过同一个树集成,对若干相关行进行评分,每个时间范围对应一行。货件事实(如重量和承运商)保持不变,而时间范围和日历特征会变化。

At checkout, we score multiple shipping methods for an order. Each method needs a delivery-date forecast, and those forecasts have to fit inside a small latency budget. Repeating the same tree decisions for every date in each forecast eats into that budget.

在结账时,我们会为一个订单的多种配送方式打分。每种方式都需要一个送达日期预测,而这些预测必须控制在很小的延迟预算内。对每个预测中的每个日期重复相同的树决策,会挤占这一预算。

We built TreeWalker to make those repeated delivery predictions faster. Our Rust inference engine for tree ensembles shares decisions on fixed features and reuses repeated tests acros...

开通本站会员,查看完整译文。

Главная - Вики-сайт
Copyright © 2011-2026 iteam. Current version is 2.156.0. UTC+08:00, 2026-12-04 11:16
浙ICP备14020137号-1