|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.rapidminer.operator.Operator
com.rapidminer.operator.learner.AbstractLearner
com.rapidminer.operator.learner.lazy.KNNLearner
public class KNNLearner
A k nearest neighbor implementation.
| Field Summary | |
|---|---|
static java.lang.String |
PARAMETER_K
The parameter name for "The used number of nearest neighbors. |
static java.lang.String |
PARAMETER_WEIGHTED_VOTE
The parameter name for "Indicates if the votes should be weighted by similarity. |
| Fields inherited from class com.rapidminer.operator.learner.AbstractLearner |
|---|
PROPERTY_RAPIDMINER_GENERAL_CAPABILITIES_WARN |
| Constructor Summary | |
|---|---|
KNNLearner(OperatorDescription description)
|
|
| Method Summary | |
|---|---|
InputDescription |
getInputDescription(java.lang.Class cls)
Indicates that the consumption of example sets can be user defined. |
java.util.List<ParameterType> |
getParameterTypes()
Returns a list of ParameterTypes describing the parameters of this operator. |
Model |
learn(ExampleSet exampleSet)
Trains a model. |
boolean |
supportsCapability(LearnerCapability lc)
Checks for Learner capabilities. |
| Methods inherited from class com.rapidminer.operator.learner.AbstractLearner |
|---|
apply, getEstimatedPerformance, getInputClasses, getOptimizationPerformance, getOutputClasses, getWeights, onlyWarnForNonSufficientCapabilities, shouldCalculateWeights, shouldDeliverOptimizationPerformance, shouldEstimatePerformance |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.rapidminer.operator.learner.Learner |
|---|
getName |
| Field Detail |
|---|
public static final java.lang.String PARAMETER_K
public static final java.lang.String PARAMETER_WEIGHTED_VOTE
| Constructor Detail |
|---|
public KNNLearner(OperatorDescription description)
| Method Detail |
|---|
public Model learn(ExampleSet exampleSet)
throws OperatorException
Learner
OperatorExceptionpublic boolean supportsCapability(LearnerCapability lc)
Learner
public InputDescription getInputDescription(java.lang.Class cls)
AbstractLearner
getInputDescription in class AbstractLearnerpublic java.util.List<ParameterType> getParameterTypes()
Operator
getParameterTypes in interface ParameterHandlergetParameterTypes in class Operator
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||