
Project on a feature
projection_on_feature.RdTrivially wraps ptk_zerosum to project on a feature, usually the output of a
benchmark model.
Arguments
- x
data as a numeric matrix object (rows=samples). The zero-sum regression requires data on the log scale, i.e. x should be log-transformed data.
- y
Named list with entries
"bin", a named numeric one-column matrix, binary response to be used for training,"cox", a named numeric two-column matrix to be used for training, time to event and event (0 = censoring, 1 = event) in first and second column, respectively."true", a named numeric one-column matrix, binary response to be used for calculating the CV error.
- val_error_fun
Function used to calculate the error of independently validated predictions. Must take two numeric vector of equal length:
yandy_hat, the true and predicted outcomes, respectively, and return a numeric scalar; the lower, the better the model. Seeerror_rate()orneg_roc_auc()for examples.- feature
character. Project on this feature.
- ...
can be used for adjusting internal parameters