View source: R/predImportTrainModels.r
predImportTrainModels | R Documentation |
This function trains species distribution models on simulate data. Typical implementation is to use predImportMakeData
to create simulated data sets, then predImportTrainModels
to train SDMs on those data sets, then predImportEval
to evaluate the models.
predImportTrainModels( simDir, modelDir, vars, algos = c("omniscient", "bioclim", "brt", "gam", "glm", "maxent", "maxnet", "rf"), type = c("multivariate", "reduced", "univariate"), iters = 1:100, numBg = NULL, fileFlag = NULL, overwrite = FALSE, tempDir = raster::rasterOptions()$tmpdir, verbose = 1, ... )
simDir |
Character, path name of directory in which scenario data files are saved. |
modelDir |
Character, path name of directory in which model files are saved. Depending on whether multivariate, reduced, and/or univariate models are trained, inside this folder will be subfolders named "multivariate", "reduced", and/or "univariate" followed by the name of the algorithm (e.g., "multivariate brt"). |
vars |
Character vector, names of variables to use in model training. These should match the names in the |
algos |
Character list of model algorithms to implement. Options include |
type |
Character, type of models to train. Options include |
iters |
Vector of positive integers, data iterations to train models for. |
numBg |
Positive integer, vector of positive integers, or |
fileFlag |
Either |
overwrite |
Logical, if |
tempDir |
Character, path of temporary directory. Used to store ancillary modeling files generated by Maxent 3.3.3k and earlier. Not used for any other modeling algorithm. Maxent can generate a lot of these files which eventually fill up a disc. By specifying this folder you can have some control over where they are saved and thus if they fill up a hard drive (e.g., send temp files to a fast secondary drive with lots of space). |
verbose |
Numeric, if 0 then show minimal output, 1 more output, 2 even more, >2 all of it. |
... |
Other arguments to pass to "train~~~" functions in the enmSdm package. |
Nothing (writes models to disc).
predImportMakeData
, predImportEval
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.