Hi Jamille,

On 29/05/18 21:38, Jamille Haarloo wrote:
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@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@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 <http://v.class.mlR.py>", line 633, in <module>
     main()
   File "C:\Users\haarlooj\AppData\Roaming\GRASS7\addons/scri
pts/v.class.mlR.py <http://v.class.mlR.py>", line 570, in main
     subprocess.check_call(['Rscript', r_commands],
stderr=subprocess.STDOUT, )

My hunch is that the problem is some PATH issues making it difficult to call R.

Maybe some of the Windows gurus out there could help with this ?

Moritz

_______________________________________________
grass-user mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/grass-user

Reply via email to