Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
med:lab_5 [2017/12/06 17:23]
pszwed [IDE]
med:lab_5 [2018/05/12 23:19]
pszwed [Kod]
Line 23: Line 23:
   * W ''usr/local/bin'' jest dostępne Eclipse Neon   * W ''usr/local/bin'' jest dostępne Eclipse Neon
   * Utwórz projekt   * Utwórz projekt
-  * Wybierz: //Project -> Properties -> Jaba Build Path.// Następnie zakładkę //Libraries// i opcję //Add External JARs//. Dodaj bibliotekę ''weka.jar ''+  * Wybierz: //Project -> Properties -> Java Build Path.// Następnie zakładkę //Libraries// i opcję //Add External JARs//. Dodaj bibliotekę ''weka.jar ''
 ===== Kod ===== ===== Kod =====
  
Line 73: Line 73:
 </code> </code>
  
 +<code java>
 +for(double x1=-10;x1<=10;x1+=0.1){
 + for(double x2=-10;x2<=10;x2+=0.1){
 +  Instance inst = new DenseInstance(3);
 +  inst.setValue(0, x1);
 +  inst.setValue(1, x2);
 +
 +  inst.setDataset(result);
 +  double y = cls.classifyInstance(inst);
 +  inst.setClassValue(y);
 +  result.add(inst);
 + }
 +}
 +
 +</code>
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0