Description Usage Arguments Examples
Supervised the algorithm to learn from the training data set.
1 | learn(x)
|
x |
matrix input of class |
1 2 3 4 5 6 7 8 9 10 11 12 | To reproduce this example, please refer to \code{https://github.com/alstat/rface}
# Call the Face Recognition package
library(rface)
# Import all images in the directory "data/jaffe/"
imgData <- importImages("~/Downloads/jaffe_training/", display = FALSE)
# Train the algorithm for the images
model <- learn(imgData)
# Show the eigen faces
showFace(model)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.