powered by
This function transforms a data set, usually a testing set, using the trained LFDA metric
# S3 method for lfda predict(object, newdata = NULL, type = "raw", ...)
The result from lfda function, which contains a transformed data and a transforming matrix that can be used for transforming testing set
The data to be transformed
The output type, in this case it defaults to "raw" since the output is a matrix
Additional arguments
the transformed matrix
# NOT RUN { k <- iris[, -5] y <- iris[, 5] r <- 3 model <- lfda(k, y, r = 4, metric = "plain") predict(model, iris[, -5]) # }
Run the code above in your browser using DataLab