Simon Casley
Simon Casley
Pre-define (?) map codes and colours to use in output prediction maps. Map codes will depend on response targets used - which will vary between model runs and areas -...
OOB error gets displayed on screen when running `wetland_model()`, but there is no lasting record of this. In addition to saving diagnostics (#11), it would be useful to save a...
I think this should be a new function, so it can be used on previous model runs (rather than including as part of `wetland_map` function). Requires map codes and colours...
https://github.com/bcgov/wetlandmapR/blob/00419d7c44c8d6ff1afb577eec5f1ae5b8a67355/R/modelmap_processing.R#L144-L149 Model diagnostics could be output to standalone file(s) in the model output folder, or they could be saved in the log file (issue #6), along with the model input...
https://github.com/bcgov/wetlandmapR/blob/00419d7c44c8d6ff1afb577eec5f1ae5b8a67355/R/modelmap_processing.R#L131-L134 Set par for better PDF layout, then return to original values after running diagnostics.
https://github.com/bcgov/wetlandmapR/blob/00419d7c44c8d6ff1afb577eec5f1ae5b8a67355/R/raster_stack.R#L153-L155 `na.value` in `ModelMap::model.mapmake` defaults to -9999 (value that indicates NA in the predictor rasters), therefore input rasters should be prepared with a common value for nodata - makes sense...
https://github.com/bcgov/wetlandmapR/blob/00419d7c44c8d6ff1afb577eec5f1ae5b8a67355/R/raster_stack.R#L133-L138
Add a new function to compare output prediction rasters, i.e. create a difference raster to see where models are agreeing (or not).
- Maybe add a new function to do this... - Could use the model_building_arguments.txt file (output from `ModelMap::model.build`) to extract parameter values and write them to a log file. -...
@dfilatow and Gillian to provide pilot test data. This can then be added to the package and the examples (in function docs and wetlandmapR_example.R) updated to use this data.