Description Usage Arguments Author(s) Examples
View source: R/summary.analytics_virgin.R
Returns a summary of the contents within an object of class analytics_virgin-class
.
1 2 |
object |
An object of class |
... |
Additional parameters to be passed onto the summary function. |
Timothy P. Jurka
1 2 3 4 5 6 7 8 9 10 11 12 | library(RTextTools)
data(NYTimes)
data <- NYTimes[sample(1:3100,size=100,replace=FALSE),]
matrix <- create_matrix(cbind(data["Title"],data["Subject"]), language="english",
removeNumbers=TRUE, stemWords=FALSE, weighting=tm::weightTfIdf)
container <- create_container(matrix,data$Topic.Code,trainSize=1:75, testSize=76:100,
virgin=TRUE)
models <- train_models(container, algorithms=c("RF","SVM"))
results <- classify_models(container, models)
analytics <- create_analytics(container, results)
summary(analytics)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.