[GRASS-SVN] r70890 - grass-addons/grass7/raster/r.learn.ml
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Apr 16 22:02:40 PDT 2017
Author: spawley
Date: 2017-04-16 22:02:40 -0700 (Sun, 16 Apr 2017)
New Revision: 70890
Modified:
grass-addons/grass7/raster/r.learn.ml/raster_learning.py
Log:
fixed flaw in last commit
Modified: grass-addons/grass7/raster/r.learn.ml/raster_learning.py
===================================================================
--- grass-addons/grass7/raster/r.learn.ml/raster_learning.py 2017-04-17 04:56:22 UTC (rev 70889)
+++ grass-addons/grass7/raster/r.learn.ml/raster_learning.py 2017-04-17 05:02:40 UTC (rev 70890)
@@ -656,7 +656,7 @@
training_data: Numpy array of extracted raster values
training_labels: Numpy array of labels
- y_indexes: Row and Columns of label positions
+ is_train: Row and Columns of label positions
"""
current = Region()
@@ -729,7 +729,7 @@
# close the response map
roi_gr.close()
- return(training_data, training_labels, y_indexes)
+ return(training_data, training_labels, is_train)
def maps_from_group(group):
More information about the grass-commit
mailing list