mapXy.sigmoid {DPpack} | R Documentation |
Sigmoid Map Function
Description
This function implements the sigmoid map function from data X to labels y
used for logistic regression in the form required by
EmpiricalRiskMinimizationDP.CMS
.
Usage
mapXy.sigmoid(X, coeff)
Arguments
X |
Matrix of data. |
coeff |
Vector or matrix of coefficients or weights. |
Value
Matrix of values of the sigmoid function corresponding to each row of X.
Examples
X <- matrix(c(1,2,3,4,5,6),nrow=2)
coeff <- c(0.5,-1,2)
mapXy.sigmoid(X,coeff)
[Package DPpack version 0.2.0 Index]