# Multivariate

Represents custom features derived from multiple columns using clustering analysis.

Multivariate features combine multiple numeric columns into a single derived feature using k-means clustering algorithms. This enables monitoring of multivariate drift and detecting unusual combinations that might not be apparent when monitoring columns individually.

The feature type is automatically set to CustomFeatureType.FROM\_COLUMNS and uses clustering to group similar combinations of column values for drift detection.

## Examples

Creating a user behavior multivariate feature:

```python
behavior_feature = Multivariate(
    name="user_engagement_cluster",
    columns=["page_views", "session_duration", "clicks"],
    n_clusters=8,
    monitor_components=True
)
```

Creating a system performance multivariate feature:

```python
perf_feature = Multivariate(
    name="system_health",
    columns=["cpu_usage", "memory_usage", "response_time"],
    n_clusters=5,
    monitor_components=False
)
```

## type *: Literal\['FROM\_COLUMNS']*

## n\_clusters *: int | None*

## centroids *: List | None*

## columns *: List\[str]*

## monitor\_components *: bool*

## *classmethod* validate\_columns(value)

**Return type:** *List*\[str]

## *classmethod* validate\_n\_clusters(value)

**Return type:** int


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.fiddler.ai/api/fiddler-python-client-sdk/schemas/multivariate.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
