# ComparativeExperimentResults

> **Class** in `langsmith`

📖 [View in docs](https://reference.langchain.com/python/langsmith/evaluation/_runner/ComparativeExperimentResults)

Represents the results of an evaluate_comparative() call.

This class provides an iterator interface to iterate over the experiment results
as they become available. It also provides methods to access the experiment name,
the number of results, and to wait for the results to be processed.

## Signature

```python
ComparativeExperimentResults(
    self,
    results: dict,
    examples: Optional[dict[uuid.UUID, schemas.Example]] = None,
)
```

## Constructors

```python
__init__(
    self,
    results: dict,
    examples: Optional[dict[uuid.UUID, schemas.Example]] = None,
)
```

| Name | Type |
|------|------|
| `results` | `dict` |
| `examples` | `Optional[dict[uuid.UUID, schemas.Example]]` |


---

[View source on GitHub](https://github.com/langchain-ai/langsmith-sdk/blob/6a74bf5af9e542d8065af8edca54b2448f430916/python/langsmith/evaluation/_runner.py#L1006)