Create an Analysis Group

Creating an Analysis Group allows to aggregate Feature Importance for a number of Analyses

Request

HTTP Request

POST https://api.predicthq.com/v1/beam/analysis-groups

Request Headers

HeaderValue

Content-Type

application/json

Request Body

FieldDescription

name string required

Name of an analysis group. E.g. My Analysis Group 1

analysis_ids string[] required

The list of existing analysis ids to include in the group.

E.g.

Analyses can belong to multiple groups. Analyses must have the same demand type, i.e. the interval must match, and in case of weekly analyses week_start_day must also be consistent across all analyses in the group.

Response

Example response

Below is an example response:

{
    "group_id": "wyy0nguQHPs"
}

Examples

curl -X POST https://api.predicthq.com/v1/beam/analysis-groups \
     -H "Accept: application/json" \
     -H "Authorization: Bearer $ACCESS_TOKEN" \
     --data @<(cat <<EOF
    {
        "name": "Analysis Group 1",
        "analysis_ids": [
            "zRa_kk7MlAA",
            "3aR-gbJp98I",
            "JBb08XsZqAo",
            "q9iX2XqFBxM"
        ]
    }
    EOF
    )

Best Practices

Please refer to this guide for the best practices on grouping analyses: https://www.predicthq.com/support/grouping-analyses-in-beam

Last updated

© 2024 PredictHQ Ltd