[GRASS-dev] [GRASS-SVN] r70999 - grass-addons/grass7/raster/r.learn.ml
Steven Pawley
dr.stevenpawley at gmail.com
Tue May 2 19:52:27 PDT 2017
Thanks! Made a slip-up there.
I'm working on extending multiprocessing to the permutation feature importances so I'll make the fix tonight
Steve
Sent from my iPhone
> On May 2, 2017, at 5:07 PM, Vaclav Petras <wenzeslaus at gmail.com> wrote:
>
>
>> On Tue, May 2, 2017 at 12:45 PM, <svn_grass at osgeo.org> wrote:
>> Author: spawley
>> Date: 2017-05-02 09:45:12 -0700 (Tue, 02 May 2017)
>> New Revision: 70999
>>
>> Modified:
>> grass-addons/grass7/raster/r.learn.ml/r.learn.ml.py
>> grass-addons/grass7/raster/r.learn.ml/r_learn_utils.py
>> Log:
>> r.learn.ml using multiprocessing for all cross-validations
>>
>> Modified: grass-addons/grass7/raster/r.learn.ml/r.learn.ml.py
>> ===================================================================
>> --- grass-addons/grass7/raster/r.learn.ml/r.learn.ml.py 2017-05-02 13:41:15 UTC (rev 70998)
>> +++ grass-addons/grass7/raster/r.learn.ml/r.learn.ml.py 2017-05-02 16:45:12 UTC (rev 70999)
>> @@ -249,13 +249,15 @@
>> ...
>> @@ -176,9 +215,9 @@
>> try:
>> list(scoring_methods.keys()).index(i)
>> except:
>> - print('Scoring ' + i + ' is not a valid scoring method')
>> - print('Valid methods are:')
>> - print(scoring_methods.keys())
>> + gscript.fatal('Scoring ' + i + ' is not a valid scoring method')
>> + gscript.message('Valid methods are:')
>> + gscript.message(scoring_methods.keys())
>
> Hi Steven,
>
> the fatal call will end the execution. What you can do is to put there a multiline string.
>
> Vaclav
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20170502/a5efb57b/attachment.html>
More information about the grass-dev
mailing list