<div dir="ltr"><div>No one can help me?</div><div>GC<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il giorno mer 20 nov 2019 alle ore 14:06 Giuseppe Cillis <<a href="mailto:giucillis@gmail.com">giucillis@gmail.com</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Thanks for the answer.<u><br></u></div><div><u><br></u></div><div><u>v.class.mlR segments_map=gbbb@PERMANENT training_map=tainning@PERMANENT train_class_column=fd output_class_column=vote output_prob_column=prob folds=5 partitions=10 tunelength=10 weighting_metric=accuracy</u></div><div></div><div><br></div><div><u>and the same error with this command: <br></u></div><div><u>v.class.mlR segments_map=gbbb training_map=tainning train_class_column=class weighting_mode=smv,swv,qbwwv -i</u></div><div><br></div><div>The vector used was elaborated with i.segment.stats module.<br></div><div>An extract is here: <br></div><div>













<table style="border-collapse:collapse;width:201pt" width="268" cellspacing="0" cellpadding="0" border="0">

 <colgroup><col style="width:48pt" width="64" span="2">
 <col style="width:57pt" width="76">
 <col style="width:48pt" width="64">
 </colgroup><tbody><tr style="height:30pt" height="40">
  <td style="height:30pt;width:48pt;vertical-align:middle;border:0.5pt solid black;white-space:normal;padding-top:1px;padding-right:1px;padding-left:1px;color:black;font-size:11pt;font-weight:400;font-style:normal;text-decoration:none;font-family:Calibri,sans-serif" width="64" height="40">cat</td>
  <td style="border-color:black black black currentcolor;border-style:solid solid solid none;border-width:0.5pt 0.5pt 0.5pt medium;width:48pt;vertical-align:middle;white-space:normal;padding-top:1px;padding-right:1px;padding-left:1px;color:black;font-size:11pt;font-weight:400;font-style:normal;text-decoration:none;font-family:Calibri,sans-serif" width="64">area</td>
  <td style="border-color:black black black currentcolor;border-style:solid solid solid none;border-width:0.5pt 0.5pt 0.5pt medium;width:57pt;vertical-align:middle;white-space:normal;padding-top:1px;padding-right:1px;padding-left:1px;color:black;font-size:11pt;font-weight:400;font-style:normal;text-decoration:none;font-family:Calibri,sans-serif" width="76">perimeter</td>
  <td style="border-color:black black black currentcolor;border-style:solid solid solid none;border-width:0.5pt 0.5pt 0.5pt medium;width:48pt;vertical-align:middle;white-space:normal;padding-top:1px;padding-right:1px;padding-left:1px;color:black;font-size:11pt;font-weight:400;font-style:normal;text-decoration:none;font-family:Calibri,sans-serif" width="64">fd</td>
 </tr>
 <tr style="height:15pt" height="20">
  <td style="height:15pt;border-color:currentcolor black black;border-style:none solid solid;border-width:medium 0.5pt 0.5pt;width:48pt;vertical-align:middle;white-space:normal;padding-top:1px;padding-right:1px;padding-left:1px;color:black;font-size:11pt;font-weight:400;font-style:normal;text-decoration:none;font-family:Calibri,sans-serif" width="64" height="20" align="right">1</td>
  <td style="border-color:currentcolor black black currentcolor;border-style:none solid solid none;border-width:medium 0.5pt 0.5pt medium;width:48pt;vertical-align:middle;white-space:normal;padding-top:1px;padding-right:1px;padding-left:1px;color:black;font-size:11pt;font-weight:400;font-style:normal;text-decoration:none;font-family:Calibri,sans-serif" width="64" align="right">958</td>
  <td style="border-color:currentcolor black black currentcolor;border-style:none solid solid none;border-width:medium 0.5pt 0.5pt medium;width:57pt;vertical-align:middle;white-space:normal;padding-top:1px;padding-right:1px;padding-left:1px;color:black;font-size:11pt;font-weight:400;font-style:normal;text-decoration:none;font-family:Calibri,sans-serif" width="76" align="right">208</td>
  <td style="border-color:currentcolor black black currentcolor;border-style:none solid solid none;border-width:medium 0.5pt 0.5pt medium;width:48pt;vertical-align:middle;white-space:normal;padding-top:1px;padding-right:1px;padding-left:1px;color:black;font-size:11pt;font-weight:400;font-style:normal;text-decoration:none;font-family:Calibri,sans-serif" width="64" align="right">1.555034</td>
 </tr>
 <tr style="height:15pt" height="20">
  <td style="height:15pt;border-color:currentcolor black black;border-style:none solid solid;border-width:medium 0.5pt 0.5pt;width:48pt;vertical-align:middle;white-space:normal;padding-top:1px;padding-right:1px;padding-left:1px;color:black;font-size:11pt;font-weight:400;font-style:normal;text-decoration:none;font-family:Calibri,sans-serif" width="64" height="20" align="right">2</td>
  <td style="border-color:currentcolor black black currentcolor;border-style:none solid solid none;border-width:medium 0.5pt 0.5pt medium;width:48pt;vertical-align:middle;white-space:normal;padding-top:1px;padding-right:1px;padding-left:1px;color:black;font-size:11pt;font-weight:400;font-style:normal;text-decoration:none;font-family:Calibri,sans-serif" width="64" align="right">24</td>
  <td style="border-color:currentcolor black black currentcolor;border-style:none solid solid none;border-width:medium 0.5pt 0.5pt medium;width:57pt;vertical-align:middle;white-space:normal;padding-top:1px;padding-right:1px;padding-left:1px;color:black;font-size:11pt;font-weight:400;font-style:normal;text-decoration:none;font-family:Calibri,sans-serif" width="76" align="right">22</td>
  <td style="border-color:currentcolor black black currentcolor;border-style:none solid solid none;border-width:medium 0.5pt 0.5pt medium;width:48pt;vertical-align:middle;white-space:normal;padding-top:1px;padding-right:1px;padding-left:1px;color:black;font-size:11pt;font-weight:400;font-style:normal;text-decoration:none;font-family:Calibri,sans-serif" width="64" align="right">1.945217</td>
 </tr>
 <tr style="height:15pt" height="20">
  <td style="height:15pt;border-color:currentcolor black black;border-style:none solid solid;border-width:medium 0.5pt 0.5pt;width:48pt;vertical-align:middle;white-space:normal;padding-top:1px;padding-right:1px;padding-left:1px;color:black;font-size:11pt;font-weight:400;font-style:normal;text-decoration:none;font-family:Calibri,sans-serif" width="64" height="20" align="right">3</td>
  <td style="border-color:currentcolor black black currentcolor;border-style:none solid solid none;border-width:medium 0.5pt 0.5pt medium;width:48pt;vertical-align:middle;white-space:normal;padding-top:1px;padding-right:1px;padding-left:1px;color:black;font-size:11pt;font-weight:400;font-style:normal;text-decoration:none;font-family:Calibri,sans-serif" width="64" align="right">160</td>
  <td style="border-color:currentcolor black black currentcolor;border-style:none solid solid none;border-width:medium 0.5pt 0.5pt medium;width:57pt;vertical-align:middle;white-space:normal;padding-top:1px;padding-right:1px;padding-left:1px;color:black;font-size:11pt;font-weight:400;font-style:normal;text-decoration:none;font-family:Calibri,sans-serif" width="76" align="right">80</td>
  <td style="border-color:currentcolor black black currentcolor;border-style:none solid solid none;border-width:medium 0.5pt 0.5pt medium;width:48pt;vertical-align:middle;white-space:normal;padding-top:1px;padding-right:1px;padding-left:1px;color:black;font-size:11pt;font-weight:400;font-style:normal;text-decoration:none;font-family:Calibri,sans-serif" width="64" align="right">1.726846</td>
 </tr>
 <tr style="height:15pt" height="20">
  <td style="height:15pt;border-color:currentcolor black black;border-style:none solid solid;border-width:medium 0.5pt 0.5pt;width:48pt;vertical-align:middle;white-space:normal;padding-top:1px;padding-right:1px;padding-left:1px;color:black;font-size:11pt;font-weight:400;font-style:normal;text-decoration:none;font-family:Calibri,sans-serif" width="64" height="20" align="right">4</td>
  <td style="border-color:currentcolor black black currentcolor;border-style:none solid solid none;border-width:medium 0.5pt 0.5pt medium;width:48pt;vertical-align:middle;white-space:normal;padding-top:1px;padding-right:1px;padding-left:1px;color:black;font-size:11pt;font-weight:400;font-style:normal;text-decoration:none;font-family:Calibri,sans-serif" width="64" align="right">2036</td>
  <td style="border-color:currentcolor black black currentcolor;border-style:none solid solid none;border-width:medium 0.5pt 0.5pt medium;width:57pt;vertical-align:middle;white-space:normal;padding-top:1px;padding-right:1px;padding-left:1px;color:black;font-size:11pt;font-weight:400;font-style:normal;text-decoration:none;font-family:Calibri,sans-serif" width="76" align="right">242</td>
  <td style="border-color:currentcolor black black currentcolor;border-style:none solid solid none;border-width:medium 0.5pt 0.5pt medium;width:48pt;vertical-align:middle;white-space:normal;padding-top:1px;padding-right:1px;padding-left:1px;color:black;font-size:11pt;font-weight:400;font-style:normal;text-decoration:none;font-family:Calibri,sans-serif" width="64" align="right">1.440904</td>
 </tr>
 <tr style="height:15pt" height="20">
  <td style="height:15pt;border-color:currentcolor black black;border-style:none solid solid;border-width:medium 0.5pt 0.5pt;width:48pt;vertical-align:middle;white-space:normal;padding-top:1px;padding-right:1px;padding-left:1px;color:black;font-size:11pt;font-weight:400;font-style:normal;text-decoration:none;font-family:Calibri,sans-serif" width="64" height="20" align="right">5</td>
  <td style="border-color:currentcolor black black currentcolor;border-style:none solid solid none;border-width:medium 0.5pt 0.5pt medium;width:48pt;vertical-align:middle;white-space:normal;padding-top:1px;padding-right:1px;padding-left:1px;color:black;font-size:11pt;font-weight:400;font-style:normal;text-decoration:none;font-family:Calibri,sans-serif" width="64" align="right">25</td>
  <td style="border-color:currentcolor black black currentcolor;border-style:none solid solid none;border-width:medium 0.5pt 0.5pt medium;width:57pt;vertical-align:middle;white-space:normal;padding-top:1px;padding-right:1px;padding-left:1px;color:black;font-size:11pt;font-weight:400;font-style:normal;text-decoration:none;font-family:Calibri,sans-serif" width="76" align="right">26</td>
  <td style="border-color:currentcolor black black currentcolor;border-style:none solid solid none;border-width:medium 0.5pt 0.5pt medium;width:48pt;vertical-align:middle;white-space:normal;padding-top:1px;padding-right:1px;padding-left:1px;color:black;font-size:11pt;font-weight:400;font-style:normal;text-decoration:none;font-family:Calibri,sans-serif" width="64" align="right">2.024344</td>
 </tr>
 <tr style="height:15pt" height="20">
  <td style="height:15pt;border-color:currentcolor black black;border-style:none solid solid;border-width:medium 0.5pt 0.5pt;width:48pt;vertical-align:middle;white-space:normal;padding-top:1px;padding-right:1px;padding-left:1px;color:black;font-size:11pt;font-weight:400;font-style:normal;text-decoration:none;font-family:Calibri,sans-serif" width="64" height="20" align="right">6</td>
  <td style="border-color:currentcolor black black currentcolor;border-style:none solid solid none;border-width:medium 0.5pt 0.5pt medium;width:48pt;vertical-align:middle;white-space:normal;padding-top:1px;padding-right:1px;padding-left:1px;color:black;font-size:11pt;font-weight:400;font-style:normal;text-decoration:none;font-family:Calibri,sans-serif" width="64" align="right">222</td>
  <td style="border-color:currentcolor black black currentcolor;border-style:none solid solid none;border-width:medium 0.5pt 0.5pt medium;width:57pt;vertical-align:middle;white-space:normal;padding-top:1px;padding-right:1px;padding-left:1px;color:black;font-size:11pt;font-weight:400;font-style:normal;text-decoration:none;font-family:Calibri,sans-serif" width="76" align="right">96</td>
  <td style="border-color:currentcolor black black currentcolor;border-style:none solid solid none;border-width:medium 0.5pt 0.5pt medium;width:48pt;vertical-align:middle;white-space:normal;padding-top:1px;padding-right:1px;padding-left:1px;color:black;font-size:11pt;font-weight:400;font-style:normal;text-decoration:none;font-family:Calibri,sans-serif" width="64" align="right">1.68966</td>
 </tr>
 <tr style="height:15pt" height="20">
  <td style="height:15pt;border-color:currentcolor black black;border-style:none solid solid;border-width:medium 0.5pt 0.5pt;width:48pt;vertical-align:middle;white-space:normal;padding-top:1px;padding-right:1px;padding-left:1px;color:black;font-size:11pt;font-weight:400;font-style:normal;text-decoration:none;font-family:Calibri,sans-serif" width="64" height="20" align="right">7</td>
  <td style="border-color:currentcolor black black currentcolor;border-style:none solid solid none;border-width:medium 0.5pt 0.5pt medium;width:48pt;vertical-align:middle;white-space:normal;padding-top:1px;padding-right:1px;padding-left:1px;color:black;font-size:11pt;font-weight:400;font-style:normal;text-decoration:none;font-family:Calibri,sans-serif" width="64" align="right">8435</td>
  <td style="border-color:currentcolor black black currentcolor;border-style:none solid solid none;border-width:medium 0.5pt 0.5pt medium;width:57pt;vertical-align:middle;white-space:normal;padding-top:1px;padding-right:1px;padding-left:1px;color:black;font-size:11pt;font-weight:400;font-style:normal;text-decoration:none;font-family:Calibri,sans-serif" width="76" align="right">1012</td>
  <td style="border-color:currentcolor black black currentcolor;border-style:none solid solid none;border-width:medium 0.5pt 0.5pt medium;width:48pt;vertical-align:middle;white-space:normal;padding-top:1px;padding-right:1px;padding-left:1px;color:black;font-size:11pt;font-weight:400;font-style:normal;text-decoration:none;font-family:Calibri,sans-serif" width="64" align="right">1.530879</td>
 </tr>

