add_predictions: Use a batch of models to make predictions on new data

View source: R/add_predictions.R

add_predictionsR Documentation

Use a batch of models to make predictions on new data

Description

This function takes a list of models and makes predictions on new data.

Usage

add_predictions(models, new_data, models_to_use = NULL)

Arguments

models

A list with model objects generated by make_xgb_models.

new_data

A dataframe of new cases with predictors as columns. Sample names are row names.

models_to_use

Optional vector with subset of names of models to use.

Examples

make_new_data_predictions(my_model,"ko_ctnnb1",1,1,my_new_data)

Mushriq/mixmap documentation built on Jan. 28, 2024, 7:22 p.m.