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

docs: fix generation of reference pages #1

Merged
merged 2 commits into from
Mar 4, 2023
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@ def list_class_and_function_names_in_module(module_name: str) -> list[str]:


nav = mkdocs_gen_files.Nav()
root = "src"

for path in sorted(Path("Runtime/safe-ds").rglob("__init__.py")):
module_path = path.relative_to("Runtime/safe-ds").with_suffix("")
doc_path = path.relative_to("Runtime/safe-ds").with_suffix(".md")
for path in sorted(Path(root).rglob("__init__.py")):
module_path = path.relative_to(root).with_suffix("")
doc_path = path.relative_to(root).with_suffix(".md")
full_doc_path = Path("reference", doc_path)

# Skip demos, tests, etc.
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,18 @@ data = Table.from_csv("path/to/your/data.csv")
Now we want to have a look at what our dataset looks like. For this, we use Jupyter Notebooks native display function.

```python
data    # calls display(data)
data # calls display(data)
```

![Table](./Resources/Table.png)
![Table](resources/table.png)

Next some statistics.

```python
data.summary()  # returns a table with various statistics for each column
data.summary() # returns a table with various statistics for each column
```

![Summary](./Resources/Summary.png)
![Summary](resources/summary.png)

As you can see here, the **idness** of the column _PassengerId_ is 1. This means, that every row has a unique value for
this column. Since this isn't helpful for our usecase we can drop it.
Expand All @@ -48,7 +48,7 @@ data_only_numerics = Table.from_columns(data_cleaned.list_columns_with_numerical
correlation_heatmap(data_only_numerics)
```

![Heatmap](./Resources/Heatmap.png)
![Heatmap](resources/heatmap.png)

As you can see, the columns _Fare_ and _Pclass_ (Passenger Class) seem to heavily correlate. Let's have another look at that.
## Lineplot
Expand All @@ -59,7 +59,7 @@ from safeds.plotting import lineplot
lineplot(data_cleaned, "Pclass", "Fare")
```

![Lineplot](./Resources/Lineplot.png)
![Lineplot](resources/lineplot.png)

The line itself represents the central tendency and the hued area around it a confidence interval for that estimate.

Expand All @@ -75,19 +75,19 @@ from safeds.plotting import boxplot
boxplot(data_cleaned.get_column("Age"))
```

![Boxplot](./Resources/Boxplot.png)
![Boxplot](resources/boxplot.png)

```python
from safeds.plotting import histogram

histogram(data_cleaned.get_column("Fare"))
```
![Histogram](./Resources/Histogram.png)
![Histogram](resources/histogram.png)

```python
from safeds.plotting import scatterplot

scatterplot(data_cleaned, "Age", "Fare")
```

![Scatterplot](./Resources/Scatterplot.png)
![Scatterplot](resources/scatterplot.png)