sirus.predict | R Documentation |
Compute SIRUS predictions for new observations.
sirus.predict(sirus.m, data.test)
sirus.m |
A SIRUS model generated by |
data.test |
Testing data (dataframe of new observations). |
Predictions. For classification, vector of the predicted probability of each new observation to be of class 1.
## load SIRUS require(sirus) ## prepare data data <- iris y <- rep(0, nrow(data)) y[data$Species == 'setosa'] = 1 data$Species <- NULL #' ## fit SIRUS sirus.m <- sirus.fit(data, y) ## predict predictions <- sirus.predict(sirus.m, data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.