perform_NBC: Use trained model to predict on data

View source: R/perform.R

perform_NBCR Documentation

Use trained model to predict on data

Description

Use trained model to predict on data

Usage

perform_NBC(model, asv_table, sample_data, prob_class1)

Arguments

model

(object) direct output from train_NBC

asv_table

(double) rows= ASV names, cols=sample names

sample_data

(character matrix) column 1 = sample names; column 2 = class labels (e.g. "asthmatic" and "healthy")

prob_class1

(integer) number samples of test class 1 (class 1 is alphabetically first, class 2 is next) / total number samples see "sample_classes" from train_NBC to check order


naomiwilson/gnominator documentation built on Feb. 27, 2023, 9:39 p.m.