Skip to content

Commit

Permalink
∆ diagrams
Browse files Browse the repository at this point in the history
  • Loading branch information
bbest committed Nov 20, 2023
1 parent 97f7219 commit 6f2dd5a
Show file tree
Hide file tree
Showing 7 changed files with 132 additions and 197 deletions.
185 changes: 75 additions & 110 deletions _output/sdm-process.html

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions _quarto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ format:
mermaid:
theme: neutral
theme:
dark: darkly
light: flatly

dark: darkly

search: false
File renamed without changes.
15 changes: 15 additions & 0 deletions diagrams/mosaic-hierarchy.mmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
gantt
dateFormat YYYY-MM-DD
title Adding GANTT diagram functionality to mermaid
section A section
Completed task :done, des1, 2014-01-06,2014-01-08
Active task :active, des2, 2014-01-09, 3d
Future task : des3, after des2, 5d
Future task2 : des4, after des3, 5d
section Critical tasks
Completed task in the critical line :crit, done, 2014-01-06,24h
Implement parser and jison :crit, done, after des1, 2d
Create tests for parser :crit, active, 3d
Future task in critical line :crit, 5d
Create tests for renderer :2d
Add to mermaid :1d
33 changes: 19 additions & 14 deletions figures/sdm-model.mmd → diagrams/sdm-model.mmd
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
flowchart LR

tbl[[tbl]]:::in
%% nodes
D[[data]]:::in
S[/split/]:::fxn
t1[[train]]:::out
t2[[test]]:::out
Expand All @@ -13,20 +14,24 @@ flowchart LR
prd(prediction):::out
prf(performance):::out

tbl --> S
S --> t1
S --> t2
t1 --> F
F --> M
t2 --> E
M --> C
C --> F
M --> P
N --> P
M --> E
P --> prd
E --> prf
%% edges
D --> S
S --> t1
S --> t2
t1 --> F
F --> M
t2 --> E
M --> C
C --> F
M --> P
N --> P
M --> E
P --> prd
E --> prf

%% styles
classDef in fill:lightblue
classDef out fill:lightgreen
classDef fxn fill:yellow

%% source: https://bbest.github.io/eds232-ml/lab1d_sdm-evaluate.html
32 changes: 17 additions & 15 deletions figures/sdm-prep.mmd → diagrams/sdm-prep.mmd
Original file line number Diff line number Diff line change
@@ -1,30 +1,32 @@

flowchart LR

%% nodes
P(presence):::in

A(absence):::in

A("pseudo-absence"):::in
pts(obs):::out

X[/extract/]:::fxn

env(env):::in
D[[data]]:::out

tbl[[tbl]]:::out

%% edges
P --> pts

A --> pts

pts --> X

env --> X

X --> tbl

X --> D

%% Legend
in(input):::in
fxn[/process/]:::fxn
out(output):::out
subgraph Legend
in
fxn
out
end

%% styles
classDef in fill:lightblue

classDef out fill:lightgreen

classDef fxn fill:yellow
61 changes: 5 additions & 56 deletions sdm-process.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,9 @@ title: "SDM Process"
## Data Prep

```{mermaid}
%%| label: fig-sdm-prep
%%| fig-cap: "Diagram of SDM data preparation."
flowchart LR
P(presence):::in
A(absence):::in
pts(obs):::out
X[/extract/]:::fxn
env(env):::in
tbl[[tbl]]:::out
P --> pts
A --> pts
pts --> X
env --> X
X --> tbl
classDef in fill:lightblue
classDef out fill:lightgreen
classDef fxn fill:yellow
%%| label: fig-prep
%%| fig-cap: "Diagram of SDM data preparation for model fitting."
%%| file: diagrams/sdm-prep.mmd
```

## definitions
Expand All @@ -43,43 +26,9 @@ flowchart LR
## Model

```{mermaid}
%%| label: fig-linux-kernel
%%| label: fig-model
%%| fig-cap: "Diagram of SDM Modeling processes."
flowchart LR
tbl[[tbl]]:::in
S[/split/]:::fxn
t1[[train]]:::out
t2[[test]]:::out
F[/fit/]:::fxn
M{{model}}:::out
E[/evaluate/]:::fxn
C[/calibrate/]:::fxn
P[/predict/]:::fxn
N[["new data"]]:::in
prd(prediction):::out
prf(performance):::out
tbl --> S
S --> t1
S --> t2
t1 --> F
F --> M
t2 --> E
M --> C
C --> F
M --> P
N --> P
M --> E
P --> prd
E --> prf
classDef in fill:lightblue
classDef out fill:lightgreen
classDef fxn fill:yellow
%% source: https://bbest.github.io/eds232-ml/lab1d_sdm-evaluate.html
%%| file: diagrams/sdm-model.mmd
```

\

0 comments on commit 6f2dd5a

Please sign in to comment.