<div id="compose" contenteditable="true" style="padding-left: 20px; padding-right: 20px; padding-bottom: 8px;"><div>Hi Vaclaw and Paulo,</div><div><br></div><div>Thanks for those pointers re. lazy technique and documentation. I have a RandomForest diagram to explain the process, as well as some examples, so I'll update documentation next week.</div><div><br></div><div>Paulo thanks for running a few tests. It looks there is an error with the class_weight parameter, I'll check into that.</div><div><br></div><div>In terms of species distribution modelling, I have been using the tool for landslide susceptibility modelling, which I believe is methodologically similar to SDM in terms of having a binary response variable. I have been doing this for the area of Alberta, using an 8000 x 14000 pixel and 17 band stack of predictors. In the case of a binary response variable, the usual approach is to run random forest in classification mode, i.e. with fully grown trees, but use the class probabilities to represent the 'species' or 'landslide' index.</div><div><br></div><div>I am planning to implement other methods in the scikit learn package, which represents a trivial change to the module once he bugs are ironed out. I will probably look to create modules for SVM and logistic regression, and maybe  nearest neighbours classification. Certainly open to any suggestions.</div><div><br></div><div>Steve</div></div>
    <div class="gmail_quote">_____________________________<br>From: Vaclav Petras <<a dir="ltr" href="mailto:wenzeslaus@gmail.com" x-apple-data-detectors="true" x-apple-data-detectors-type="link" x-apple-data-detectors-result="0">wenzeslaus@gmail.com</a>><br>Sent: Saturday, March 26, 2016 11:21 AM<br>Subject: Re: [GRASS-dev] RandomForest classifier for imagery groups add-on<br>To: Steven Pawley <<a dir="ltr" href="mailto:dr.stevenpawley@gmail.com" x-apple-data-detectors="true" x-apple-data-detectors-type="link" x-apple-data-detectors-result="3">dr.stevenpawley@gmail.com</a>><br>Cc:  <<a dir="ltr" href="mailto:grass-dev@lists.osgeo.org" x-apple-data-detectors="true" x-apple-data-detectors-type="link" x-apple-data-detectors-result="4">grass-dev@lists.osgeo.org</a>><br><br><br>    <div dir="ltr">   <div class="gmail_extra">    <br>    <div class="gmail_quote">     On Sat, Mar 26, 2016 at 12:40 PM, Steven Pawley      <span dir="ltr"><<a href="mailto:dr.stevenpawley@gmail.com">dr.stevenpawley@gmail.com</a>></span> wrote:     <br>     <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">      I would like to draw your attention to a new GRASS add-on, r.randomforest, which uses the scikit-learn and pandas Python packages to classify GRASS rasters.     </blockquote>    </div>    <br>   </div>   <div class="gmail_extra">    Thanks, this looks good. Please consider adding an image to the documentation to better promote the module [1] and also an example which would work with the NC SPM dataset [2]. For the addon to generate documentation on the server and work well at few other special occasions, it is advantageous to employ lazy import technique for the non-standard dependencies, see for example     <a href="http://v.class.ml">v.class.ml</a> and v.class.mlpy [3].    <br>    <br>   </div>   <div class="gmail_extra">    Vaclav    <br>   </div>   <div class="gmail_extra">    <br>[1]     <a href="https://trac.osgeo.org/grass/wiki/Submitting/Docs#Images">https://trac.osgeo.org/grass/wiki/Submitting/Docs#Images</a>    <br>[2]     <a href="https://grass.osgeo.org/download/sample-data/">https://grass.osgeo.org/download/sample-data/</a>    <br>[3]     <a href="https://trac.osgeo.org/grass/changeset/66482/">https://trac.osgeo.org/grass/changeset/66482/</a>    <br>   </div>  </div>  <br><br></div>