Difference between revisions of "Página de pruebas"

From Sinfronteras
Jump to: navigation, search
Line 11: Line 11:
 
{| class="wikitable"
 
{| class="wikitable"
 
|+
 
|+
!Algorithms
+
! rowspan="2" |Algorithms
!Author
+
! rowspan="2" |Author
!From package
+
! rowspan="2" |From package
!Keyword
+
! rowspan="2" |Keyword
!Comment
+
! colspan="2" |Accuracy
!
+
|-
 +
|Fake news dataset
 +
|Fake news challenge dataset
 +
|-
 +
|General linearized models
 +
|Friedman et al., 2010
 +
|[https://cran.r-project.org/web/packages/glmnet/index.html glmnet]
 +
|GLMNET*
 +
|
 +
|
 
|-
 
|-
 
|Support vector machine
 
|Support vector machine
 
|Meyer et al., 2012
 
|Meyer et al., 2012
 
|[https://cran.r-project.org/web/packages/e1071/index.html e1071]
 
|[https://cran.r-project.org/web/packages/e1071/index.html e1071]
|SVM
+
|SVM*
|Low-memory algorithms
 
 
|
 
|
|-
 
|Glmnet
 
|Friedman et al., 2010
 
|[https://cran.r-project.org/web/packages/glmnet/index.html glmnet]
 
|GLMNET
 
|Low-memory algorithms
 
 
|
 
|
 
|-
 
|-
Line 35: Line 37:
 
|Jurka, 2012
 
|Jurka, 2012
 
|[https://cran.r-project.org/web/packages/maxent/index.html maxent]
 
|[https://cran.r-project.org/web/packages/maxent/index.html maxent]
|MAXENT
+
|MAXENT*
|Low-memory algorithms
+
|
 
|
 
|
 
|-
 
|-
|Scaled linear discriminant analysis
+
|Classification or regression tree
|Peters and Hothorn, 2012
+
|Ripley., 2012
|[https://cran.r-project.org/web/packages/ipred/index.html ipred]
+
|[https://cran.r-project.org/web/packages/tree/index.html tree]
|SLDA
+
|TREE
 
|
 
|
 
|
 
|
 
|-
 
|-
|Bagging
+
|Random forest
|Peters and Hothorn, 2012
+
|Liawand Wiener, 2002
|[https://cran.r-project.org/web/packages/ipred/index.html ipred]
+
|[https://cran.r-project.org/web/packages/randomForest/index.html randomForest]
|BAGGING
+
|RF
 
|
 
|
 
|
 
|
Line 57: Line 59:
 
|[https://cran.r-project.org/web/packages/caTools/index.html caTools]
 
|[https://cran.r-project.org/web/packages/caTools/index.html caTools]
 
|BOOSTING
 
|BOOSTING
|
 
|
 
|-
 
|Random forest
 
|Liawand Wiener, 2002
 
|[https://cran.r-project.org/web/packages/randomForest/index.html randomForest]
 
|RF
 
 
|
 
|
 
|
 
|
Line 74: Line 69:
 
|
 
|
 
|-
 
|-
|Classification or regression tree
+
|Bagging
|Ripley., 2012
+
|Peters and Hothorn, 2012
|[https://cran.r-project.org/web/packages/tree/index.html tree]
+
|[https://cran.r-project.org/web/packages/ipred/index.html ipred]
|TREE
+
|BAGGING**
 +
|
 +
|
 +
|-
 +
|Scaled linear discriminant analysis
 +
|Peters and Hothorn, 2012
 +
|[https://cran.r-project.org/web/packages/ipred/index.html ipred]
 +
|SLDA**
 
|
 
|
 
|
 
|
 +
|-
 +
| colspan="6" |* Low-memory algorithm
 +
<nowiki>**</nowiki> Very high-memory algorithm
 
|}
 
|}
 +
 +
 
GLMNET  <- train_model(container,"GLMNET")
 
GLMNET  <- train_model(container,"GLMNET")
 +
 +
<br />

Revision as of 00:47, 7 April 2019

RTextTools - A Supervised LearningPackage for Text Classification

http://www.rtexttools.com/

https://cran.r-project.org/web/packages/RTextTools/index.html


The train_model() function takes each algorithm, one by one, to produce an object passable to classify_model().


A convenience train_models() function trains all models at once by passing in a vector of model requests. The syntax below demonstrates model creation for all nine algorithms:

Algorithms Author From package Keyword Accuracy
Fake news dataset Fake news challenge dataset
General linearized models Friedman et al., 2010 glmnet GLMNET*
Support vector machine Meyer et al., 2012 e1071 SVM*
Maximum entropy Jurka, 2012 maxent MAXENT*
Classification or regression tree Ripley., 2012 tree TREE
Random forest Liawand Wiener, 2002 randomForest RF
Boosting Tuszynski, 2012 caTools BOOSTING
Neural networks Venables and Ripley, 2002 nnet NNET
Bagging Peters and Hothorn, 2012 ipred BAGGING**
Scaled linear discriminant analysis Peters and Hothorn, 2012 ipred SLDA**
* Low-memory algorithm

** Very high-memory algorithm


GLMNET <- train_model(container,"GLMNET")