public class NearestNeighborModel extends Model implements HasExtensions
Java class for anonymous complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType>
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element ref="{http://www.dmg.org/PMML-4_2}Extension" maxOccurs="unbounded" minOccurs="0"/>
<element ref="{http://www.dmg.org/PMML-4_2}MiningSchema"/>
<element ref="{http://www.dmg.org/PMML-4_2}Output" minOccurs="0"/>
<element ref="{http://www.dmg.org/PMML-4_2}ModelStats" minOccurs="0"/>
<element ref="{http://www.dmg.org/PMML-4_2}ModelExplanation" minOccurs="0"/>
<element ref="{http://www.dmg.org/PMML-4_2}Targets" minOccurs="0"/>
<element ref="{http://www.dmg.org/PMML-4_2}LocalTransformations" minOccurs="0"/>
<element ref="{http://www.dmg.org/PMML-4_2}TrainingInstances"/>
<element ref="{http://www.dmg.org/PMML-4_2}ComparisonMeasure"/>
<element ref="{http://www.dmg.org/PMML-4_2}KNNInputs"/>
<element ref="{http://www.dmg.org/PMML-4_2}ModelVerification" minOccurs="0"/>
</sequence>
<attribute name="modelName" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="functionName" use="required" type="{http://www.dmg.org/PMML-4_2}MINING-FUNCTION" />
<attribute name="algorithmName" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="numberOfNeighbors" use="required" type="{http://www.dmg.org/PMML-4_2}INT-NUMBER" />
<attribute name="continuousScoringMethod" type="{http://www.dmg.org/PMML-4_2}CONT-SCORING-METHOD" default="average" />
<attribute name="categoricalScoringMethod" type="{http://www.dmg.org/PMML-4_2}CAT-SCORING-METHOD" default="majorityVote" />
<attribute name="instanceIdVariable" type="{http://www.dmg.org/PMML-4_2}FIELD-NAME" />
<attribute name="threshold" type="{http://www.dmg.org/PMML-4_2}REAL-NUMBER" default="0.001" />
<attribute name="isScorable" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
</restriction>
</complexContent>
</complexType>
| Constructor and Description |
|---|
NearestNeighborModel() |
NearestNeighborModel(MiningFunctionType functionName,
Integer numberOfNeighbors,
MiningSchema miningSchema,
TrainingInstances trainingInstances,
ComparisonMeasure comparisonMeasure,
KNNInputs knnInputs) |
| Modifier and Type | Method and Description |
|---|---|
VisitorAction |
accept(Visitor visitor) |
NearestNeighborModel |
addExtensions(Extension... extensions) |
String |
getAlgorithmName()
Gets the value of the algorithmName property.
|
CategoricalScoringMethodType |
getCategoricalScoringMethod()
Gets the value of the categoricalScoringMethod property.
|
ComparisonMeasure |
getComparisonMeasure()
Gets the value of the comparisonMeasure property.
|
ContinuousScoringMethodType |
getContinuousScoringMethod()
Gets the value of the continuousScoringMethod property.
|
List<Extension> |
getExtensions()
Gets the value of the extensions property.
|
MiningFunctionType |
getFunctionName()
Gets the value of the functionName property.
|
FieldName |
getInstanceIdVariable()
Gets the value of the instanceIdVariable property.
|
KNNInputs |
getKNNInputs()
Gets the value of the knnInputs property.
|
LocalTransformations |
getLocalTransformations()
Gets the value of the localTransformations property.
|
MiningSchema |
getMiningSchema()
Gets the value of the miningSchema property.
|
ModelExplanation |
getModelExplanation()
Gets the value of the modelExplanation property.
|
String |
getModelName()
Gets the value of the modelName property.
|
ModelStats |
getModelStats()
Gets the value of the modelStats property.
|
ModelVerification |
getModelVerification()
Gets the value of the modelVerification property.
|
Integer |
getNumberOfNeighbors()
Gets the value of the numberOfNeighbors property.
|
Output |
getOutput()
Gets the value of the output property.
|
Targets |
getTargets()
Gets the value of the targets property.
|
Double |
getThreshold()
Gets the value of the threshold property.
|
TrainingInstances |
getTrainingInstances()
Gets the value of the trainingInstances property.
|
boolean |
hasExtensions() |
boolean |
isScorable()
Gets the value of the scorable property.
|
NearestNeighborModel |
setAlgorithmName(String algorithmName)
Sets the value of the algorithmName property.
|
NearestNeighborModel |
setCategoricalScoringMethod(CategoricalScoringMethodType categoricalScoringMethod)
Sets the value of the categoricalScoringMethod property.
|
NearestNeighborModel |
setComparisonMeasure(ComparisonMeasure comparisonMeasure)
Sets the value of the comparisonMeasure property.
|
NearestNeighborModel |
setContinuousScoringMethod(ContinuousScoringMethodType continuousScoringMethod)
Sets the value of the continuousScoringMethod property.
|
NearestNeighborModel |
setFunctionName(MiningFunctionType functionName)
Sets the value of the functionName property.
|
NearestNeighborModel |
setInstanceIdVariable(FieldName instanceIdVariable)
Sets the value of the instanceIdVariable property.
|
NearestNeighborModel |
setKNNInputs(KNNInputs knnInputs)
Sets the value of the knnInputs property.
|
NearestNeighborModel |
setLocalTransformations(LocalTransformations localTransformations)
Sets the value of the localTransformations property.
|
NearestNeighborModel |
setMiningSchema(MiningSchema miningSchema)
Sets the value of the miningSchema property.
|
NearestNeighborModel |
setModelExplanation(ModelExplanation modelExplanation)
Sets the value of the modelExplanation property.
|
NearestNeighborModel |
setModelName(String modelName)
Sets the value of the modelName property.
|
NearestNeighborModel |
setModelStats(ModelStats modelStats)
Sets the value of the modelStats property.
|
NearestNeighborModel |
setModelVerification(ModelVerification modelVerification)
Sets the value of the modelVerification property.
|
NearestNeighborModel |
setNumberOfNeighbors(Integer numberOfNeighbors)
Sets the value of the numberOfNeighbors property.
|
NearestNeighborModel |
setOutput(Output output)
Sets the value of the output property.
|
NearestNeighborModel |
setScorable(Boolean scorable)
Sets the value of the scorable property.
|
NearestNeighborModel |
setTargets(Targets targets)
Sets the value of the targets property.
|
NearestNeighborModel |
setThreshold(Double threshold)
Sets the value of the threshold property.
|
NearestNeighborModel |
setTrainingInstances(TrainingInstances trainingInstances)
Sets the value of the trainingInstances property.
|
getLocator, setLocatorpublic NearestNeighborModel()
public NearestNeighborModel(MiningFunctionType functionName, Integer numberOfNeighbors, MiningSchema miningSchema, TrainingInstances trainingInstances, ComparisonMeasure comparisonMeasure, KNNInputs knnInputs)
public String getModelName()
getModelName in class ModelStringpublic NearestNeighborModel setModelName(String modelName)
setModelName in class ModelmodelName - allowed object is
Stringpublic MiningFunctionType getFunctionName()
getFunctionName in class ModelMiningFunctionTypepublic NearestNeighborModel setFunctionName(MiningFunctionType functionName)
setFunctionName in class ModelfunctionName - allowed object is
MiningFunctionTypepublic String getAlgorithmName()
getAlgorithmName in class ModelStringpublic NearestNeighborModel setAlgorithmName(String algorithmName)
setAlgorithmName in class ModelalgorithmName - allowed object is
Stringpublic Integer getNumberOfNeighbors()
Stringpublic NearestNeighborModel setNumberOfNeighbors(Integer numberOfNeighbors)
numberOfNeighbors - allowed object is
Stringpublic ContinuousScoringMethodType getContinuousScoringMethod()
ContinuousScoringMethodTypepublic NearestNeighborModel setContinuousScoringMethod(ContinuousScoringMethodType continuousScoringMethod)
continuousScoringMethod - allowed object is
ContinuousScoringMethodTypepublic CategoricalScoringMethodType getCategoricalScoringMethod()
CategoricalScoringMethodTypepublic NearestNeighborModel setCategoricalScoringMethod(CategoricalScoringMethodType categoricalScoringMethod)
categoricalScoringMethod - allowed object is
CategoricalScoringMethodTypepublic FieldName getInstanceIdVariable()
Stringpublic NearestNeighborModel setInstanceIdVariable(FieldName instanceIdVariable)
instanceIdVariable - allowed object is
Stringpublic Double getThreshold()
Doublepublic NearestNeighborModel setThreshold(Double threshold)
threshold - allowed object is
Doublepublic boolean isScorable()
isScorable in class ModelBooleanpublic NearestNeighborModel setScorable(Boolean scorable)
setScorable in class Modelscorable - allowed object is
Booleanpublic List<Extension> getExtensions()
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a set method for the extensions property.
For example, to add a new item, do as follows:
getExtensions().add(newItem);
Objects of the following type(s) are allowed in the list
Extension
getExtensions in interface HasExtensionspublic MiningSchema getMiningSchema()
getMiningSchema in class ModelMiningSchemapublic NearestNeighborModel setMiningSchema(MiningSchema miningSchema)
setMiningSchema in class ModelminingSchema - allowed object is
MiningSchemapublic Output getOutput()
public NearestNeighborModel setOutput(Output output)
public ModelStats getModelStats()
getModelStats in class ModelModelStatspublic NearestNeighborModel setModelStats(ModelStats modelStats)
setModelStats in class ModelmodelStats - allowed object is
ModelStatspublic ModelExplanation getModelExplanation()
getModelExplanation in class ModelModelExplanationpublic NearestNeighborModel setModelExplanation(ModelExplanation modelExplanation)
setModelExplanation in class ModelmodelExplanation - allowed object is
ModelExplanationpublic Targets getTargets()
getTargets in class ModelTargetspublic NearestNeighborModel setTargets(Targets targets)
setTargets in class Modeltargets - allowed object is
Targetspublic LocalTransformations getLocalTransformations()
getLocalTransformations in class ModelLocalTransformationspublic NearestNeighborModel setLocalTransformations(LocalTransformations localTransformations)
setLocalTransformations in class ModellocalTransformations - allowed object is
LocalTransformationspublic TrainingInstances getTrainingInstances()
TrainingInstancespublic NearestNeighborModel setTrainingInstances(TrainingInstances trainingInstances)
trainingInstances - allowed object is
TrainingInstancespublic ComparisonMeasure getComparisonMeasure()
ComparisonMeasurepublic NearestNeighborModel setComparisonMeasure(ComparisonMeasure comparisonMeasure)
comparisonMeasure - allowed object is
ComparisonMeasurepublic KNNInputs getKNNInputs()
KNNInputspublic NearestNeighborModel setKNNInputs(KNNInputs knnInputs)
knnInputs - allowed object is
KNNInputspublic ModelVerification getModelVerification()
getModelVerification in class ModelModelVerificationpublic NearestNeighborModel setModelVerification(ModelVerification modelVerification)
setModelVerification in class ModelmodelVerification - allowed object is
ModelVerificationpublic boolean hasExtensions()
hasExtensions in interface HasExtensionspublic NearestNeighborModel addExtensions(Extension... extensions)
public VisitorAction accept(Visitor visitor)
Copyright © 2015 University of Tartu. All Rights Reserved.