View source: R/classifier_model_summary.R
predict.multilayer | R Documentation |
predict outcomes of observations in data using *selected features*
## S3 method for class 'multilayer' predict(models, dd)
dd |
input matrix, of dimension |
model |
a list of models which is an outcome of
|
type |
'raw' (default) or 'prob' |
a named vector, either outputs class labels ('raw) or probability tables, a column for each class label ('prob')
mm = list( main = a_main_model, c1 = a_c1_model, c2 = a_c2_model )
main is applied first which should classify samples into either c1 or c2 all samples classified to c1 will be then fed into a_c1_model, and the samples classified to c2 will be fed into a_c2_model.
a model can be NULL, meaning no more action.
The list can be nested. For example,
mm = list( main = a_main_model, c1 = a_c1_model, c2 = list ( main = a_c2_model, c2a = a_c2a_model, c2b = a_c2b_model ) )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.