learn: Supervised Learning

Description Usage Arguments Examples

Description

Supervised the algorithm to learn from the training data set.

Usage

1
learn(x)

Arguments

x

matrix input of class images; this object contains the imported images transformed into matrix by importImages function.

Examples

 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)

alstat/rface documentation built on May 10, 2019, 10:25 a.m.