# `Tune.Demo`
[🔗](https://github.com/mikehostetler/tune/blob/v0.5.0/lib/tune/demo.ex#L1)

One demonstration: complete inputs and outputs for a signature.

Demonstrations are learnable predictor data. Both maps are validated against
the signature they are used with.

# `t`

```elixir
@type t() :: %Tune.Demo{inputs: map(), outputs: map()}
```

# `new`

```elixir
@spec new(Tune.Signature.t(), t() | map()) :: {:ok, t()} | {:error, Exception.t()}
```

Normalizes one demonstration against a signature.

# `new_list`

```elixir
@spec new_list(Tune.Signature.t(), list()) :: {:ok, [t()]} | {:error, Exception.t()}
```

Normalizes a list of demonstrations, stopping at the first invalid one.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
