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

Auto: predict to multiple grids? #44

Open
SimonDedman opened this issue Feb 25, 2019 · 3 comments
Open

Auto: predict to multiple grids? #44

SimonDedman opened this issue Feb 25, 2019 · 3 comments
Assignees

Comments

@SimonDedman
Copy link
Owner

Now built.

  1. Load samples & multiple grids files into environment
  2. Set WD for grids1 e.g. autumn
  3. Run BRT normally with samples & grids1
  4. setWD for grids2 e.g. spring
  5. Run BRT with loadgbm = "../autumn/SpeciesName/"
  6. Repeat 4 & 5 for other folders

Should I instead have users load the model object with load() then just specify the name?
No cos it'll get loaded in as Bin_Best_Model_Object and so they can only load 1 bin 1 gaus into the environment at any 1 time.

@SimonDedman SimonDedman self-assigned this Feb 25, 2019
@SimonDedman
Copy link
Owner Author

Could instead have option to include multiple grids objects.
grids = gridsspring
length(grids) = 1
grids = c(gridsspring, gridsautumn)
length(grids) = 2
if(length(grids) > 1) {}

Make the prediction section a subfunction or something so it can be respawned within the code?
Label the outputs with a suffix e.g. based on name e.g. PredAbundMap_F.Atlantic.stingray_gridsspring.png

@SimonDedman
Copy link
Owner Author

  1. Run gbm.auto as normal for first grids.
  2. Setwd to next grids folder
  3. Run second gbm.auto with loadgbm pointed to first gbm.auto run folder.
    L876 loadgbm inserted. Does all predicting & mapping, saving outputs in current wd's samples[i] subdirectory.

@SimonDedman
Copy link
Owner Author

Could as well allow multiple grids entries, so when gbm.auto gets to the predict stage, if there are >1 grids objects, it loops through them. Likely a ballache....

@SimonDedman SimonDedman reopened this Sep 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant