[GRASS-SVN] r71598 - grass-addons/grass7/vector/v.class.mlR

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Oct 27 08:17:07 PDT 2017


Author: mlennert
Date: 2017-10-27 08:17:07 -0700 (Fri, 27 Oct 2017)
New Revision: 71598

Modified:
   grass-addons/grass7/vector/v.class.mlR/v.class.mlR.py
Log:
add other svm kernels; reduce number of default classifiers

Modified: grass-addons/grass7/vector/v.class.mlR/v.class.mlR.py
===================================================================
--- grass-addons/grass7/vector/v.class.mlR/v.class.mlR.py	2017-10-25 21:32:54 UTC (rev 71597)
+++ grass-addons/grass7/vector/v.class.mlR/v.class.mlR.py	2017-10-27 15:17:07 UTC (rev 71598)
@@ -112,8 +112,8 @@
 #% description: Classifiers to use
 #% required: yes
 #% multiple: yes
-#% options: svmRadial,rf,rpart,C5.0,knn,knn1,xgbTree
-#% answer: svmRadial,rf,C5.0,xgbTree
+#% options: svmRadial,svmLinear,svmPoly,rf,rpart,C5.0,knn,knn1,xgbTree
+#% answer: svmRadial,rf
 #%end
 #%option
 #% key: folds
@@ -273,7 +273,7 @@
     weighting_functions['bwwv'] = "weights <- 1-(max(weighting_base) - weighting_base)/(max(weighting_base) - min(weighting_base))"
     weighting_functions['qbwwv'] = "weights <- ((min(weighting_base) - weighting_base)/(max(weighting_base) - min(weighting_base)))**2"
 
-    packages = {'svmRadial': ['kernlab'], 'rf': ['randomForest'], 'rpart': ['rpart'], 'C5.0': ['C50'], 'xgbTree': ['xgboost', 'plyr']}
+    packages = {'svmRadial': ['kernlab'], 'svmLinear': ['kernlab'], 'svmPoly': ['kernlab'], 'rf': ['randomForest'], 'rpart': ['rpart'], 'C5.0': ['C50'], 'xgbTree': ['xgboost', 'plyr']}
 
     install_package = "if(!is.element('%s', installed.packages()[,1])){\n"
     install_package += "cat('\\n\\nInstalling %s package from CRAN\n')\n"



More information about the grass-commit mailing list