Free Access Week-  Data Engineering + BI
Data engineering and BI courses are free!
Free AI Access Week from June 2-8

ipd (version 0.1.4)

rectified_cdf: Rectified CDF

Description

Computes the rectified CDF of the data.

Usage

rectified_cdf(Y_l, f_l, f_u, grid, w_l = NULL, w_u = NULL)

Value

(vector): Rectified CDF of the data at the specified grid points.

Arguments

Y_l

(vector): Gold-standard labels.

f_l

(vector): Predictions corresponding to the gold-standard labels.

f_u

(vector): Predictions corresponding to the unlabeled data.

grid

(vector): Grid of values to compute the CDF at.

w_l

(vector, optional): Sample weights for the labeled data set.

w_u

(vector, optional): Sample weights for the unlabeled data set.

Examples

Run this code

Y_l <- c(1, 2, 3, 4, 5)

f_l <- c(1.1, 2.2, 3.3, 4.4, 5.5)

f_u <- c(1.2, 2.3, 3.4)

grid <- seq(0, 6, by = 0.5)

rectified_cdf(Y_l, f_l, f_u, grid)

Run the code above in your browser using DataLab