<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.gmail-
        {mso-style-name:gmail-;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style></head><body lang=EN-US link=blue vlink="#954F72"><div class=WordSection1><p class=MsoNormal>Thanks for this ā€“ I have made some major changes to r.randomforest recently, including adding options for spatial cross-validation. I will move the import of pandas to a lazy import because Iā€™m only using pandas as a convenient way of saving the cross-validation results to file.</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Another question ā€“ r.randomforest is not really an appropriate name for the module anymore. I have been adding features over time, based on my own needs, but now it performs classification and regression using all of the major machine learning methods, with random forests just being one of them. </p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Is there a correct protocol for me to rename the script to something like r.scikit.learn, or r.ml?</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Steve</p><p class=MsoNormal><o:p> </o:p></p><div style='mso-element:para-border-div;border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal style='border:none;padding:0in'><b>From: </b><a href="mailto:wenzeslaus@gmail.com">Vaclav Petras</a><br><b>Sent: </b>Sunday, December 18, 2016 2:42 PM<br><b>To: </b><a href="mailto:hellik@web.de">Helmut Kudrnovsky</a><br><b>Cc: </b><a href="mailto:grass-dev@lists.osgeo.org">grass-dev@lists.osgeo.org</a><br><b>Subject: </b>Re: [GRASS-dev] r.randomforest built status</p></div><p class=MsoNormal><o:p> </o:p></p><div><div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>On Sun, Dec 18, 2016 at 3:40 PM, Helmut Kudrnovsky <<a href="mailto:hellik@web.de" target="_blank">hellik@web.de</a>> wrote:</p><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt'><p class=MsoNormal style='margin-left:.2in'><span class=gmail->></span><br><span class=gmail->> Is there any "best practice" example available?</span><br><br><br>I've done it in this way :<br><br><a href="https://trac.osgeo.org/grass/browser/grass-addons/grass7/vector/v.in.natura2000/v.in.natura2000.py#L151" target="_blank">https://trac.osgeo.org/grass/browser/grass-addons/grass7/vector/v.in.natura2000/v.in.natura2000.py#L151</a><br><br>accordingly an advice by Vaclav.<br><br>Maybe there are some other ways to do it.</p></blockquote></div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal style='margin-bottom:12.0pt'>Here is a example for more complicated case:<br><br><a href="https://trac.osgeo.org/grass/changeset/66482/grass-addons/grass7/vector/v.class.ml">https://trac.osgeo.org/grass/changeset/66482/grass-addons/grass7/vector/v.class.ml</a></p></div></div><p class=MsoNormal>But I don't know what is best practice, perhaps as simple solution as possible - import in main() after parser() will work for most of the short modules and dependencies.</p><p class=MsoNormal><o:p> </o:p></p></div></body></html>