class_model_predict: Predict the class abundance

View source: R/bgc_class_model.R

class_model_predictR Documentation

Predict the class abundance

Description

Predict the class abundance

Usage

class_model_predict(x, model_c = NULL, model_r)

Arguments

x

a matrix of data frame. These are the predictor variables (i.e. domain abundances).

model_c

a model object. This is the binary classification model returned by class_model_train(). The predictor variables used to train the model should be exactly the same as the variables in x.

model_r

a model object. This is the regression model returned by class_model_train(). The predictor variables used to train the model should be exactly the same as the variables in x.

Value

A numeric vector containing the predicted abundances.

Examples

class_model_predict(
model_c = t1pks_binary_model,
model_r = t1pks_regression_model)

pereiramemo/bgcpred documentation built on Dec. 14, 2022, 11:45 p.m.