Predict with Custom Context
Not available for Kumo Relational. Supplying your own labeled context and prediction rows as DataFrames, bypassing PQL, is not supported for the relational model in this client.
What exists today
sdm-client builds one Request type for every model, and the direct builder — Request(context=..., predict=..., target=..., task=...) — accepts related_tables= in its signature. A relational request is gathered, not assembled from frames, though: the neighborhood around each entity is sampled and folded onto the instance table, which is what materialize() does. So a directly-built request is refused when you name model=KumoRelational(), even with related_tables=:
The direct builder works for Kumo Tabular, where it is the primary path — see Kumo Tabular: Make Predictions.
What to use instead
Build the request from PQL, as described in Make Predictions and Write Predictive Queries:
materialize() derives context examples from the schema’s own historical data; there is currently no supported way to substitute context you constructed yourself for the relational model.
If your workflow specifically needs hand-selected relational context — for example, to test how a particular set of examples affects prediction quality — that capability is not available in this client version. Check the changelog for updates.