</tbody></table>



</div><div><br></div><div><i>cat </i>type Integer (9-0)</div><div><i>fd </i>type double/real (25-9)</div><div>For the training area (t<i>ainning</i>), I use a simple vector with numerical categories (named<i> "cate"</i>) and there are 11 features (just for a trying). The type is in integer64 (10)<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il giorno mer 20 nov 2019 alle ore 12:18 Moritz Lennert <<a href="mailto:mlennert@club.worldonline.be" target="_blank">mlennert@club.worldonline.be</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 20/11/19 11:55, Giuseppe Cillis wrote:<br>
> Hi,<br>
> I'm trying to use this module for classification of an old aerial photos.<br>
> After a segmentation (i.segment and i.segment.stats), I would to use a <br>
> machine learning approach for the real classification.<br>
> I tried with v.class.mIR which use also R.<br>
> But there is an error and I don't know how to solve it:<br>
> */Durante l'avvio - Warning messages:<br>
> 1: Setting LC_CTYPE=it_IT.cp1252 failed<br>
> 2: Setting LC_COLLATE=it_IT.cp1252 failed<br>
> 3: Setting LC_TIME=it_IT.cp1252 failed<br>
> 4: Setting LC_MONETARY=it_IT.cp1252 failed<br>
> Carico il pacchetto richiesto: caret<br>
> Carico il pacchetto richiesto: lattice<br>
> Carico il pacchetto richiesto: ggplot2<br>
> Error in `$<-.data.frame`(`*tmp*`, fd, value = integer(0)) :<br>
>    replacement has 0 rows, data has 11<br>
> Calls: $<- -> $<-.data.frame/*<br>
> */<br>
> /*<br>
> A part is in italian, I'm sorry.<br>
> I'm a beginner in grass and R.<br>
<br>
R messages are often not very explicit, unfortunately.<br>
<br>
Could you provide us with the exact command line you use (If you use the <br>
GUI, you can get the command line by clicking the 'Copy' button once <br>
you've filled out all the parameters, or in the history of the 'Console' <br>
in the Layer manager.) and an extract of the attribute data you feed <br>
into the module ?<br>
<br>
Moritz<br>
<br>
</blockquote></div>
</blockquote></div>