# prov.trace.canary_sets

prov.trace.canary_sets in the Python SDK: 5 methods. Account canary sets (Growth+).

## Methods

### [list](https://provenanceauth.com/docs/sdks/python/trace-canary-sets/list.md)

```python
prov.trace.canary_sets.list(model: Optional[str] = …, family: Optional[str] = …) -> Any
```

Calls `GET /v1/trace/canary_sets`.

### [create](https://provenanceauth.com/docs/sdks/python/trace-canary-sets/create.md)

```python
prov.trace.canary_sets.create(family: str, model: str, members: list, description: Optional[str] = …, card: Optional[dict] = …) -> Any
```

A new family needs a concept `card` ({title, definition, may_indicate} at least) unless one already describes it.

Calls `POST /v1/trace/canary_sets`.

### [update](https://provenanceauth.com/docs/sdks/python/trace-canary-sets/update.md)

```python
prov.trace.canary_sets.update(set_id: str, members: Optional[list] = …, description: Optional[str] = …) -> Any
```

Calls `PATCH /v1/trace/canary_sets/{id}`.

### [delete](https://provenanceauth.com/docs/sdks/python/trace-canary-sets/delete.md)

```python
prov.trace.canary_sets.delete(set_id: str) -> Any
```

Calls `DELETE /v1/trace/canary_sets/{id}`.

### [validate](https://provenanceauth.com/docs/sdks/python/trace-canary-sets/validate.md)

```python
prov.trace.canary_sets.validate(set_id: str, examples: list) -> Any
```

Measure precision/recall on labeled examples ([{messages, label: 0|1}]); text never stored.

Calls `POST /v1/trace/canary_sets/{id}/validate`.
