Computes the rectified CDF of the data.
rectified_cdf(Y_l, f_l, f_u, grid, w_l = NULL, w_u = NULL)
(vector): Rectified CDF of the data at the specified grid points.
(vector): Gold-standard labels.
(vector): Predictions corresponding to the gold-standard labels.
(vector): Predictions corresponding to the unlabeled data.
(vector): Grid of values to compute the CDF at.
(vector, optional): Sample weights for the labeled data set.
(vector, optional): Sample weights for the unlabeled data set.
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