# 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 comparison results,
indexed access by example ID, and properties to access the pairwise comparison
URL and the underlying comparative experiment.

## Signature

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

## Constructors

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

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


## Properties

- `comparative_experiment`
- `url`

---

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