public class NaiveBayesModel 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_3}Extension" maxOccurs="unbounded" minOccurs="0"/>
<element ref="{http://www.dmg.org/PMML-4_3}MiningSchema"/>
<element ref="{http://www.dmg.org/PMML-4_3}Output" minOccurs="0"/>
<element ref="{http://www.dmg.org/PMML-4_3}ModelStats" minOccurs="0"/>
<element ref="{http://www.dmg.org/PMML-4_3}ModelExplanation" minOccurs="0"/>
<element ref="{http://www.dmg.org/PMML-4_3}Targets" minOccurs="0"/>
<element ref="{http://www.dmg.org/PMML-4_3}LocalTransformations" minOccurs="0"/>
<element ref="{http://www.dmg.org/PMML-4_3}BayesInputs"/>
<element ref="{http://www.dmg.org/PMML-4_3}BayesOutput"/>
<element ref="{http://www.dmg.org/PMML-4_3}ModelVerification" minOccurs="0"/>
</sequence>
<attribute name="modelName" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="threshold" use="required" type="{http://www.dmg.org/PMML-4_3}REAL-NUMBER" />
<attribute name="functionName" use="required" type="{http://www.dmg.org/PMML-4_3}MINING-FUNCTION" />
<attribute name="algorithmName" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="isScorable" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
</restriction>
</complexContent>
</complexType>
| Constructor and Description |
|---|
NaiveBayesModel() |
NaiveBayesModel(double threshold,
MiningFunction miningFunction,
MiningSchema miningSchema,
BayesInputs bayesInputs,
BayesOutput bayesOutput) |
| Modifier and Type | Method and Description |
|---|---|
VisitorAction |
accept(Visitor visitor) |
NaiveBayesModel |
addExtensions(Extension... extensions) |
String |
getAlgorithmName()
Gets the value of the algorithmName property.
|
BayesInputs |
getBayesInputs()
Gets the value of the bayesInputs property.
|
BayesOutput |
getBayesOutput()
Gets the value of the bayesOutput property.
|
List<Extension> |
getExtensions()
Gets the value of the extensions property.
|
LocalTransformations |
getLocalTransformations()
Gets the value of the localTransformations property.
|
MiningFunction |
getMiningFunction()
Gets the value of the miningFunction 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.
|
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.
|
boolean |
hasExtensions() |
boolean |
isScorable()
Gets the value of the scorable property.
|
NaiveBayesModel |
setAlgorithmName(String algorithmName)
Sets the value of the algorithmName property.
|
NaiveBayesModel |
setBayesInputs(BayesInputs bayesInputs)
Sets the value of the bayesInputs property.
|
NaiveBayesModel |
setBayesOutput(BayesOutput bayesOutput)
Sets the value of the bayesOutput property.
|
NaiveBayesModel |
setLocalTransformations(LocalTransformations localTransformations)
Sets the value of the localTransformations property.
|
NaiveBayesModel |
setMiningFunction(MiningFunction miningFunction)
Sets the value of the miningFunction property.
|
NaiveBayesModel |
setMiningSchema(MiningSchema miningSchema)
Sets the value of the miningSchema property.
|
NaiveBayesModel |
setModelExplanation(ModelExplanation modelExplanation)
Sets the value of the modelExplanation property.
|
NaiveBayesModel |
setModelName(String modelName)
Sets the value of the modelName property.
|
NaiveBayesModel |
setModelStats(ModelStats modelStats)
Sets the value of the modelStats property.
|
NaiveBayesModel |
setModelVerification(ModelVerification modelVerification)
Sets the value of the modelVerification property.
|
NaiveBayesModel |
setOutput(Output output)
Sets the value of the output property.
|
NaiveBayesModel |
setScorable(Boolean scorable)
Sets the value of the scorable property.
|
NaiveBayesModel |
setTargets(Targets targets)
Sets the value of the targets property.
|
NaiveBayesModel |
setThreshold(double threshold)
Sets the value of the threshold property.
|
getLocator, setLocator, traverse, traverse, traverse, traverse, traverseMixedpublic NaiveBayesModel()
public NaiveBayesModel(double threshold,
MiningFunction miningFunction,
MiningSchema miningSchema,
BayesInputs bayesInputs,
BayesOutput bayesOutput)
public String getModelName()
getModelName in class ModelStringpublic NaiveBayesModel setModelName(String modelName)
setModelName in class ModelmodelName - allowed object is
Stringpublic double getThreshold()
public NaiveBayesModel setThreshold(double threshold)
public MiningFunction getMiningFunction()
getMiningFunction in class ModelMiningFunctionpublic NaiveBayesModel setMiningFunction(MiningFunction miningFunction)
setMiningFunction in class ModelminingFunction - allowed object is
MiningFunctionpublic String getAlgorithmName()
getAlgorithmName in class ModelStringpublic NaiveBayesModel setAlgorithmName(String algorithmName)
setAlgorithmName in class ModelalgorithmName - allowed object is
Stringpublic boolean isScorable()
isScorable in class ModelBooleanpublic NaiveBayesModel 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 NaiveBayesModel setMiningSchema(MiningSchema miningSchema)
setMiningSchema in class ModelminingSchema - allowed object is
MiningSchemapublic Output getOutput()
public NaiveBayesModel setOutput(Output output)
public ModelStats getModelStats()
getModelStats in class ModelModelStatspublic NaiveBayesModel setModelStats(ModelStats modelStats)
setModelStats in class ModelmodelStats - allowed object is
ModelStatspublic ModelExplanation getModelExplanation()
getModelExplanation in class ModelModelExplanationpublic NaiveBayesModel setModelExplanation(ModelExplanation modelExplanation)
setModelExplanation in class ModelmodelExplanation - allowed object is
ModelExplanationpublic Targets getTargets()
getTargets in class ModelTargetspublic NaiveBayesModel setTargets(Targets targets)
setTargets in class Modeltargets - allowed object is
Targetspublic LocalTransformations getLocalTransformations()
getLocalTransformations in class ModelLocalTransformationspublic NaiveBayesModel setLocalTransformations(LocalTransformations localTransformations)
setLocalTransformations in class ModellocalTransformations - allowed object is
LocalTransformationspublic BayesInputs getBayesInputs()
BayesInputspublic NaiveBayesModel setBayesInputs(BayesInputs bayesInputs)
bayesInputs - allowed object is
BayesInputspublic BayesOutput getBayesOutput()
BayesOutputpublic NaiveBayesModel setBayesOutput(BayesOutput bayesOutput)
bayesOutput - allowed object is
BayesOutputpublic ModelVerification getModelVerification()
getModelVerification in class ModelModelVerificationpublic NaiveBayesModel setModelVerification(ModelVerification modelVerification)
setModelVerification in class ModelmodelVerification - allowed object is
ModelVerificationpublic boolean hasExtensions()
hasExtensions in interface HasExtensionspublic NaiveBayesModel addExtensions(Extension... extensions)
public VisitorAction accept(Visitor visitor)
Copyright © 2016 University of Tartu. All rights reserved.