[GRASS-user] v.class.mlR Error

Jamille Haarloo j.r.haarloo at gmail.com
Tue May 29 12:38:59 PDT 2018


Dear GRASS GIS community,

I just started working with Grass to try some object-based analysis. I do
not have much experience with programming, but learning bits on the go.
The segmentation test with uspo appears to have been ok, but I am
struggling with the next step. I was suspecting the training vector created
in QGIS wasn't meeting proper standards, but I could not find a
straightforward Grass module for labeling segments/ creating a training set
file.

Hopefully someone can help me out.

Command output:

(Tue May 29 14:18:32 2018)

v.class.mlR -i --overwrite training_map=Training_Ben2 at haarlooj_Ben_Test
segments_file=C:\Users\haarlooj\Documents\CELOS\Stats_Training_Ben_test
separator=comma
raster_segments_map=best_myregion1_at_haarlooj_Ben_Test_rank1 at haarlooj_Ben_Test
train_class_column=code output_class_column=vote output_prob_column=prob
classifiers=svmRadial,rf,C5.0 folds=5 partitions=10 tunelength=10
weighting_modes=smv,qbwwv weighting_metric=accuracy
classification_results=X:\Projecten\Land-use Planning Marowijne\GIS en
RS\Werkfolder\GRASS\v.class.mIRR_optional_output\Ben_test_classifier-Results
accuracy_file=X:\Projecten\Land-use Planning Marowijne\GIS en
RS\Werkfolder\GRASS\v.class.mIRR_optional_output\Ben_Test_accuracy
model_details=X:\Projecten\Land-use Planning Marowijne\GIS en
RS\Werkfolder\GRASS\v.class.mIRR_optional_output\Ben_Test_ClassifierDetails
bw_plot_file=X:\Projecten\Land-use Planning Marowijne\GIS en
RS\Werkfolder\GRASS\v.class.mIRR_optional_output\Ben_test_classifier_performance
r_script_file=X:\Projecten\Land-use Planning Marowijne\GIS en
RS\Werkfolder\GRASS\v.class.mIRR_optional_output\Ben_test_R_script
processes=3
Running R now. Following output is R output.
Traceback (most recent call last):
  File "C:\Users\haarlooj\AppData\Roaming\GRASS7\addons/scri
pts/v.class.mlR.py", line 633, in <module>
    main()
  File "C:\Users\haarlooj\AppData\Roaming\GRASS7\addons/scri
pts/v.class.mlR.py", line 570, in main
    subprocess.check_call(['Rscript', r_commands],
stderr=subprocess.STDOUT, )
  File "C:\Program Files\GRASS GIS
7.4.0\Python27\lib\subprocess.py", line 537, in check_call
    retcode = call(*popenargs, **kwargs)
  File "C:\Program Files\GRASS GIS
7.4.0\Python27\lib\subprocess.py", line 524, in call
    return Popen(*popenargs, **kwargs).wait()
  File "C:\Program Files\GRASS GIS
7.4.0\Python27\lib\subprocess.py", line 711, in __init__
    errread, errwrite)
  File "C:\Program Files\GRASS GIS
7.4.0\Python27\lib\subprocess.py", line 948, in
_execute_child
    startupinfo)
WindowsError: [Error 2] The system cannot find the file
specified
(Tue May 29 14:18:33 2018) Command finished (0 sec)


Best,
Jamille
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20180529/c9b2c3e6/attachment.html>


More information about the grass-user mailing list