---
title: "Get Feature Importance"
method: GET
path: "/v1/beam/analyses/{analysis_id}/feature-importance"
tags: ["Analyses"]
---

# Get Feature Importance

`GET /v1/beam/analyses/{analysis_id}/feature-importance`

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.

## Path parameters

- `analysis_id` string, required

## Response `200`

Successful Response

- FeatureImportanceResponse
  - `feature_importance` FeatureGroup[] — A list of feature groups ranked by their statistical significance to the analysis demand data.
    - `feature_group` string, required — The name of the group. This typically aligns to an event category.
    - `features` string[], required — The names of the features in the feature group. These refer directly to features available in Features API.
    - `p_value` number, required — The p-value associated with this feature group for this analysis. It indicates how important the features in the group are in terms of demand. The lower the p-value, the more important the feature group is.
    - `important` boolean, required — A true or false value indicating whether the feature group is considered important for this analysis. Equivalent to `p_value` < 0.1. We suggest using this value to determine whether or not to include this group of features in your modeling.

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Bearer token scope insufficient
- `404` — Analysis not found or no feature importance data

---

[API](https://skmtc.net/predicthq/apis/predicthq-events-api.md) · [All operations](https://skmtc.net/predicthq/apis/predicthq-events-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/predicthq/predicthq-events-api/revisions/66cd8ff349dd/schema)
