Skip to content

Commit

Permalink
update mkdocs #33
Browse files Browse the repository at this point in the history
  • Loading branch information
chenyangkang committed Jan 24, 2024
1 parent 67f7efd commit 555dc81
Show file tree
Hide file tree
Showing 32 changed files with 208 additions and 56 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# stemflow.gridding.Sphere_QTree

::: stemflow.gridding.Sphere_QTree
4 changes: 4 additions & 0 deletions docs/API_Documentation/model/stemflow.model.SphereAdaSTEM.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# stemflow.model.SphereAdaSTEM
---
::: stemflow.model.SphereAdaSTEM
---
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# stemflow.utils.jitterrotation.jitterrotator

---
::: stemflow.utils.jitterrotation.jitterrotator
---
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# stemflow.utils.sphere.Icosahedron

---
::: stemflow.utils.sphere.Icosahedron
---
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# stemflow.utils.sphere.coordinate_transform

::: stemflow.utils.sphere.coordinate_transform
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# stemflow.utils.sphere.discriminant_formula

::: stemflow.utils.sphere.discriminant_formula
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# stemflow.utils.sphere.distance

::: stemflow.utils.sphere.distance
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# stemflow.utils.sphere_quadtree

---
::: stemflow.utils.sphere_quadtree
---
5 changes: 5 additions & 0 deletions docs/API_Documentation/utils/stemflow.utils.validation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# stemflow.utils.validation

---
::: stemflow.utils.validation
---
5 changes: 5 additions & 0 deletions docs/API_Documentation/utils/stemflow.utils.wrapper.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# stemflow.utils.wrapper

---
::: stemflow.utils.wrapper
---
71 changes: 71 additions & 0 deletions docs/Sphere_gridding.html

Large diffs are not rendered by default.

