predict_ordinal: Predict ordinal-valued tensor entries from the cumulative...

Description Usage Arguments Value References Examples

View source: R/ordinalbasic.R

Description

Predict ordinal-valued tensor entries given latent parameters and a type of estimations.

Usage

1
predict_ordinal(theta,omega,type = c("mode","mean","median"))

Arguments

theta

A continuous-valued tensor (latent parameters).

omega

The cut-off points.

type

Type of estimations:

"mode" specifies argmax based label estimation.

"mean" specifies mean based label estimation.

"median" specifies median based label estimation.

Value

A predicted ordinal-valued tensor given latent parameters and a type of estimations.

References

C. Lee and M. Wang. Tensor denoising and completion based on ordinal observations. International Conference on Machine Learning (ICML), 2020.

Examples

1
2
3
4
indices <- c(10,20,30)
arr <- array(runif(prod(indices),-2,2),dim = indices)
b <- c(-1.5,0,1.5)
r_predict <- predict_ordinal(arr,b,type = "mode");r_predict

TensorComplete documentation built on May 11, 2021, 5:08 p.m.