# ModelTaskParams

Configuration parameters for different model task types and evaluation metrics.

ModelTaskParams defines task-specific parameters that control how models are evaluated and monitored within Fiddler. Different model types (classification, regression, ranking) require different parameters to properly compute metrics and perform analysis.

These parameters are essential for accurate metric computation, proper baseline establishment, and meaningful performance monitoring across different model types and use cases.

## Examples

Configuration for binary classification:

```python
binary_params = ModelTaskParams(
    binary_classification_threshold=0.5,
    target_class_order=["negative", "positive"]
)
```

Configuration for multi-class classification with class weights:

```python
multiclass_params = ModelTaskParams(
    target_class_order=["class_a", "class_b", "class_c"],
    class_weights=[0.3, 0.5, 0.2],
    weighted_ref_histograms=True
)
```

Configuration for ranking models:

```python
ranking_params = ModelTaskParams(
    group_by="query_id",
    top_k=10,
    target_class_order=["not_relevant", "relevant", "highly_relevant"]
)
```

Configuration for imbalanced datasets:

```python
imbalanced_params = ModelTaskParams(
    binary_classification_threshold=0.3,
    class_weights=[0.1, 0.9],
    weighted_ref_histograms=True
)
```

## binary\_classification\_threshold *: float | None*

Threshold for labels

## target\_class\_order *: List | None*

Order of target classes

## group\_by *: str | None*

Query/session id column for ranking models

## top\_k *: int | None*

Top k results to consider when computing ranking metrics

## class\_weights *: List\[float] | None*

Weight of each classes

## weighted\_ref\_histograms *: bool | None*

Whether baseline histograms must be weighted or not while drift metrics


---

# 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/model-task-params.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.
