1 | Eye()
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | ##---- Should be DIRECTLY executable !! ----
##-- ==> Define data, use random,
##-- or do help(data=index) for the standard data sets.
## The function is currently defined as
function ()
{
if (!(getwd() == "C:/Users/zsz/Desktop/STAT-541 Multi Var/Midterm Project/grammatical_facial_expression/grammatical_facial_expression")) {
cat("Please give me the directory", "\n")
dir <- choose.dir()
setwd(dir)
}
cat("Preparing visual cortex ...", "\n")
library(data.table)
library(bit64)
Sys.sleep(2)
cat("Initialize visual classifier", "\n")
library(caret)
library(MASS)
Sys.sleep(1)
cat("What do you hope me to see:", "\n")
choice <- readline(prompt = paste("1. Read Facial Expression",
"\n", "2. Recognize GFE", "\n", "3. Discriminate the expression",
"\n", "4. Recognize Different People", "\n", "5. Do something else"))
return(as.numeric(choice))
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.