Skip to content

Commit a052fa2

Browse files
author
Lei Song
committed
Add an extra vignette
1 parent c529a40 commit a052fa2

36 files changed

+595
-3
lines changed

NEWS.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
# itsdm 0.2.0
2+
3+
- Convert Shapley values-based functions to usable by external models (as described in issue # 3), and add examples in function documentation and vignettes to show users how to use these functions.
4+
- Add a function `detect_envi_change` to use Shapley values technique to analyze the potential impacts of changing environmental variables in space.
5+
- Modify function `isotree_po` to take presence-absence dataset as well (as described in issue #7). To make this happen smoothly, another function `format_observation` is created to help the users to convert their data to fit into `itsdm` workflow.
6+
- Reorganized reference section of the online documentation to make it user-friendly.
7+
- Fix a few bugs in the functions.
8+
19
# itsdm 0.1.3
210

311
- Fix a bug in function `print.VariableAnalysis` mentioned in issue #2: if any value is negative then it would fail.

R/variable_contrib.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ variable_contrib <- function(model,
112112
out <- explain(model, X = var_occ,
113113
nsim = shap_nsim,
114114
newdata = var_occ_analysis,
115-
pred_wrapper = .pfun_shap)
115+
pred_wrapper = pfun)
116116
out <- list(shapley_values = out,
117117
feature_values = var_occ_analysis)
118118
class(out) <- append("VariableContribution", class(out))

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,13 @@
1313
- A few functions to download environmental variables.
1414
- Outlier tree-based suspicious environmental outliers detection.
1515
- Isolation forest-based environmental suitability modeling.
16-
- Response curves of environmental variable.
16+
- Non-spatial response curves of environmental variables.
17+
- Spatial response maps of environmental variables.
1718
- Variable importance analysis.
1819
- Presence-only model evaluation.
1920
- Method to convert predicted suitability to presence-absence map.
2021
- Variable contribution analysis for the target observations.
22+
- Method to analyze the spatial impacts of changing environment.
2123

2224
## Installation
2325

@@ -122,7 +124,7 @@ pfun <- function(X.model, newdata) {
122124
}
123125
124126
# Use a fixed value
125-
climate_changes <- detect_climate_change(
127+
climate_changes <- detect_envi_change(
126128
model = mod_rf,
127129
var_occ = model_data %>% select(-occ),
128130
variables = env_vars,

vignettes/intro-evaluation-1.png

-41.4 KB
Loading
-13.5 KB
Loading
-13 KB
Loading

vignettes/intro-pa-1.png

-40.8 KB
Loading

vignettes/intro-prediction-1.png

-41.5 KB
Loading

vignettes/intro-raw_suit-1.png

-38.9 KB
Loading

vignettes/intro-remove_outliers-1.png

-15.2 KB
Loading

0 commit comments

Comments
 (0)