predictPopulation: Predicts the outcomes of a population of models in a dataset.

View source: R/global.lib.R

predictPopulationR Documentation

Predicts the outcomes of a population of models in a dataset.

Description

This function evaluates the class of a population of models for a dataset X

Usage

predictPopulation(
  X,
  y,
  clf,
  pop,
  plot = FALSE,
  col = c("deepskyblue4", "firebrick4"),
  fill = c("deepskyblue1", "firebrick1")
)

Arguments

X:

dataset to predit

y:

the real y

pop:

a population of models. This can be an FBM for instance.

clf:

an object containing the different parameters of the classifier

plot:

logical (default:FALSE), returns a barplot for each sample with the prevalence of each class by the population of models

col:

manual scaling colors (default:'c("deepskyblue4", "firebrick4")').

fill:

manual scaling colors (default:'c("deepskyblue1", "firebrick1")').

Value

A dataframe of predicted classes with samples in columns and models in rows, 'if(plot = FALSE)'. Otherwise it will return a ggplot object.


predomics/predomicspkg documentation built on Dec. 11, 2024, 11:06 a.m.