|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.android.activityminer.pmml.model.knn.NearestNeighborModel
public class NearestNeighborModel
A simple nearest neighbor model representation (without extensions, model statistics, model explanation, targets, local transformations and model verification elements)
Field Summary | |
---|---|
private String |
algorithmName
Can be any string describing the algorithm that was used while creating the k-NN model. |
private CatScoringMethod |
categoricalScoringMethod
Specify the scoring (or combining) method for categorical target values of K neighbors |
private ComparisonMeasure |
comparisonMeasure
The comparison measure |
private ContScoringMethod |
continuousScoringMethod
Specify the scoring (or combining) method for continuous target values of K neighbors |
private MiningFunctionType |
functionName
Could be either "classification" or "regression" depending on the target variable(s). |
private String |
instanceIdVariable
Contains the instance ID variable name and so refers to the name of a field in InstanceFields. |
private boolean |
isScorable
This attribute indicates if the model is valid for scoring. |
private KNNInputs |
knnInputs
The knn inputs |
private LocalTransformations |
localTransformations
The local transformations |
private MiningSchema |
miningSchema
The mining schema |
private String |
modelName
A unique identifier specifying the name of the k-NN model |
private int |
numberOfNeighbors
instanceFields Specifies K, the number of desired neighbors. |
private Output |
output
The output |
private double |
threshold
Defines a very small positive number to be used for "weighted" scoring methods to avoid numerical problems when distance or similarity measure is zero. |
private TrainingInstances |
trainingInstances
The training instances |
Constructor Summary | |
---|---|
NearestNeighborModel()
|
Method Summary | |
---|---|
String |
getAlgorithmName()
Getter for the algorithmName |
CatScoringMethod |
getCategoricalScoringMethod()
Getter for the categoricalScoringMethod |
ComparisonMeasure |
getComparisonMeasure()
Getter for the comparisonMeasure |
ContScoringMethod |
getContinuousScoringMethod()
Getter for the continuousScoringMethod |
MiningFunctionType |
getFunctionName()
Getter for the functionName |
String |
getInstanceIdVariable()
Getter for the instanceIdVariable |
String |
getIsScorableValue()
Getter for the isScorable XML attribute value |
KNNInputs |
getKnnInputs()
Getter for the knnInputs |
LocalTransformations |
getLocalTransformations()
Getter for the localTransformations |
MiningSchema |
getMiningSchema()
Getter for the miningSchema |
String |
getModelName()
Getter for the modelName |
int |
getNumberOfNeighbors()
Getter for the numberOfNeighbors |
Output |
getOutput()
Getter for the output |
double |
getThreshold()
Getter for the threshold |
TrainingInstances |
getTrainingInstances()
Getter for the trainingInstances |
boolean |
isScorable()
Getter for the isScorable |
void |
setAlgorithmName(String algorithmName)
Setter for the algorithmName |
void |
setCategoricalScoringMethod(CatScoringMethod categoricalScoringMethod)
Setter for the categoricalScoringMethod |
void |
setComparisonMeasure(ComparisonMeasure comparisonMeasure)
Setter for the comparisonMeasure |
void |
setContinuousScoringMethod(ContScoringMethod continuousScoringMethod)
Setter for the continuousScoringMethod |
void |
setFunctionName(MiningFunctionType functionName)
Setter for the functionName |
void |
setInstanceIdVariable(String instanceIdVariable)
Setter for the instanceIdVariable |
void |
setIsScorableValue(String isCyclic)
Setter for the isScorable XML attribute value |
void |
setKnnInputs(KNNInputs knnInputs)
Setter for the knnInputs |
void |
setLocalTransformations(LocalTransformations localTransformations)
Setter for the localTransformations |
void |
setMiningSchema(MiningSchema miningSchema)
Setter for the miningSchema |
void |
setModelName(String modelName)
Setter for the modelName |
void |
setNumberOfNeighbors(int numberOfNeighbors)
Setter for the numberOfNeighbors |
void |
setOutput(Output output)
Setter for the output |
void |
setScorable(boolean isScorable)
Setter for the isScorable |
void |
setThreshold(double threshold)
Setter for the threshold |
void |
setTrainingInstances(TrainingInstances trainingInstances)
Setter for the trainingInstances |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private String modelName
private MiningFunctionType functionName
private String algorithmName
private int numberOfNeighbors
private ContScoringMethod continuousScoringMethod
private CatScoringMethod categoricalScoringMethod
private String instanceIdVariable
private double threshold
private boolean isScorable
private MiningSchema miningSchema
private TrainingInstances trainingInstances
private ComparisonMeasure comparisonMeasure
private KNNInputs knnInputs
private Output output
private LocalTransformations localTransformations
Constructor Detail |
---|
public NearestNeighborModel()
Method Detail |
---|
public void setMiningSchema(MiningSchema miningSchema)
ModelElement
setMiningSchema
in interface ModelElement
miningSchema
- the miningSchema to setpublic MiningSchema getMiningSchema()
ModelElement
getMiningSchema
in interface ModelElement
public void setModelName(String modelName)
modelName
- the modelName to setpublic String getModelName()
public void setFunctionName(MiningFunctionType functionName)
functionName
- the functionName to setpublic MiningFunctionType getFunctionName()
public void setAlgorithmName(String algorithmName)
algorithmName
- the algorithmName to setpublic String getAlgorithmName()
public void setNumberOfNeighbors(int numberOfNeighbors)
numberOfNeighbors
- the numberOfNeighbors to setpublic int getNumberOfNeighbors()
public void setContinuousScoringMethod(ContScoringMethod continuousScoringMethod)
continuousScoringMethod
- the continuousScoringMethod to setpublic ContScoringMethod getContinuousScoringMethod()
public void setCategoricalScoringMethod(CatScoringMethod categoricalScoringMethod)
categoricalScoringMethod
- the categoricalScoringMethod to setpublic CatScoringMethod getCategoricalScoringMethod()
public String getInstanceIdVariable()
public double getThreshold()
public void setInstanceIdVariable(String instanceIdVariable)
instanceIdVariable
- the instanceIdVariable to setpublic void setThreshold(double threshold)
threshold
- the threshold to setpublic void setScorable(boolean isScorable)
isScorable
- the isScorable to setpublic boolean isScorable()
public void setIsScorableValue(String isCyclic)
isCyclic
- the isScorable XML attribute value to setpublic String getIsScorableValue()
public void setOutput(Output output)
ModelElement
setOutput
in interface ModelElement
output
- the output to setpublic Output getOutput()
ModelElement
getOutput
in interface ModelElement
public void setTrainingInstances(TrainingInstances trainingInstances)
trainingInstances
- the trainingInstances to setpublic TrainingInstances getTrainingInstances()
public void setComparisonMeasure(ComparisonMeasure comparisonMeasure)
comparisonMeasure
- the comparisonMeasure to setpublic ComparisonMeasure getComparisonMeasure()
public void setKnnInputs(KNNInputs knnInputs)
knnInputs
- the knnInputs to setpublic KNNInputs getKnnInputs()
public LocalTransformations getLocalTransformations()
public void setLocalTransformations(LocalTransformations localTransformations)
localTransformations
- the localTransformations to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |