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

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Jun 8 02:31:15 PDT 2016


Author: neteler
Date: 2016-06-08 02:31:15 -0700 (Wed, 08 Jun 2016)
New Revision: 68636

Modified:
   grass-addons/grass7/raster/r.randomforest/r.randomforest.html
Log:
r.randomforest addon manual: example expanded

Modified: grass-addons/grass7/raster/r.randomforest/r.randomforest.html
===================================================================
--- grass-addons/grass7/raster/r.randomforest/r.randomforest.html	2016-06-08 08:50:31 UTC (rev 68635)
+++ grass-addons/grass7/raster/r.randomforest/r.randomforest.html	2016-06-08 09:31:15 UTC (rev 68636)
@@ -55,9 +55,20 @@
 <div class="code"><pre>
 r.randomforest igroup=lsat7_2000 roi=landclass96_roi output=rf_classification \
   mode=classification ntrees=500 mfeatures=-1 minsplit=2 randst=1 lines=100
+
+# copy category labels from landclass training map to result
+r.category rf_classification raster=landclass96_roi
+
+# copy color scheme from landclass training map to result
+r.colors rf_classification raster=landclass96_roi
 r.category rf_classification
 </pre></div>
 
+<!-- also nice
+r.composite b=lsat7_2002_10 g=lsat7_2002_20 r=lsat7_2002_30 output=lsat7_2002.rgb
+g.gui.mapswipe first=lsat7_2002.rgb second=rf_classification
+-->
+
 <br><br>Random forest classification result:
 <center>
 <img src="rfclassification.png" alt="Random forest classification result">



More information about the grass-commit mailing list