View source: R/getBanterModel.R
getBanterModel | R Documentation |
Extract BANTER event or detector Random Forest model.
getBanterModel(x, model = "event")
x |
a |
model |
name of model to extract. Default is |
a randomForest
model object.
Eric Archer eric.archer@noaa.gov
Rankin, S. , Archer, F. , Keating, J. L., Oswald, J. N., Oswald, M. , Curtis, A. and Barlow, J. (2017), Acoustic classification of dolphins in the California Current using whistles, echolocation clicks, and burst pulses. Marine Mammal Science 33:520-540. doi:10.1111/mms.12381
data(train.data)
# initialize BANTER model with event data
bant.mdl <- initBanterModel(train.data$events)
# add all detector models
bant.mdl <- addBanterDetector(
bant.mdl, train.data$detectors,
ntree = 50, sampsize = 1, num.cores = 1
)
# run BANTER event model
bant.mdl <- runBanterModel(bant.mdl, ntree = 1000, sampsize = 1)
# extract the event randomForest model
event.rf <- getBanterModel(bant.mdl)
event.rf
# extract the burst pulse (bp) detector model
bp.rf <- getBanterModel(bant.mdl, "bp")
bp.rf
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.