Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
weka.core.pmml.jaxbbindings.NearestNeighborModel Maven / Gradle / Ivy
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2013.12.20 at 12:48:21 PM GMT
//
package weka.core.pmml.jaxbbindings;
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElementRef;
import javax.xml.bind.annotation.XmlElementRefs;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* Java class for NearestNeighborModel element declaration.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <element name="NearestNeighborModel">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element ref="{http://www.dmg.org/PMML-4_1}Extension" maxOccurs="unbounded" minOccurs="0"/>
* <element ref="{http://www.dmg.org/PMML-4_1}MiningSchema"/>
* <element ref="{http://www.dmg.org/PMML-4_1}Output" minOccurs="0"/>
* <element ref="{http://www.dmg.org/PMML-4_1}ModelStats" minOccurs="0"/>
* <element ref="{http://www.dmg.org/PMML-4_1}ModelExplanation" minOccurs="0"/>
* <element ref="{http://www.dmg.org/PMML-4_1}Targets" minOccurs="0"/>
* <element ref="{http://www.dmg.org/PMML-4_1}LocalTransformations" minOccurs="0"/>
* <element ref="{http://www.dmg.org/PMML-4_1}TrainingInstances"/>
* <element ref="{http://www.dmg.org/PMML-4_1}ComparisonMeasure"/>
* <element ref="{http://www.dmg.org/PMML-4_1}KNNInputs"/>
* <element ref="{http://www.dmg.org/PMML-4_1}ModelVerification" minOccurs="0"/>
* <element ref="{http://www.dmg.org/PMML-4_1}Extension" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* <attribute name="algorithmName" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="categoricalScoringMethod" type="{http://www.dmg.org/PMML-4_1}CAT-SCORING-METHOD" default="majorityVote" />
* <attribute name="continuousScoringMethod" type="{http://www.dmg.org/PMML-4_1}CONT-SCORING-METHOD" default="average" />
* <attribute name="functionName" use="required" type="{http://www.dmg.org/PMML-4_1}MINING-FUNCTION" />
* <attribute name="instanceIdVariable" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="isScorable" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
* <attribute name="modelName" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="numberOfNeighbors" use="required" type="{http://www.dmg.org/PMML-4_1}INT-NUMBER" />
* <attribute name="threshold" type="{http://www.dmg.org/PMML-4_1}REAL-NUMBER" default="0.001" />
* </restriction>
* </complexContent>
* </complexType>
* </element>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"content"
})
@XmlRootElement(name = "NearestNeighborModel")
public class NearestNeighborModel {
@XmlElementRefs({
@XmlElementRef(name = "ModelExplanation", namespace = "http://www.dmg.org/PMML-4_1", type = ModelExplanation.class),
@XmlElementRef(name = "ModelStats", namespace = "http://www.dmg.org/PMML-4_1", type = ModelStats.class),
@XmlElementRef(name = "Output", namespace = "http://www.dmg.org/PMML-4_1", type = Output.class),
@XmlElementRef(name = "TrainingInstances", namespace = "http://www.dmg.org/PMML-4_1", type = TrainingInstances.class),
@XmlElementRef(name = "ComparisonMeasure", namespace = "http://www.dmg.org/PMML-4_1", type = ComparisonMeasure.class),
@XmlElementRef(name = "LocalTransformations", namespace = "http://www.dmg.org/PMML-4_1", type = LocalTransformations.class),
@XmlElementRef(name = "Targets", namespace = "http://www.dmg.org/PMML-4_1", type = Targets.class),
@XmlElementRef(name = "MiningSchema", namespace = "http://www.dmg.org/PMML-4_1", type = MiningSchema.class),
@XmlElementRef(name = "KNNInputs", namespace = "http://www.dmg.org/PMML-4_1", type = KNNInputs.class),
@XmlElementRef(name = "ModelVerification", namespace = "http://www.dmg.org/PMML-4_1", type = ModelVerification.class),
@XmlElementRef(name = "Extension", namespace = "http://www.dmg.org/PMML-4_1", type = Extension.class)
})
protected List content;
@XmlAttribute
protected String algorithmName;
@XmlAttribute
protected CATSCORINGMETHOD categoricalScoringMethod;
@XmlAttribute
protected CONTSCORINGMETHOD continuousScoringMethod;
@XmlAttribute(required = true)
protected MININGFUNCTION functionName;
@XmlAttribute
protected String instanceIdVariable;
@XmlAttribute
protected Boolean isScorable;
@XmlAttribute
protected String modelName;
@XmlAttribute(required = true)
protected BigInteger numberOfNeighbors;
@XmlAttribute
protected Double threshold;
/**
* Gets the rest of the content model.
*
*
* You are getting this "catch-all" property because of the following reason:
* The field name "Extension" is used by two different parts of a schema. See:
* line 814 of file:/home/david/workspace/weka/pmml-4-1.xsd
* line 803 of file:/home/david/workspace/weka/pmml-4-1.xsd
*
* To get rid of this property, apply a property customization to one
* of both of the following declarations to change their names:
* Gets the value of the content property.
*
*
* 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 content property.
*
*
* For example, to add a new item, do as follows:
*
* getContent().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link ModelExplanation }
* {@link ModelStats }
* {@link TrainingInstances }
* {@link Output }
* {@link ComparisonMeasure }
* {@link LocalTransformations }
* {@link Targets }
* {@link KNNInputs }
* {@link MiningSchema }
* {@link ModelVerification }
* {@link Extension }
*
*
*/
public List getContent() {
if (content == null) {
content = new ArrayList();
}
return this.content;
}
/**
* Gets the value of the algorithmName property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getAlgorithmName() {
return algorithmName;
}
/**
* Sets the value of the algorithmName property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setAlgorithmName(String value) {
this.algorithmName = value;
}
/**
* Gets the value of the categoricalScoringMethod property.
*
* @return
* possible object is
* {@link CATSCORINGMETHOD }
*
*/
public CATSCORINGMETHOD getCategoricalScoringMethod() {
if (categoricalScoringMethod == null) {
return CATSCORINGMETHOD.MAJORITY_VOTE;
} else {
return categoricalScoringMethod;
}
}
/**
* Sets the value of the categoricalScoringMethod property.
*
* @param value
* allowed object is
* {@link CATSCORINGMETHOD }
*
*/
public void setCategoricalScoringMethod(CATSCORINGMETHOD value) {
this.categoricalScoringMethod = value;
}
/**
* Gets the value of the continuousScoringMethod property.
*
* @return
* possible object is
* {@link CONTSCORINGMETHOD }
*
*/
public CONTSCORINGMETHOD getContinuousScoringMethod() {
if (continuousScoringMethod == null) {
return CONTSCORINGMETHOD.AVERAGE;
} else {
return continuousScoringMethod;
}
}
/**
* Sets the value of the continuousScoringMethod property.
*
* @param value
* allowed object is
* {@link CONTSCORINGMETHOD }
*
*/
public void setContinuousScoringMethod(CONTSCORINGMETHOD value) {
this.continuousScoringMethod = value;
}
/**
* Gets the value of the functionName property.
*
* @return
* possible object is
* {@link MININGFUNCTION }
*
*/
public MININGFUNCTION getFunctionName() {
return functionName;
}
/**
* Sets the value of the functionName property.
*
* @param value
* allowed object is
* {@link MININGFUNCTION }
*
*/
public void setFunctionName(MININGFUNCTION value) {
this.functionName = value;
}
/**
* Gets the value of the instanceIdVariable property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getInstanceIdVariable() {
return instanceIdVariable;
}
/**
* Sets the value of the instanceIdVariable property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setInstanceIdVariable(String value) {
this.instanceIdVariable = value;
}
/**
* Gets the value of the isScorable property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public boolean isIsScorable() {
if (isScorable == null) {
return true;
} else {
return isScorable;
}
}
/**
* Sets the value of the isScorable property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setIsScorable(Boolean value) {
this.isScorable = value;
}
/**
* Gets the value of the modelName property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getModelName() {
return modelName;
}
/**
* Sets the value of the modelName property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setModelName(String value) {
this.modelName = value;
}
/**
* Gets the value of the numberOfNeighbors property.
*
* @return
* possible object is
* {@link BigInteger }
*
*/
public BigInteger getNumberOfNeighbors() {
return numberOfNeighbors;
}
/**
* Sets the value of the numberOfNeighbors property.
*
* @param value
* allowed object is
* {@link BigInteger }
*
*/
public void setNumberOfNeighbors(BigInteger value) {
this.numberOfNeighbors = value;
}
/**
* Gets the value of the threshold property.
*
* @return
* possible object is
* {@link Double }
*
*/
public double getThreshold() {
if (threshold == null) {
return 0.001D;
} else {
return threshold;
}
}
/**
* Sets the value of the threshold property.
*
* @param value
* allowed object is
* {@link Double }
*
*/
public void setThreshold(Double value) {
this.threshold = value;
}
}