R/projection.R
ProjectNewdata.Rd
Predicting the embedding coordinates via the trained SVM model.
ProjectNewdata(
feature.mat,
model,
do.norm = "L2",
int.fun = stats::median,
cores = -1
)
A data.frame containing signature scores, rows are cells, columns are features.
The trained learners returned from `FitEnsembleSVM()`.
Whether normalize the feature matrix. L1, L2, NULL. Default: 'L2'
The function for integration of predicted embedding by different learners: mean, median, or any self defined function given a vector and returns a value. Default: median.
number of threads for prediction, -1 means all available threads. Default: -1
CellProject
object containing source data and predicted embedding matrix.