Package org.dmg.pmml.nearest_neighbor
Class NearestNeighborModel
- java.lang.Object
-
- org.dmg.pmml.PMMLObject
-
- org.dmg.pmml.Model
-
- org.dmg.pmml.nearest_neighbor.NearestNeighborModel
-
- All Implemented Interfaces:
java.io.Serializable,HasExtensions<NearestNeighborModel>,HasLocator,Visitable
public class NearestNeighborModel extends Model implements HasExtensions<NearestNeighborModel>
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNearestNeighborModel.CategoricalScoringMethodstatic classNearestNeighborModel.ContinuousScoringMethod
-
Constructor Summary
Constructors Constructor Description NearestNeighborModel()NearestNeighborModel(MiningFunction miningFunction, java.lang.Integer numberOfNeighbors, MiningSchema miningSchema, TrainingInstances trainingInstances, ComparisonMeasure comparisonMeasure, KNNInputs knnInputs)
-
Method Summary
-
Methods inherited from class org.dmg.pmml.PMMLObject
getLocator, getSchemaVersion, getSchemaVersion, hasLocator, setLocator
-
-
-
-
Constructor Detail
-
NearestNeighborModel
public NearestNeighborModel()
-
NearestNeighborModel
public NearestNeighborModel(MiningFunction miningFunction, java.lang.Integer numberOfNeighbors, MiningSchema miningSchema, TrainingInstances trainingInstances, ComparisonMeasure comparisonMeasure, KNNInputs knnInputs)
-
-
Method Detail
-
getModelName
public java.lang.String getModelName()
- Specified by:
getModelNamein classModel
-
setModelName
public NearestNeighborModel setModelName(java.lang.String modelName)
- Specified by:
setModelNamein classModel
-
requireMiningFunction
public MiningFunction requireMiningFunction()
- Specified by:
requireMiningFunctionin classModel
-
getMiningFunction
public MiningFunction getMiningFunction()
- Specified by:
getMiningFunctionin classModel
-
setMiningFunction
public NearestNeighborModel setMiningFunction(MiningFunction miningFunction)
- Specified by:
setMiningFunctionin classModel
-
getAlgorithmName
public java.lang.String getAlgorithmName()
- Specified by:
getAlgorithmNamein classModel
-
setAlgorithmName
public NearestNeighborModel setAlgorithmName(java.lang.String algorithmName)
- Specified by:
setAlgorithmNamein classModel
-
requireNumberOfNeighbors
public java.lang.Integer requireNumberOfNeighbors()
-
getNumberOfNeighbors
public java.lang.Integer getNumberOfNeighbors()
-
setNumberOfNeighbors
public NearestNeighborModel setNumberOfNeighbors(java.lang.Integer numberOfNeighbors)
-
getContinuousScoringMethod
public NearestNeighborModel.ContinuousScoringMethod getContinuousScoringMethod()
-
setContinuousScoringMethod
public NearestNeighborModel setContinuousScoringMethod(NearestNeighborModel.ContinuousScoringMethod continuousScoringMethod)
-
getCategoricalScoringMethod
public NearestNeighborModel.CategoricalScoringMethod getCategoricalScoringMethod()
-
setCategoricalScoringMethod
public NearestNeighborModel setCategoricalScoringMethod(NearestNeighborModel.CategoricalScoringMethod categoricalScoringMethod)
-
getInstanceIdVariable
public java.lang.String getInstanceIdVariable()
-
setInstanceIdVariable
public NearestNeighborModel setInstanceIdVariable(java.lang.String instanceIdVariable)
-
getThreshold
public java.lang.Number getThreshold()
-
setThreshold
public NearestNeighborModel setThreshold(java.lang.Number threshold)
-
isScorable
public boolean isScorable()
- Specified by:
isScorablein classModel
-
setScorable
public NearestNeighborModel setScorable(java.lang.Boolean scorable)
- Specified by:
setScorablein classModel
-
getMathContext
public MathContext getMathContext()
- Specified by:
getMathContextin classModel
-
setMathContext
public NearestNeighborModel setMathContext(MathContext mathContext)
- Specified by:
setMathContextin classModel
-
hasExtensions
public boolean hasExtensions()
- Specified by:
hasExtensionsin interfaceHasExtensions<NearestNeighborModel>
-
getExtensions
public java.util.List<Extension> getExtensions()
- Specified by:
getExtensionsin interfaceHasExtensions<NearestNeighborModel>
-
addExtensions
public NearestNeighborModel addExtensions(Extension... extensions)
- Specified by:
addExtensionsin interfaceHasExtensions<NearestNeighborModel>
-
requireMiningSchema
public MiningSchema requireMiningSchema()
- Specified by:
requireMiningSchemain classModel
-
getMiningSchema
public MiningSchema getMiningSchema()
- Specified by:
getMiningSchemain classModel
-
setMiningSchema
public NearestNeighborModel setMiningSchema(MiningSchema miningSchema)
- Specified by:
setMiningSchemain classModel
-
setOutput
public NearestNeighborModel setOutput(Output output)
-
getModelStats
public ModelStats getModelStats()
- Overrides:
getModelStatsin classModel
-
setModelStats
public NearestNeighborModel setModelStats(ModelStats modelStats)
- Overrides:
setModelStatsin classModel
-
getModelExplanation
public ModelExplanation getModelExplanation()
- Overrides:
getModelExplanationin classModel
-
setModelExplanation
public NearestNeighborModel setModelExplanation(ModelExplanation modelExplanation)
- Overrides:
setModelExplanationin classModel
-
getTargets
public Targets getTargets()
- Overrides:
getTargetsin classModel
-
setTargets
public NearestNeighborModel setTargets(Targets targets)
- Overrides:
setTargetsin classModel
-
getLocalTransformations
public LocalTransformations getLocalTransformations()
- Specified by:
getLocalTransformationsin classModel
-
setLocalTransformations
public NearestNeighborModel setLocalTransformations(LocalTransformations localTransformations)
- Specified by:
setLocalTransformationsin classModel
-
requireTrainingInstances
public TrainingInstances requireTrainingInstances()
-
getTrainingInstances
public TrainingInstances getTrainingInstances()
-
setTrainingInstances
public NearestNeighborModel setTrainingInstances(TrainingInstances trainingInstances)
-
requireComparisonMeasure
public ComparisonMeasure requireComparisonMeasure()
-
getComparisonMeasure
public ComparisonMeasure getComparisonMeasure()
-
setComparisonMeasure
public NearestNeighborModel setComparisonMeasure(ComparisonMeasure comparisonMeasure)
-
requireKNNInputs
public KNNInputs requireKNNInputs()
-
getKNNInputs
public KNNInputs getKNNInputs()
-
setKNNInputs
public NearestNeighborModel setKNNInputs(KNNInputs knnInputs)
-
getModelVerification
public ModelVerification getModelVerification()
- Overrides:
getModelVerificationin classModel
-
setModelVerification
public NearestNeighborModel setModelVerification(ModelVerification modelVerification)
- Overrides:
setModelVerificationin classModel
-
accept
public VisitorAction accept(Visitor visitor)
-
-