Description Usage Arguments Examples
View source: R/predict-my-multiclass.R
Predicted values based on linear model object
1 2 | ## S3 method for class 'my_multiclass'
predict(object, X)
|
object |
object of class inheriting from "my_multiclass" |
X |
design matrix used in fitting "my_multiclass" |
1 2 3 4 5 | data(iris)
X <- model.matrix(Species ~ ., data = iris)
Y <- iris$Species
fit_m <- my_multiclass(X, Y)
y_hat <- predict(fit_m)$Y_hat
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.