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

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Jun 7 03:40:44 PDT 2016


Author: mlennert
Date: 2016-06-07 03:40:44 -0700 (Tue, 07 Jun 2016)
New Revision: 68628

Modified:
   grass-addons/grass7/vector/v.class.mlR/v.class.mlR.py
Log:
v.class.mlR: small typo in R script


Modified: grass-addons/grass7/vector/v.class.mlR/v.class.mlR.py
===================================================================
--- grass-addons/grass7/vector/v.class.mlR/v.class.mlR.py	2016-06-06 21:52:35 UTC (rev 68627)
+++ grass-addons/grass7/vector/v.class.mlR/v.class.mlR.py	2016-06-07 10:40:44 UTC (rev 68628)
@@ -397,7 +397,7 @@
         r_file.write("write.csv(resultsdf, '%s', row.names=FALSE, quote=FALSE)" % classification_results)
         r_file.write("\n")
     if accuracy_file:
-        r_file.write("df_means <- data.frame(method=names(model.cv),accuracy=accuracy_means, kappa=kappa_means)")
+        r_file.write("df_means <- data.frame(method=names(models.cv),accuracy=accuracy_means, kappa=kappa_means)")
         r_file.write("\n")
         r_file.write("write.csv(df_means, '%s', row.names=FALSE, quote=FALSE)" % accuracy_file)
         r_file.write("\n")



More information about the grass-commit mailing list