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.w3.org/2001/XMLSchema}string" />
<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>
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
algorithmName |
protected CategoricalScoringMethodType |
categoricalScoringMethod |
protected ComparisonMeasure |
comparisonMeasure |
protected ContinuousScoringMethodType |
continuousScoringMethod |
protected java.util.List<Extension> |
extensions |
protected MiningFunctionType |
functionName |
protected java.lang.String |
instanceIdVariable |
protected KNNInputs |
knnInputs |
protected LocalTransformations |
localTransformations |
protected MiningSchema |
miningSchema |
protected ModelExplanation |
modelExplanation |
protected java.lang.String |
modelName |
protected ModelStats |
modelStats |
protected ModelVerification |
modelVerification |
protected java.lang.Integer |
numberOfNeighbors |
protected Output |
output |
protected java.lang.Boolean |
scorable |
protected Targets |
targets |
protected java.lang.Double |
threshold |
protected TrainingInstances |
trainingInstances |
| Constructor and Description |
|---|
NearestNeighborModel() |
NearestNeighborModel(MiningFunctionType functionName,
java.lang.Integer numberOfNeighbors,
MiningSchema miningSchema,
TrainingInstances trainingInstances,
ComparisonMeasure comparisonMeasure,
KNNInputs knnInputs) |
| Modifier and Type | Method and Description |
|---|---|
VisitorAction |
accept(Visitor visitor) |
java.lang.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.
|
java.util.List<Extension> |
getExtensions()
Gets the value of the extensions property.
|
MiningFunctionType |
getFunctionName()
Gets the value of the functionName property.
|
java.lang.String |
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.
|
java.lang.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.
|
java.lang.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.
|
void |
setAlgorithmName(java.lang.String value)
Sets the value of the algorithmName property.
|
void |
setCategoricalScoringMethod(CategoricalScoringMethodType value)
Sets the value of the categoricalScoringMethod property.
|
void |
setComparisonMeasure(ComparisonMeasure value)
Sets the value of the comparisonMeasure property.
|
void |
setContinuousScoringMethod(ContinuousScoringMethodType value)
Sets the value of the continuousScoringMethod property.
|
void |
setFunctionName(MiningFunctionType value)
Sets the value of the functionName property.
|
void |
setInstanceIdVariable(java.lang.String value)
Sets the value of the instanceIdVariable property.
|
void |
setKNNInputs(KNNInputs value)
Sets the value of the knnInputs property.
|
void |
setLocalTransformations(LocalTransformations value)
Sets the value of the localTransformations property.
|
void |
setMiningSchema(MiningSchema value)
Sets the value of the miningSchema property.
|
void |
setModelExplanation(ModelExplanation value)
Sets the value of the modelExplanation property.
|
void |
setModelName(java.lang.String value)
Sets the value of the modelName property.
|
void |
setModelStats(ModelStats value)
Sets the value of the modelStats property.
|
void |
setModelVerification(ModelVerification value)
Sets the value of the modelVerification property.
|
void |
setNumberOfNeighbors(java.lang.Integer value)
Sets the value of the numberOfNeighbors property.
|
void |
setOutput(Output value)
Sets the value of the output property.
|
void |
setScorable(java.lang.Boolean value)
Sets the value of the scorable property.
|
void |
setTargets(Targets value)
Sets the value of the targets property.
|
void |
setThreshold(java.lang.Double value)
Sets the value of the threshold property.
|
void |
setTrainingInstances(TrainingInstances value)
Sets the value of the trainingInstances property.
|
NearestNeighborModel |
withAlgorithmName(java.lang.String value) |
NearestNeighborModel |
withCategoricalScoringMethod(CategoricalScoringMethodType value) |
NearestNeighborModel |
withComparisonMeasure(ComparisonMeasure value) |
NearestNeighborModel |
withContinuousScoringMethod(ContinuousScoringMethodType value) |
NearestNeighborModel |
withExtensions(java.util.Collection<Extension> values) |
NearestNeighborModel |
withExtensions(Extension... values) |
NearestNeighborModel |
withFunctionName(MiningFunctionType value) |
NearestNeighborModel |
withInstanceIdVariable(java.lang.String value) |
NearestNeighborModel |
withKNNInputs(KNNInputs value) |
NearestNeighborModel |
withLocalTransformations(LocalTransformations value) |
NearestNeighborModel |
withMiningSchema(MiningSchema value) |
NearestNeighborModel |
withModelExplanation(ModelExplanation value) |
NearestNeighborModel |
withModelName(java.lang.String value) |
NearestNeighborModel |
withModelStats(ModelStats value) |
NearestNeighborModel |
withModelVerification(ModelVerification value) |
NearestNeighborModel |
withNumberOfNeighbors(java.lang.Integer value) |
NearestNeighborModel |
withOutput(Output value) |
NearestNeighborModel |
withScorable(java.lang.Boolean value) |
NearestNeighborModel |
withTargets(Targets value) |
NearestNeighborModel |
withThreshold(java.lang.Double value) |
NearestNeighborModel |
withTrainingInstances(TrainingInstances value) |
getLocator, setLocatorprotected java.lang.String modelName
protected MiningFunctionType functionName
protected java.lang.String algorithmName
protected java.lang.Integer numberOfNeighbors
protected ContinuousScoringMethodType continuousScoringMethod
protected CategoricalScoringMethodType categoricalScoringMethod
protected java.lang.String instanceIdVariable
protected java.lang.Double threshold
protected java.lang.Boolean scorable
protected java.util.List<Extension> extensions
protected MiningSchema miningSchema
protected Output output
protected ModelStats modelStats
protected ModelExplanation modelExplanation
protected Targets targets
protected LocalTransformations localTransformations
protected TrainingInstances trainingInstances
protected ComparisonMeasure comparisonMeasure
protected KNNInputs knnInputs
protected ModelVerification modelVerification
public NearestNeighborModel()
public NearestNeighborModel(MiningFunctionType functionName, java.lang.Integer numberOfNeighbors, MiningSchema miningSchema, TrainingInstances trainingInstances, ComparisonMeasure comparisonMeasure, KNNInputs knnInputs)
public java.lang.String getModelName()
getModelName in class ModelStringpublic void setModelName(java.lang.String value)
setModelName in class Modelvalue - allowed object is
Stringpublic MiningFunctionType getFunctionName()
getFunctionName in class ModelMiningFunctionTypepublic void setFunctionName(MiningFunctionType value)
setFunctionName in class Modelvalue - allowed object is
MiningFunctionTypepublic java.lang.String getAlgorithmName()
getAlgorithmName in class ModelStringpublic void setAlgorithmName(java.lang.String value)
setAlgorithmName in class Modelvalue - allowed object is
Stringpublic java.lang.Integer getNumberOfNeighbors()
Stringpublic void setNumberOfNeighbors(java.lang.Integer value)
value - allowed object is
Stringpublic ContinuousScoringMethodType getContinuousScoringMethod()
ContinuousScoringMethodTypepublic void setContinuousScoringMethod(ContinuousScoringMethodType value)
value - allowed object is
ContinuousScoringMethodTypepublic CategoricalScoringMethodType getCategoricalScoringMethod()
CategoricalScoringMethodTypepublic void setCategoricalScoringMethod(CategoricalScoringMethodType value)
value - allowed object is
CategoricalScoringMethodTypepublic java.lang.String getInstanceIdVariable()
Stringpublic void setInstanceIdVariable(java.lang.String value)
value - allowed object is
Stringpublic double getThreshold()
Doublepublic void setThreshold(java.lang.Double value)
value - allowed object is
Doublepublic boolean isScorable()
isScorable in class ModelBooleanpublic void setScorable(java.lang.Boolean value)
setScorable in class Modelvalue - allowed object is
Booleanpublic java.util.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 void setMiningSchema(MiningSchema value)
setMiningSchema in class Modelvalue - allowed object is
MiningSchemapublic Output getOutput()
public void setOutput(Output value)
public ModelStats getModelStats()
getModelStats in class ModelModelStatspublic void setModelStats(ModelStats value)
setModelStats in class Modelvalue - allowed object is
ModelStatspublic ModelExplanation getModelExplanation()
getModelExplanation in class ModelModelExplanationpublic void setModelExplanation(ModelExplanation value)
setModelExplanation in class Modelvalue - allowed object is
ModelExplanationpublic Targets getTargets()
getTargets in class ModelTargetspublic void setTargets(Targets value)
setTargets in class Modelvalue - allowed object is
Targetspublic LocalTransformations getLocalTransformations()
getLocalTransformations in class ModelLocalTransformationspublic void setLocalTransformations(LocalTransformations value)
setLocalTransformations in class Modelvalue - allowed object is
LocalTransformationspublic TrainingInstances getTrainingInstances()
TrainingInstancespublic void setTrainingInstances(TrainingInstances value)
value - allowed object is
TrainingInstancespublic ComparisonMeasure getComparisonMeasure()
ComparisonMeasurepublic void setComparisonMeasure(ComparisonMeasure value)
value - allowed object is
ComparisonMeasurepublic KNNInputs getKNNInputs()
KNNInputspublic void setKNNInputs(KNNInputs value)
value - allowed object is
KNNInputspublic ModelVerification getModelVerification()
getModelVerification in class ModelModelVerificationpublic void setModelVerification(ModelVerification value)
setModelVerification in class Modelvalue - allowed object is
ModelVerificationpublic NearestNeighborModel withModelName(java.lang.String value)
public NearestNeighborModel withFunctionName(MiningFunctionType value)
public NearestNeighborModel withAlgorithmName(java.lang.String value)
public NearestNeighborModel withNumberOfNeighbors(java.lang.Integer value)
public NearestNeighborModel withContinuousScoringMethod(ContinuousScoringMethodType value)
public NearestNeighborModel withCategoricalScoringMethod(CategoricalScoringMethodType value)
public NearestNeighborModel withInstanceIdVariable(java.lang.String value)
public NearestNeighborModel withThreshold(java.lang.Double value)
public NearestNeighborModel withScorable(java.lang.Boolean value)
public NearestNeighborModel withExtensions(Extension... values)
public NearestNeighborModel withExtensions(java.util.Collection<Extension> values)
public NearestNeighborModel withMiningSchema(MiningSchema value)
public NearestNeighborModel withOutput(Output value)
public NearestNeighborModel withModelStats(ModelStats value)
public NearestNeighborModel withModelExplanation(ModelExplanation value)
public NearestNeighborModel withTargets(Targets value)
public NearestNeighborModel withLocalTransformations(LocalTransformations value)
public NearestNeighborModel withTrainingInstances(TrainingInstances value)
public NearestNeighborModel withComparisonMeasure(ComparisonMeasure value)
public NearestNeighborModel withKNNInputs(KNNInputs value)
public NearestNeighborModel withModelVerification(ModelVerification value)
public boolean hasExtensions()
hasExtensions in interface HasExtensionspublic VisitorAction accept(Visitor visitor)
Copyright © 2015 University of Tartu. All Rights Reserved.