Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the tutorial of "Visualise pipelines" #1913

Merged
merged 6 commits into from
Oct 7, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions docs/source/tutorial/visualise_pipeline.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,18 +53,18 @@ shuttles:
layer: raw

preprocessed_companies:
type: pandas.CSVDataSet
filepath: data/02_intermediate/preprocessed_companies.csv
type: pandas.ParquetDataSet
filepath: data/02_intermediate/preprocessed_companies.pq
layer: intermediate

preprocessed_shuttles:
type: pandas.CSVDataSet
filepath: data/02_intermediate/preprocessed_shuttles.csv
type: pandas.ParquetDataSet
filepath: data/02_intermediate/preprocessed_shuttles.pq
layer: intermediate

model_input_table:
type: pandas.CSVDataSet
filepath: data/03_primary/model_input_table.csv
type: pandas.ParquetDataSet
filepath: data/03_primary/model_input_table.pq
layer: primary

regressor:
Expand Down Expand Up @@ -180,6 +180,7 @@ The below functions can be added to the `nodes.py` and `pipeline.py` files respe
```python
# nodes.py
import plotly.express as px
import plotly.graph_objs as go
import pandas as pd

# the below function uses plotly.express
Expand Down Expand Up @@ -277,6 +278,8 @@ def create_confusion_matrix(companies: pd.DataFrame):
return plt
```

> You might have to execute `pip install seaborn` if the [seaborn library](https://seaborn.pydata.org/) is not installed yet.

```python
# pipeline.py
def create_pipeline(**kwargs) -> Pipeline:
Expand Down