Differences
This shows you the differences between two versions of the page.
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 '' | * W '' | ||
* Utwórz projekt | * Utwórz projekt | ||
- | * Wybierz: //Project -> Properties -> Jaba Build Path.// Następnie zakładkę // | + | * Wybierz: //Project -> Properties -> Java Build Path.// Następnie zakładkę // |
===== Kod ===== | ===== 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); | ||
+ | } | ||
+ | } | ||
+ | |||
+ | </ |