Get Feature Importance
Get relevant ML features based on a Beam Analysis.
This endpoint provides the relevant ML features (based on feature importance testing) that are shown to impact the demand for the Beam Analysis. These are the features you should take into your forecasting model to improve your model accuracy.
These values represent each group of features' statistical significance when it comes to impacting observable incremental/decremental changes in demand.
The easiest way to get these ML features from our Features API to be used in your models is by using the Beam analysis_id in your Features API request.
Enter your PredictHQ API key. The Bearer prefix is added automatically.
When calling the API directly, send: Authorization: Bearer <YOUR_API_KEY> as documented at https://docs.predicthq.com/api/overview/authenticating
An existing Beam Analysis ID.
Successful Response
Bad Request
Unauthorized
Bearer token scope insufficient
Analysis not found or no feature importance data
GET /v1/beam/analyses/{analysis_id}/feature-importance HTTP/1.1
Host: api.predicthq.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"feature_importance": [
{
"feature_group": "severe-weather",
"features": [
"phq_attendance_concerts",
"phq_attendance_sports"
],
"p_value": 0.312,
"important": true
}
]
}Examples
The following examples get the Feature Importance for an Analysis:
OpenAPI spec
See the Beam API OpenAPI spec.
Guides
These guides are relevant to this API:
Last updated
Was this helpful?