inject_label_noiseR: Probabilistically inject label noise according to proportions

Description Usage Arguments Value

Description

Probabilistically inject label noise according to proportions

Usage

1
inject_label_noiseR(y, flip_i, flip_j)

Arguments

y

The binary variable output.

flip_i

The proportion of samples of class A to flip to class B - will probabilistically flip ~this proportion of samples, but may not be exact.

flip_j

The proportion of samples of class B to flip to class A - will probabilistically flip ~this proportion of samples, but may not be exact.

Value

A list containing: "yz", the flipped sample labels; "fd", an indicator variable with +1 if the sample was flipped and -1 if the sample label is unflipped.


katrinakalantar/metahostlab documentation built on May 26, 2019, 2:31 p.m.