Good fit
Use this model when product, usage, cohort, demand, operational, capacity, or service features help explain a count or numeric outcome.
Model guide
A regression model that extends linear regression by adding polynomial feature terms such as x², x³, or higher-order combinations. Useful when the relationship between business, product, customer, sales, demand, operational, or service inputs and the predicted outcome is curved rather than purely straight-line. A good choice when you want more flexibility than a simple linear baseline while still staying relatively interpretable compared to more complex tree-based models.
Where to start
This page is focused on the practical path for Polynomial Regression: which prediction routes are available, what the request body should communicate, what the response shape means, and how to test the route without exposing service credentials to browser clients.
Use this model when product, usage, cohort, demand, operational, capacity, or service features help explain a count or numeric outcome.
Server-side applications can call eazePredict routes with service credentials. Keep credentials out of browser clients and use your application layer to expose application-facing workflows.
Available endpoints
These are the verified paths for this model family. Use the base URL
/trace/engine/v1 before the route path in API mode.
/train/model/polynomial
Trains and saves a model artifact for later prediction under the same workspace and model identity.
Relative URL: /trace/engine/v1/train/model/polynomial
Example request
This example shows the core JSON shape expected by this guide. In deployed service-to-service calls,
include customerKey for protected train, predict, and model-forecast routes, and keep
service credentials outside browser clients.
featureModel identifies the supervised model artifact family.externalFeatures carries feature arrays such as active users, support requests, usage, demand, event activity, cohort behavior, inventory, capacity, workload, or service-health context.featureOutput names the target output and includes training targets when fitting a model.{
"customerKey": "eazepredict-demo",
"externalFeatures": [
{
"label": "website_visits",
"output": [
2100,
2300,
2250,
2600,
2900
]
},
{
"label": "discount_percent",
"output": [
5,
5,
10,
10,
15
]
}
],
"featureModel": "productSalesForecast",
"featureOutput": {
"label": "units_sold",
"output": [
120,
132,
128,
145,
160
]
},
"startDate": "Wed, 01 Jan 2025 00:00:00 GMT",
"timeSeriesFrequency": 1,
"timeSeriesType": "d",
"train": 80
}
Example response
Responses are JSON and vary by route. Training responses can include artifact metadata and trust summaries. Prediction and forecasting responses return rows keyed by timestamp, signal labels, model output, and any trust-aware warning fields produced by eazePredict.
result usually contains model fit, forecast, or analysis rows.prediction appears on saved-model prediction routes.error appears when validation, artifacts, or processing fail.{
"model": "polynomial",
"prediction": [
{
"discount_percent": 15.0,
"timestamp": "Wed, 01 Jan 2025 10:00:00 GMT",
"units_sold": 166,
"website_visits": 3000.0
},
{
"discount_percent": 20.0,
"timestamp": "Wed, 01 Jan 2025 10:15:00 GMT",
"units_sold": 181,
"website_visits": 3500.0
}
]
}
Example cURL
This example uses the verified relative path selected for this model guide. Replace the token, deployment host, and request values with deployment-specific values.
curl -X POST "/trace/engine/v1/train/model/polynomial" \
-H "Authorization: Basic <aiml-service-token>" \
-H "Content-Type: application/json" \
-d '{"customerKey": "eazepredict-demo", "externalFeatures": [{"label": "website_visits", "output": [2100, 2300, 2250, 2600, 2900]}, {"label": "discount_percent", "output": [5, 5, 10, 10, 15]}], "featureModel": "productSalesForecast", "featureOutput": {"label": "units_sold", "output": [120, 132, 128, 145, 160]}, "startDate": "Wed, 01 Jan 2025 00:00:00 GMT", "timeSeriesFrequency": 1, "timeSeriesType": "d", "train": 80}'
Trust behavior
Numeric output alone should not drive operational action. Use trust-aware fields and context checks to decide whether to escalate, review, compare, or suppress.
If multiple models produce materially different outputs, treat the result as uncertain and review the operating context.
If the request falls far outside historical feature ranges or known operating combinations, the prediction may be unreliable.
Responses may return null plus a trust_warning instead of a misleading number when unsafe conditions are detected.