[GRASS-SVN] r69662 - grass-addons/grass7/raster/r.randomforest

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Oct 3 14:57:57 PDT 2016


Author: spawley
Date: 2016-10-03 14:57:57 -0700 (Mon, 03 Oct 2016)
New Revision: 69662

Modified:
   grass-addons/grass7/raster/r.randomforest/r.randomforest.py
Log:
Major update to the r.randomforest addon. Several other classifiers have been included. Also bug fixes to the ROC_AUC options which previously was just displaying classification accuracy

Modified: grass-addons/grass7/raster/r.randomforest/r.randomforest.py
===================================================================
--- grass-addons/grass7/raster/r.randomforest/r.randomforest.py	2016-10-03 21:53:14 UTC (rev 69661)
+++ grass-addons/grass7/raster/r.randomforest/r.randomforest.py	2016-10-03 21:57:57 UTC (rev 69662)
@@ -831,7 +831,7 @@
         if model == 'RandomForestRegressor':
             grass.message(_("\r\n"))
             grass.message(_('Coefficient of determination R^2: \t %0.3f' %
-                         (clf.score(X=training_data, y=training_labels))))
+                         (clf.score(X, y))))
        
         # If cv > 1 then use cross-validation to generate performance measures
         if cv > 1:



More information about the grass-commit mailing list