noisy_loss_wrapper: Loss function for label noise

View source: R/metrics.R

noisy_loss_wrapperR Documentation

Loss function for label noise

Description

Implements approach from this paper and code from here. Can be used if labeled data contains noise, i.e. some of the data is labeled wrong.

Usage

noisy_loss_wrapper(noise_matrix)

Arguments

noise_matrix

Matrix of noise distribution.

Value

A function implementing noisy loss.

Examples


# If first label contains 5% wrong labels and second label no noise
noise_matrix <- matrix(c(0.95, 0.05, 0, 1), nrow = 2, byrow = TRUE)
noisy_loss <- noisy_loss_wrapper(noise_matrix)


GenomeNet/deepG documentation built on Dec. 24, 2024, 12:11 p.m.