create_predictions: Create synthetic data

Description Usage Arguments Value Examples

View source: R/create_prediction.R

Description

This function creates a synthetic data set as well as the actual labels

Usage

1
create_predictions(nsamples, nclassifiers, prevelance, type)

Arguments

nsamples

A number representing the number of samples

nclassifiers

A number representing the number of classifiers

prevelance

A number representing the percentage of positive samples

type

A character either "binary" or "rank"

Value

A list where the first element is the prediction matrix and the second element is actual labels

Examples

1
2
data_binary=create_predictions(100,20,0.4,"binary")
data_rank=create_predictions(100,20,0.7,"rank")

learn-ensemble/R-SUMMA documentation built on Nov. 13, 2019, 12:34 a.m.