Binary file added docs/Sphere_gridding.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
112 changes: 69 additions & 43 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,57 +57,75 @@ For more information, please see [an introduction to stemflow](https://chenyangk
-----

## Model and data :slot_machine:

<!--
| Main functionality of `stemflow` | Supported data types | Supported tasks | Supported base models |
| -- | -- | -- | -- |
| :white_check_mark: Spatiotemporal modeling & prediction<br> | :white_check_mark: All spatial indexing (CRS)<br> | :white_check_mark: Binary classification task<br> | :white_check_mark: sklearn style `BaseEstimator` classes ([you can make your own base model](https://scikit-learn.org/stable/developers/develop.html)), for example [here](https://chenyangkang.github.io/stemflow/Examples/06.Base_model_choices.html)<br> |
| :white_check_mark: Calculate overall feature importances<br> | :white_check_mark: All temporal indexing<br> | :white_check_mark: Regression task<br> | :white_check_mark: sklearn style Maxent model. [Example here](https://chenyangkang.github.io/stemflow/Examples/03.Binding_with_Maxent.html). |
| :white_check_mark: Spatiotemporal modeling & prediction<br> | :white_check_mark: User-defined 2D spatial indexing (CRS)<br> | :white_check_mark: Binary classification task<br> | :white_check_mark: sklearn style `BaseEstimator` classes ([you can make your own base model](https://scikit-learn.org/stable/developers/develop.html)), for example [here](https://chenyangkang.github.io/stemflow/Examples/06.Base_model_choices.html)<br> |
| :white_check_mark: Calculate overall feature importances<br> | :white_check_mark: User-defined temporal indexing<br> | :white_check_mark: Regression task<br> | :white_check_mark: sklearn style Maxent model. [Example here](https://chenyangkang.github.io/stemflow/Examples/03.Binding_with_Maxent.html). |
| :white_check_mark: Plot spatiotemporal dynamics<br> | :white_check_mark: Spatial-only modeling<br> | :white_check_mark: Hurdle task (two step regression – classify then regress the non-zero part)<br> | |
| | :white_check_mark: Both continuous and categorical features (prefer one-hot encoding)<br> | | |
| | :white_check_mark: Both static (e.g., yearly mean temperature) and dynamic features (e.g., daily temperature) | | |
| For details see [AdaSTEM Demo](https://chenyangkang.github.io/stemflow/Examples/01.AdaSTEM_demo.html) | For details and tips see [Tips for data types](https://chenyangkang.github.io/stemflow/Tips/Tips_for_data_types.html) | For details and tips see [Tips for different tasks](https://chenyangkang.github.io/stemflow/Tips/Tips_for_different_tasks.html) | For details see [Base model choices](https://chenyangkang.github.io/stemflow/Examples/06.Base_model_choices.html)|
-->

| Main functionality of `stemflow` | Supported indexing | Supported tasks |
| :-- | :-- | :-- |
| :white_check_mark: Spatiotemporal modeling & prediction<br> | :white_check_mark: User-defined 2D spatial indexing (CRS)<br> | :white_check_mark: Binary classification task<br> |
| :white_check_mark: Calculate overall feature importances<br> | :white_check_mark: Spherical indexing <br> | :white_check_mark: Regression task<br> |
| :white_check_mark: Plot spatiotemporal dynamics<br> | :white_check_mark: User-defined temporal indexing<br> | :white_check_mark: Hurdle task (two step regression – classify then regress the non-zero part)<br> |
| | :white_check_mark: Spatial-only modeling<br> | |
| For details see [AdaSTEM Demo](https://chenyangkang.github.io/stemflow/Examples/01.AdaSTEM_demo.html) | For details and tips see [Tips for data types](https://chenyangkang.github.io/stemflow/Tips/Tips_for_data_types.html) | For details and tips see [Tips for different tasks](https://chenyangkang.github.io/stemflow/Tips/Tips_for_different_tasks.html) |


<!-- column 1 -->
<!-- | Main functionality of `stemflow`
| --
| :white_check_mark: Spatiotemporal modeling & prediction<br>
| :white_check_mark: Calculate overall feature importances<br>
| :white_check_mark: Plot spatiotemporal dynamics<br>
| For details see [AdaSTEM Demo](https://chenyangkang.github.io/stemflow/Examples/01.AdaSTEM_demo.html) -->


<!-- column 2 -->
<!-- | Supported indexing
| --
| :white_check_mark: User-defined 2D spatial indexing (CRS)<br>
| :white_check_mark: Spherical indexing <br>
| :white_check_mark: User-defined temporal indexing<br>
| :white_check_mark: Spatial-only modeling<br>
| For details and tips see [Tips for data types](https://chenyangkang.github.io/stemflow/Tips/Tips_for_data_types.html) -->

<!-- column 3 -->
<!-- | Supported tasks
| --
| :white_check_mark: Binary classification task<br>
| :white_check_mark: Regression task<br>
| :white_check_mark: Hurdle task (two step regression – classify then regress the non-zero part)<br>
| For details and tips see [Tips for different tasks](https://chenyangkang.github.io/stemflow/Tips/Tips_for_different_tasks.html) -->


| Supported data types | Supported base models |
| -- | -- |
| :white_check_mark: Both continuous and categorical features (prefer one-hot encoding)<br> | :white_check_mark: sklearn style `BaseEstimator` classes ([you can make your own base model](https://scikit-learn.org/stable/developers/develop.html)), for example [here](https://chenyangkang.github.io/stemflow/Examples/06.Base_model_choices.html)<br> |
| :white_check_mark: Both static (e.g., yearly mean temperature) and dynamic features (e.g., daily temperature)<br> | :white_check_mark: sklearn style Maxent model. [Example here](https://chenyangkang.github.io/stemflow/Examples/03.Binding_with_Maxent.html). |
| For details and tips see [Tips for data types](https://chenyangkang.github.io/stemflow/Tips/Tips_for_data_types.html) | For details see [Base model choices](https://chenyangkang.github.io/stemflow/Examples/06.Base_model_choices.html) |

<!-- column 4 -->
<!-- | Supported data types
| --
| :white_check_mark: Both continuous and categorical features (prefer one-hot encoding)<br>
| :white_check_mark: Both static (e.g., yearly mean temperature) and dynamic features (e.g., daily temperature)<br>
| For details and tips see [Tips for data types](https://chenyangkang.github.io/stemflow/Tips/Tips_for_data_types.html) -->


<!-- column 5 -->
<!-- | Supported base models
| --
| :white_check_mark: sklearn style `BaseEstimator` classes ([you can make your own base model](https://scikit-learn.org/stable/developers/develop.html)), for example [here](https://chenyangkang.github.io/stemflow/Examples/06.Base_model_choices.html)<br>
| :white_check_mark: sklearn style Maxent model. [Example here](https://chenyangkang.github.io/stemflow/Examples/03.Binding_with_Maxent.html).
| For details see [Base model choices](https://chenyangkang.github.io/stemflow/Examples/06.Base_model_choices.html) -->

<!-- For details see [AdaSTEM Demo](https://chenyangkang.github.io/stemflow/Examples/01.AdaSTEM_demo.html) -->


<!-- ### Main functionality of `stemflow`
:white_check_mark: Spatiotemporal modeling & prediction<br>
:white_check_mark: Calculate overall feature importances<br>
:white_check_mark: Plot spatiotemporal dynamics<br>
For details see [AdaSTEM Demo](https://chenyangkang.github.io/stemflow/Examples/01.AdaSTEM_demo.html)
---
### Supported data types
:white_check_mark: All spatial indexing (CRS)<br>
:white_check_mark: All temporal indexing<br>
:white_check_mark: Spatial-only modeling<br>
:white_check_mark: Both continuous and categorical features (prefer one-hot encoding)<br>
:white_check_mark: Both static (e.g., yearly mean temperature) and dynamic features (e.g., daily temperature)
For details and tips see [Tips for data types](https://chenyangkang.github.io/stemflow/Tips/Tips_for_data_types.html)
--- -->

<!-- ### Supported tasks

:white_check_mark: Binary classification task<br>
:white_check_mark: Regression task<br>
:white_check_mark: Hurdle task (two step regression – classify then regress the non-zero part)<br>
For details and tips see [Tips for different tasks](https://chenyangkang.github.io/stemflow/Tips/Tips_for_different_tasks.html)
---
### Supported base models
:white_check_mark: sklearn style `BaseEstimator` classes ([you can make your own base model](https://scikit-learn.org/stable/developers/develop.html)), for example [here](https://chenyangkang.github.io/stemflow/Examples/06.Base_model_choices.html)<br>
:white_check_mark: sklearn style Maxent model. [Example here](https://chenyangkang.github.io/stemflow/Examples/03.Binding_with_Maxent.html).
----- -->

## Usage :star:

Expand Down Expand Up @@ -175,6 +193,14 @@ model.gridding_plot

Here, each color shows an ensemble generated during model fitting. In each of the 10 ensembles, regions (in terms of space and time) with more training samples were gridded into finer resolution, while the sparse one remained coarse. Prediction results were aggregated across the ensembles (that is, in this example, data were modeled 10 times).

If you use `SphereAdaSTEM` module, the gridding plot is a `plotly` generated interactive object by default:

![Sphere Gridding](https://github.com/chenyangkang/stemflow/raw/main/docs/Sphere_gridding.png)

See ![Interactive spherical gridding plot](https://github.com/chenyangkang/stemflow/raw/main/docs/Sphere_gridding.html).



----
## Example of visualization :world_map:

Expand Down
1 change: 0 additions & 1 deletion docs/test.json

This file was deleted.

37 changes: 25 additions & 12 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,22 +86,35 @@ nav:
- 'Tips for different tasks': Tips/Tips_for_different_tasks.md
- API Documentation:
- stemflow.model:
- 'AdaSTEM': API_Documentation/stemflow.model.AdaSTEM.md
- 'STEM': API_Documentation/stemflow.model.STEM.md
- 'static_func_AdaSTEM': API_Documentation/stemflow.model.static_func_AdaSTEM.md
- 'Hurdle': API_Documentation/stemflow.model.Hurdle.md
- 'dummy_model': API_Documentation/stemflow.model.dummy_model.md
- 'special_hurdle': API_Documentation/stemflow.model.special_hurdle.md
- 'AdaSTEM': API_Documentation/model/stemflow.model.AdaSTEM.md
- 'SphereAdaSTEM': API_Documentation/model/stemflow.model.SphereAdaSTEM.md
- 'STEM': API_Documentation/model/stemflow.model.STEM.md
- 'static_func_AdaSTEM': API_Documentation/model/stemflow.model.static_func_AdaSTEM.md
- 'Hurdle': API_Documentation/model/stemflow.model.Hurdle.md
- 'dummy_model': API_Documentation/model/stemflow.model.dummy_model.md
- 'special_hurdle': API_Documentation/model/stemflow.model.special_hurdle.md
- stemflow.gridding:
- 'Q_blocks': API_Documentation/stemflow.gridding.Q_blocks.md
- 'QTree': API_Documentation/stemflow.gridding.QTree.md
- 'QuadGrid': API_Documentation/stemflow.gridding.QuadGrid.md
- 'Q_blocks': API_Documentation/gridding/stemflow.gridding.Q_blocks.md
- 'QTree': API_Documentation/gridding/stemflow.gridding.QTree.md
- 'Sphere_QTree': API_Documentation/gridding/stemflow.gridding.Sphere_QTree.md
- 'QuadGrid': API_Documentation/gridding/stemflow.gridding.QuadGrid.md
- stemflow.utils:
- 'quadtree': API_Documentation/stemflow.utils.quadtree.md
- 'plot_gif': API_Documentation/stemflow.utils.plot_gif.md
- 'generate_soft_colors': API_Documentation/stemflow.utils.generate_soft_colors.md
- 'jitterrotation':
- 'jitterrotator': API_Documentation/utils/jitterrotation/stemflow.utils.jitterrotation.jitterrotator.md
- 'sphere':
- 'coordinate_transform': API_Documentation/utils/sphere/stemflow.utils.sphere.coordinate_transform.md
- 'discriminant_formula': API_Documentation/utils/sphere/stemflow.utils.sphere.discriminant_formula.md
- 'distance': API_Documentation/utils/sphere/stemflow.utils.sphere.distance.md
- 'Icosahedron': API_Documentation/utils/sphere/stemflow.utils.sphere.Icosahedron.md
- 'quadtree': API_Documentation/utils/stemflow.utils.quadtree.md
- 'sphere_quadtree': API_Documentation/utils/stemflow.utils.sphere_quadtree.md
- 'plot_gif': API_Documentation/utils/stemflow.utils.plot_gif.md
- 'generate_soft_colors': API_Documentation/utils/stemflow.utils.generate_soft_colors.md
- 'validation': API_Documentation/utils/stemflow.utils.validation.md
- 'wrapper': API_Documentation/utils/stemflow.utils.wrapper.md
- stemflow.model_selection: API_Documentation/stemflow.model_selection.md
- stemflow.manually_testing: API_Documentation/stemflow.manually_testing.md

- Fun Visualization:
- 'Global Bird Diversity': Fun_Visualization/Global_Bird_Shannon_H_Index.md
- 'Ruby-crowned_Kinglet': Fun_Visualization/Ruby-crowned_Kinglet_2020.md
Expand Down
Binary file modified stemflow/.DS_Store
Binary file not shown.
1 change: 1 addition & 0 deletions stemflow/model/STEM.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ class STEM(AdaSTEM):
Children:
stemflow.model.STEM.STEMClassifier
stemflow.model.STEM.STEMRegressor
"""
Expand Down
1 change: 1 addition & 0 deletions stemflow/model/SphereAdaSTEM.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ class SphereAdaSTEM(AdaSTEM):
Children:
stemflow.model.SphereAdaSTEM.SphereAdaSTEMClassifier
stemflow.model.SphereAdaSTEM.SphereAdaSTEMRegressor
"""
Expand Down
Empty file.
Empty file.

0 comments on commit 555dc81

Please sign in to comment.