<div class="section-label"><span class="num">03</span> Predict</div>
<div class="section-title"><em>Partial-sample regression</em> at thresholds you choose.</div>
Predict forms a relevance-weighted forecast at the censoring threshold(s) you choose. That is **partial-sample regression**: the prediction uses the informative, relevant subset of the sample, rather than treating every past observation equally.
It is the evaluation inside each [[Grid Prediction|Grid]] cell and inside [[MaxFit]]. Use Predict when the attribute set and thresholds are already fixed. For primary analysis, prefer [[Grid Prediction]].
Takes the same inputs as the other prediction calls: outcomes <span class="mono">y</span>, attributes <span class="mono">X</span>, and circumstances <span class="mono">theta</span>.
## Signature
```text
predict(
y, # outcomes, length N
X, # attributes, N × K
theta, # circumstances, length K
options? # PredictOptions; omit → defaults
) → results
```
**Call:** `predict`
**Options:** `PredictOptions`
**Returns:** [[Results/Overview|Results]]
## Arguments
| Name | Shape | Description |
| --- | --- | --- |
| <span class="mono">y</span> | N | Observed outcomes |
| <span class="mono">X</span> | N × K | Training attributes aligned with <span class="mono">y</span> |
| <span class="mono">theta</span> | K | Circumstances for the prediction task |
| <span class="mono">options</span> | (object) | <span class="mono">PredictOptions</span>; optional, omit for defaults |
N = number of observations (rows), K = number of independent variables (columns).
## Options
A Predict call is ready with defaults: <span class="mono">threshold</span> <span class="mono">[0.5]</span> and <span class="mono">censor_type</span> <span class="mono">relevance</span>. Pass a [[Settings/Options#PredictOptions|PredictOptions]] object when you want to change those, or any other Predict setting.
Predict censors on **relevance** or **similarity**, not both at once. To compare both in one run, use [[MaxFit]] or [[Grid Prediction]]. The full parameter list and allowed value names: [[Settings/Options#PredictOptions|PredictOptions]] · [[Settings/Allowed Values|Allowed values]].
## Results
A successful Predict call gives you a forecast at the threshold(s) you chose, with fit alongside it, plus observation weights and relevance scores for that calibration.
| You get | Look here |
| --- | --- |
| Forecast and fit | <span class="mono">yhat</span>, <span class="mono">fit</span>, <span class="mono">adjusted_fit</span>, … — [[Results/Core\|Core]] |
| Weights and scores | <span class="mono">prediction_weights</span>, <span class="mono">insights</span> — [[Results/Weights & Insights\|Weights & Insights]] |
| Solo distribution | <span class="mono">solo_distribution</span> — [[Results/Solo Distribution\|Solo Distribution]] |
The full layout of a result object: [[Results/Overview|Results]].
## Related
- [[Functions/Overview|Functions]]
- [[Grid Prediction]] · [[MaxFit]]
- [[Settings/Options#PredictOptions|PredictOptions]] · [[Results/Overview|Results]]