|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.knime.base.node.mine.knn.KnnSettings
public class KnnSettings
This class stores the settings for the kNN node.
Constructor Summary | |
---|---|
KnnSettings()
|
Method Summary | |
---|---|
String |
classColumn()
Returns the name of the column with the class labels. |
void |
classColumn(String classColumn)
sets the name of the column with the class labels. |
int |
k()
Returns the number of neighbours to consider. |
void |
k(int k)
Sets the number of neighbours to consider. |
void |
loadSettings(NodeSettingsRO settings)
Loads the settings from the given node settings object. |
void |
saveSettings(NodeSettingsWO settings)
Saves the settings into the given node settings object. |
boolean |
weightByDistance()
Returns if the nearest neighbours should be weighted by their distance to the query pattern. |
void |
weightByDistance(boolean b)
Sets if the nearest neighbours should be weighted by their distance to the query pattern. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public KnnSettings()
Method Detail |
---|
public boolean weightByDistance()
true
if the neighbours should be weighted by their
distance, false
otherwisepublic void weightByDistance(boolean b)
b
- true
if the neighbours should be weighted by their
distance, false
otherwisepublic int k()
public void k(int k)
k
- the number of neighbourspublic String classColumn()
public void classColumn(String classColumn)
classColumn
- the class column's namepublic void saveSettings(NodeSettingsWO settings)
settings
- a node settings objectpublic void loadSettings(NodeSettingsRO settings) throws InvalidSettingsException
settings
- a node settings object
InvalidSettingsException
- if some settings are missing or invalid
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |