Differences
This shows you the differences between two versions of the page.
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 java> | ||
+ | for(double x1=-10; | ||
+ | | ||
+ | Instance inst = new DenseInstance(3); | ||
+ | inst.setValue(0, | ||
+ | inst.setValue(1, | ||
+ | |||
+ | inst.setDataset(result); | ||
+ | double y = cls.classifyInstance(inst); | ||
+ | inst.setClassValue(y); | ||
+ | result.add(inst); | ||
+ | } | ||
+ | } | ||
+ | |||
+ | </ |