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 Both sides next revision
med:lab_5 [2017/12/11 14:19]
pszwed [IDE]
med:lab_5 [2018/05/12 23:19]
pszwed [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