# Visualise a model

by: Chris Cave

(Feyn version 2.0 or newer)

All `Model`

s can be visualised as a directed graph. Inputs are on the left hand side and the output is on the right hand side. Each node represents a mathematical transformation and the activation values move from left to right.

If you are in a `Jupyter`

environment then a `Model`

automatically displays as a graph.

```
import feyn
ql = feyn.connect_qlattice()
models = ql.sample_models(['Hello', 'World'], 'Bonjour!','classification')
models[0]
```

If you want to update the display within a `Jupyter`

cell then you can use the `show_model`

function.

```
for model in models[0:5]:
feyn.show_model(
model=model,
update_display=False
)
```

If `update_display=False`

then the previous `Model`

will not be cleared and the next `Model`

will be displayed beneath it.

A typical case to use this function is when you're making your own custom workflow with the primitive operations and you want to see the best `Model`

in the current epoch of the fitting loop.

In an `IPython`

environment, you'll be able to hover over each of the **interactions** to get a tooltip with the internal state of it - such as the **weights**, **biases** and **encodings**.