summary.analytics_virgin {RTextTools} | R Documentation |
summarizes the analytics_virgin-class
class
Description
Returns a summary of the contents within an object of class analytics_virgin-class
.
Usage
## S3 method for class 'analytics_virgin'
summary(object, ...)
Arguments
object |
An object of class |
... |
Additional parameters to be passed onto the summary function. |
Author(s)
Timothy P. Jurka
Examples
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)
[Package RTextTools version 1.4.3 Index]