index
int64 | repo_id
string | file_path
string | content
string |
|---|---|---|---|
0
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml/jaxbbindings/REGRESSIONNORMALIZATIONMETHOD.java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// 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 javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
/**
* <p>Java class for REGRESSIONNORMALIZATIONMETHOD.
*
* <p>The following schema fragment specifies the expected content contained within this class.
* <p>
* <pre>
* <simpleType name="REGRESSIONNORMALIZATIONMETHOD">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="none"/>
* <enumeration value="simplemax"/>
* <enumeration value="softmax"/>
* <enumeration value="logit"/>
* <enumeration value="probit"/>
* <enumeration value="cloglog"/>
* <enumeration value="exp"/>
* <enumeration value="loglog"/>
* <enumeration value="cauchit"/>
* </restriction>
* </simpleType>
* </pre>
*
*/
@XmlEnum
public enum REGRESSIONNORMALIZATIONMETHOD {
@XmlEnumValue("cauchit")
CAUCHIT("cauchit"),
@XmlEnumValue("cloglog")
CLOGLOG("cloglog"),
@XmlEnumValue("exp")
EXP("exp"),
@XmlEnumValue("logit")
LOGIT("logit"),
@XmlEnumValue("loglog")
LOGLOG("loglog"),
@XmlEnumValue("none")
NONE("none"),
@XmlEnumValue("probit")
PROBIT("probit"),
@XmlEnumValue("simplemax")
SIMPLEMAX("simplemax"),
@XmlEnumValue("softmax")
SOFTMAX("softmax");
private final String value;
REGRESSIONNORMALIZATIONMETHOD(String v) {
value = v;
}
public String value() {
return value;
}
public static REGRESSIONNORMALIZATIONMETHOD fromValue(String v) {
for (REGRESSIONNORMALIZATIONMETHOD c: REGRESSIONNORMALIZATIONMETHOD.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v.toString());
}
}
|
0
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml/jaxbbindings/RESULTFEATURE.java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// 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 javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
/**
* <p>Java class for RESULT-FEATURE.
*
* <p>The following schema fragment specifies the expected content contained within this class.
* <p>
* <pre>
* <simpleType name="RESULT-FEATURE">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="predictedValue"/>
* <enumeration value="predictedDisplayValue"/>
* <enumeration value="transformedValue"/>
* <enumeration value="decision"/>
* <enumeration value="probability"/>
* <enumeration value="affinity"/>
* <enumeration value="residual"/>
* <enumeration value="standardError"/>
* <enumeration value="clusterId"/>
* <enumeration value="clusterAffinity"/>
* <enumeration value="entityId"/>
* <enumeration value="entityAffinity"/>
* <enumeration value="warning"/>
* <enumeration value="ruleValue"/>
* <enumeration value="reasonCode"/>
* </restriction>
* </simpleType>
* </pre>
*
*/
@XmlEnum
public enum RESULTFEATURE {
@XmlEnumValue("affinity")
AFFINITY("affinity"),
@XmlEnumValue("clusterAffinity")
CLUSTER_AFFINITY("clusterAffinity"),
@XmlEnumValue("clusterId")
CLUSTER_ID("clusterId"),
@XmlEnumValue("decision")
DECISION("decision"),
@XmlEnumValue("entityAffinity")
ENTITY_AFFINITY("entityAffinity"),
@XmlEnumValue("entityId")
ENTITY_ID("entityId"),
@XmlEnumValue("predictedDisplayValue")
PREDICTED_DISPLAY_VALUE("predictedDisplayValue"),
@XmlEnumValue("predictedValue")
PREDICTED_VALUE("predictedValue"),
@XmlEnumValue("probability")
PROBABILITY("probability"),
@XmlEnumValue("reasonCode")
REASON_CODE("reasonCode"),
@XmlEnumValue("residual")
RESIDUAL("residual"),
@XmlEnumValue("ruleValue")
RULE_VALUE("ruleValue"),
@XmlEnumValue("standardError")
STANDARD_ERROR("standardError"),
@XmlEnumValue("transformedValue")
TRANSFORMED_VALUE("transformedValue"),
@XmlEnumValue("warning")
WARNING("warning");
private final String value;
RESULTFEATURE(String v) {
value = v;
}
public String value() {
return value;
}
public static RESULTFEATURE fromValue(String v) {
for (RESULTFEATURE c: RESULTFEATURE.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v.toString());
}
}
|
0
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml/jaxbbindings/ROC.java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// 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.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.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for ROC element declaration.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <element name="ROC">
* <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}ROCGraph"/>
* </sequence>
* <attribute name="negativeTargetFieldDisplayValue" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="negativeTargetFieldValue" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="positiveTargetFieldDisplayValue" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="positiveTargetFieldValue" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"extension",
"rocGraph"
})
@XmlRootElement(name = "ROC")
public class ROC {
@XmlElement(name = "Extension", namespace = "http://www.dmg.org/PMML-4_1", required = true)
protected List<Extension> extension;
@XmlElement(name = "ROCGraph", namespace = "http://www.dmg.org/PMML-4_1", required = true)
protected ROCGraph rocGraph;
@XmlAttribute
protected String negativeTargetFieldDisplayValue;
@XmlAttribute
protected String negativeTargetFieldValue;
@XmlAttribute
protected String positiveTargetFieldDisplayValue;
@XmlAttribute(required = true)
protected String positiveTargetFieldValue;
/**
* Gets the value of the extension property.
*
* <p>
* 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 <CODE>set</CODE> method for the extension property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getExtension().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Extension }
*
*
*/
public List<Extension> getExtension() {
if (extension == null) {
extension = new ArrayList<Extension>();
}
return this.extension;
}
/**
* Gets the value of the rocGraph property.
*
* @return
* possible object is
* {@link ROCGraph }
*
*/
public ROCGraph getROCGraph() {
return rocGraph;
}
/**
* Sets the value of the rocGraph property.
*
* @param value
* allowed object is
* {@link ROCGraph }
*
*/
public void setROCGraph(ROCGraph value) {
this.rocGraph = value;
}
/**
* Gets the value of the negativeTargetFieldDisplayValue property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getNegativeTargetFieldDisplayValue() {
return negativeTargetFieldDisplayValue;
}
/**
* Sets the value of the negativeTargetFieldDisplayValue property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setNegativeTargetFieldDisplayValue(String value) {
this.negativeTargetFieldDisplayValue = value;
}
/**
* Gets the value of the negativeTargetFieldValue property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getNegativeTargetFieldValue() {
return negativeTargetFieldValue;
}
/**
* Sets the value of the negativeTargetFieldValue property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setNegativeTargetFieldValue(String value) {
this.negativeTargetFieldValue = value;
}
/**
* Gets the value of the positiveTargetFieldDisplayValue property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getPositiveTargetFieldDisplayValue() {
return positiveTargetFieldDisplayValue;
}
/**
* Sets the value of the positiveTargetFieldDisplayValue property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setPositiveTargetFieldDisplayValue(String value) {
this.positiveTargetFieldDisplayValue = value;
}
/**
* Gets the value of the positiveTargetFieldValue property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getPositiveTargetFieldValue() {
return positiveTargetFieldValue;
}
/**
* Sets the value of the positiveTargetFieldValue property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setPositiveTargetFieldValue(String value) {
this.positiveTargetFieldValue = value;
}
}
|
0
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml/jaxbbindings/ROCGraph.java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// 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.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for ROCGraph element declaration.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <element name="ROCGraph">
* <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}XCoordinates"/>
* <element ref="{http://www.dmg.org/PMML-4_1}YCoordinates"/>
* <element ref="{http://www.dmg.org/PMML-4_1}BoundaryValues" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"extension",
"xCoordinates",
"yCoordinates",
"boundaryValues"
})
@XmlRootElement(name = "ROCGraph")
public class ROCGraph {
@XmlElement(name = "Extension", namespace = "http://www.dmg.org/PMML-4_1", required = true)
protected List<Extension> extension;
@XmlElement(name = "XCoordinates", namespace = "http://www.dmg.org/PMML-4_1", required = true)
protected XCoordinates xCoordinates;
@XmlElement(name = "YCoordinates", namespace = "http://www.dmg.org/PMML-4_1", required = true)
protected YCoordinates yCoordinates;
@XmlElement(name = "BoundaryValues", namespace = "http://www.dmg.org/PMML-4_1")
protected BoundaryValues boundaryValues;
/**
* Gets the value of the extension property.
*
* <p>
* 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 <CODE>set</CODE> method for the extension property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getExtension().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Extension }
*
*
*/
public List<Extension> getExtension() {
if (extension == null) {
extension = new ArrayList<Extension>();
}
return this.extension;
}
/**
* Gets the value of the xCoordinates property.
*
* @return
* possible object is
* {@link XCoordinates }
*
*/
public XCoordinates getXCoordinates() {
return xCoordinates;
}
/**
* Sets the value of the xCoordinates property.
*
* @param value
* allowed object is
* {@link XCoordinates }
*
*/
public void setXCoordinates(XCoordinates value) {
this.xCoordinates = value;
}
/**
* Gets the value of the yCoordinates property.
*
* @return
* possible object is
* {@link YCoordinates }
*
*/
public YCoordinates getYCoordinates() {
return yCoordinates;
}
/**
* Sets the value of the yCoordinates property.
*
* @param value
* allowed object is
* {@link YCoordinates }
*
*/
public void setYCoordinates(YCoordinates value) {
this.yCoordinates = value;
}
/**
* Gets the value of the boundaryValues property.
*
* @return
* possible object is
* {@link BoundaryValues }
*
*/
public BoundaryValues getBoundaryValues() {
return boundaryValues;
}
/**
* Sets the value of the boundaryValues property.
*
* @param value
* allowed object is
* {@link BoundaryValues }
*
*/
public void setBoundaryValues(BoundaryValues value) {
this.boundaryValues = value;
}
}
|
0
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml/jaxbbindings/RULEFEATURE.java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// 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 javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
/**
* <p>Java class for RULE-FEATURE.
*
* <p>The following schema fragment specifies the expected content contained within this class.
* <p>
* <pre>
* <simpleType name="RULE-FEATURE">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="antecedent"/>
* <enumeration value="consequent"/>
* <enumeration value="rule"/>
* <enumeration value="ruleId"/>
* <enumeration value="confidence"/>
* <enumeration value="support"/>
* <enumeration value="lift"/>
* <enumeration value="leverage"/>
* <enumeration value="affinity"/>
* </restriction>
* </simpleType>
* </pre>
*
*/
@XmlEnum
public enum RULEFEATURE {
@XmlEnumValue("affinity")
AFFINITY("affinity"),
@XmlEnumValue("antecedent")
ANTECEDENT("antecedent"),
@XmlEnumValue("confidence")
CONFIDENCE("confidence"),
@XmlEnumValue("consequent")
CONSEQUENT("consequent"),
@XmlEnumValue("leverage")
LEVERAGE("leverage"),
@XmlEnumValue("lift")
LIFT("lift"),
@XmlEnumValue("rule")
RULE("rule"),
@XmlEnumValue("ruleId")
RULE_ID("ruleId"),
@XmlEnumValue("support")
SUPPORT("support");
private final String value;
RULEFEATURE(String v) {
value = v;
}
public String value() {
return value;
}
public static RULEFEATURE fromValue(String v) {
for (RULEFEATURE c: RULEFEATURE.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v.toString());
}
}
|
0
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml/jaxbbindings/RadialBasisKernelType.java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// 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.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.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for RadialBasisKernelType element declaration.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <element name="RadialBasisKernelType">
* <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"/>
* </sequence>
* <attribute name="description" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="gamma" type="{http://www.dmg.org/PMML-4_1}REAL-NUMBER" default="1" />
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"extension"
})
@XmlRootElement(name = "RadialBasisKernelType")
public class RadialBasisKernelType {
@XmlElement(name = "Extension", namespace = "http://www.dmg.org/PMML-4_1", required = true)
protected List<Extension> extension;
@XmlAttribute
protected String description;
@XmlAttribute
protected Double gamma;
/**
* Gets the value of the extension property.
*
* <p>
* 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 <CODE>set</CODE> method for the extension property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getExtension().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Extension }
*
*
*/
public List<Extension> getExtension() {
if (extension == null) {
extension = new ArrayList<Extension>();
}
return this.extension;
}
/**
* Gets the value of the description property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDescription() {
return description;
}
/**
* Sets the value of the description property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDescription(String value) {
this.description = value;
}
/**
* Gets the value of the gamma property.
*
* @return
* possible object is
* {@link Double }
*
*/
public double getGamma() {
if (gamma == null) {
return 1.0D;
} else {
return gamma;
}
}
/**
* Sets the value of the gamma property.
*
* @param value
* allowed object is
* {@link Double }
*
*/
public void setGamma(Double value) {
this.gamma = value;
}
}
|
0
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml/jaxbbindings/RandomLiftGraph.java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// 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.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for RandomLiftGraph element declaration.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <element name="RandomLiftGraph">
* <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}LiftGraph"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"extension",
"liftGraph"
})
@XmlRootElement(name = "RandomLiftGraph")
public class RandomLiftGraph {
@XmlElement(name = "Extension", namespace = "http://www.dmg.org/PMML-4_1", required = true)
protected List<Extension> extension;
@XmlElement(name = "LiftGraph", namespace = "http://www.dmg.org/PMML-4_1", required = true)
protected LiftGraph liftGraph;
/**
* Gets the value of the extension property.
*
* <p>
* 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 <CODE>set</CODE> method for the extension property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getExtension().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Extension }
*
*
*/
public List<Extension> getExtension() {
if (extension == null) {
extension = new ArrayList<Extension>();
}
return this.extension;
}
/**
* Gets the value of the liftGraph property.
*
* @return
* possible object is
* {@link LiftGraph }
*
*/
public LiftGraph getLiftGraph() {
return liftGraph;
}
/**
* Sets the value of the liftGraph property.
*
* @param value
* allowed object is
* {@link LiftGraph }
*
*/
public void setLiftGraph(LiftGraph value) {
this.liftGraph = value;
}
}
|
0
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml/jaxbbindings/Regression.java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// 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.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.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for Regression element declaration.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <element name="Regression">
* <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}Output" minOccurs="0"/>
* <element ref="{http://www.dmg.org/PMML-4_1}ModelStats" 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}ResultField" maxOccurs="unbounded" minOccurs="0"/>
* <element ref="{http://www.dmg.org/PMML-4_1}RegressionTable" maxOccurs="unbounded"/>
* </sequence>
* <attribute name="algorithmName" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="functionName" use="required" type="{http://www.dmg.org/PMML-4_1}MINING-FUNCTION" />
* <attribute name="modelName" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="normalizationMethod" type="{http://www.dmg.org/PMML-4_1}REGRESSIONNORMALIZATIONMETHOD" default="none" />
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"extension",
"output",
"modelStats",
"targets",
"localTransformations",
"resultField",
"regressionTable"
})
@XmlRootElement(name = "Regression")
public class Regression {
@XmlElement(name = "Extension", namespace = "http://www.dmg.org/PMML-4_1", required = true)
protected List<Extension> extension;
@XmlElement(name = "Output", namespace = "http://www.dmg.org/PMML-4_1")
protected Output output;
@XmlElement(name = "ModelStats", namespace = "http://www.dmg.org/PMML-4_1")
protected ModelStats modelStats;
@XmlElement(name = "Targets", namespace = "http://www.dmg.org/PMML-4_1")
protected Targets targets;
@XmlElement(name = "LocalTransformations", namespace = "http://www.dmg.org/PMML-4_1")
protected LocalTransformations localTransformations;
@XmlElement(name = "ResultField", namespace = "http://www.dmg.org/PMML-4_1", required = true)
protected List<ResultField> resultField;
@XmlElement(name = "RegressionTable", namespace = "http://www.dmg.org/PMML-4_1", required = true)
protected List<RegressionTable> regressionTable;
@XmlAttribute
protected String algorithmName;
@XmlAttribute(required = true)
protected MININGFUNCTION functionName;
@XmlAttribute
protected String modelName;
@XmlAttribute
protected REGRESSIONNORMALIZATIONMETHOD normalizationMethod;
/**
* Gets the value of the extension property.
*
* <p>
* 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 <CODE>set</CODE> method for the extension property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getExtension().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Extension }
*
*
*/
public List<Extension> getExtension() {
if (extension == null) {
extension = new ArrayList<Extension>();
}
return this.extension;
}
/**
* Gets the value of the output property.
*
* @return
* possible object is
* {@link Output }
*
*/
public Output getOutput() {
return output;
}
/**
* Sets the value of the output property.
*
* @param value
* allowed object is
* {@link Output }
*
*/
public void setOutput(Output value) {
this.output = value;
}
/**
* Gets the value of the modelStats property.
*
* @return
* possible object is
* {@link ModelStats }
*
*/
public ModelStats getModelStats() {
return modelStats;
}
/**
* Sets the value of the modelStats property.
*
* @param value
* allowed object is
* {@link ModelStats }
*
*/
public void setModelStats(ModelStats value) {
this.modelStats = value;
}
/**
* Gets the value of the targets property.
*
* @return
* possible object is
* {@link Targets }
*
*/
public Targets getTargets() {
return targets;
}
/**
* Sets the value of the targets property.
*
* @param value
* allowed object is
* {@link Targets }
*
*/
public void setTargets(Targets value) {
this.targets = value;
}
/**
* Gets the value of the localTransformations property.
*
* @return
* possible object is
* {@link LocalTransformations }
*
*/
public LocalTransformations getLocalTransformations() {
return localTransformations;
}
/**
* Sets the value of the localTransformations property.
*
* @param value
* allowed object is
* {@link LocalTransformations }
*
*/
public void setLocalTransformations(LocalTransformations value) {
this.localTransformations = value;
}
/**
* Gets the value of the resultField property.
*
* <p>
* 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 <CODE>set</CODE> method for the resultField property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getResultField().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link ResultField }
*
*
*/
public List<ResultField> getResultField() {
if (resultField == null) {
resultField = new ArrayList<ResultField>();
}
return this.resultField;
}
/**
* Gets the value of the regressionTable property.
*
* <p>
* 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 <CODE>set</CODE> method for the regressionTable property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getRegressionTable().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link RegressionTable }
*
*
*/
public List<RegressionTable> getRegressionTable() {
if (regressionTable == null) {
regressionTable = new ArrayList<RegressionTable>();
}
return this.regressionTable;
}
/**
* 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 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 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 normalizationMethod property.
*
* @return
* possible object is
* {@link REGRESSIONNORMALIZATIONMETHOD }
*
*/
public REGRESSIONNORMALIZATIONMETHOD getNormalizationMethod() {
if (normalizationMethod == null) {
return REGRESSIONNORMALIZATIONMETHOD.NONE;
} else {
return normalizationMethod;
}
}
/**
* Sets the value of the normalizationMethod property.
*
* @param value
* allowed object is
* {@link REGRESSIONNORMALIZATIONMETHOD }
*
*/
public void setNormalizationMethod(REGRESSIONNORMALIZATIONMETHOD value) {
this.normalizationMethod = value;
}
}
|
0
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml/jaxbbindings/RegressionModel.java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// 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.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;
/**
* <p>Java class for RegressionModel element declaration.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <element name="RegressionModel">
* <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}RegressionTable" maxOccurs="unbounded"/>
* <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="functionName" use="required" type="{http://www.dmg.org/PMML-4_1}MINING-FUNCTION" />
* <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="modelType">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="linearRegression"/>
* <enumeration value="stepwisePolynomialRegression"/>
* <enumeration value="logisticRegression"/>
* </restriction>
* </simpleType>
* </attribute>
* <attribute name="normalizationMethod" type="{http://www.dmg.org/PMML-4_1}REGRESSIONNORMALIZATIONMETHOD" default="none" />
* <attribute name="targetFieldName" type="{http://www.dmg.org/PMML-4_1}FIELD-NAME" />
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"content"
})
@XmlRootElement(name = "RegressionModel")
public class RegressionModel {
@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 = "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 = "ModelVerification", namespace = "http://www.dmg.org/PMML-4_1", type = ModelVerification.class),
@XmlElementRef(name = "RegressionTable", namespace = "http://www.dmg.org/PMML-4_1", type = RegressionTable.class),
@XmlElementRef(name = "Extension", namespace = "http://www.dmg.org/PMML-4_1", type = Extension.class)
})
protected List<Object> content;
@XmlAttribute
protected String algorithmName;
@XmlAttribute(required = true)
protected MININGFUNCTION functionName;
@XmlAttribute
protected Boolean isScorable;
@XmlAttribute
protected String modelName;
@XmlAttribute
protected String modelType;
@XmlAttribute
protected REGRESSIONNORMALIZATIONMETHOD normalizationMethod;
@XmlAttribute
protected String targetFieldName;
/**
* Gets the rest of the content model.
*
* <p>
* 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 902 of file:/home/david/workspace/weka/pmml-4-1.xsd
* line 893 of file:/home/david/workspace/weka/pmml-4-1.xsd
* <p>
* 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.
*
* <p>
* 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 <CODE>set</CODE> method for the content property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getContent().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link ModelExplanation }
* {@link ModelStats }
* {@link Output }
* {@link LocalTransformations }
* {@link Targets }
* {@link MiningSchema }
* {@link RegressionTable }
* {@link ModelVerification }
* {@link Extension }
*
*
*/
public List<Object> getContent() {
if (content == null) {
content = new ArrayList<Object>();
}
return this.content;
}
public void addContent(Object object) {
if (content == null) {
content = new ArrayList<Object>();
}
content.add(object);
}
/**
* 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 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 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 modelType property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getModelType() {
return modelType;
}
/**
* Sets the value of the modelType property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setModelType(String value) {
this.modelType = value;
}
/**
* Gets the value of the normalizationMethod property.
*
* @return
* possible object is
* {@link REGRESSIONNORMALIZATIONMETHOD }
*
*/
public REGRESSIONNORMALIZATIONMETHOD getNormalizationMethod() {
if (normalizationMethod == null) {
return REGRESSIONNORMALIZATIONMETHOD.NONE;
} else {
return normalizationMethod;
}
}
/**
* Sets the value of the normalizationMethod property.
*
* @param value
* allowed object is
* {@link REGRESSIONNORMALIZATIONMETHOD }
*
*/
public void setNormalizationMethod(REGRESSIONNORMALIZATIONMETHOD value) {
this.normalizationMethod = value;
}
/**
* Gets the value of the targetFieldName property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getTargetFieldName() {
return targetFieldName;
}
/**
* Sets the value of the targetFieldName property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setTargetFieldName(String value) {
this.targetFieldName = value;
}
}
|
0
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml/jaxbbindings/RegressionTable.java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// 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.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.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for RegressionTable element declaration.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <element name="RegressionTable">
* <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}NumericPredictor" maxOccurs="unbounded" minOccurs="0"/>
* <element ref="{http://www.dmg.org/PMML-4_1}CategoricalPredictor" maxOccurs="unbounded" minOccurs="0"/>
* <element ref="{http://www.dmg.org/PMML-4_1}PredictorTerm" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* <attribute name="intercept" use="required" type="{http://www.dmg.org/PMML-4_1}REAL-NUMBER" />
* <attribute name="targetCategory" type="{http://www.w3.org/2001/XMLSchema}string" />
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"extension",
"numericPredictor",
"categoricalPredictor",
"predictorTerm"
})
@XmlRootElement(name = "RegressionTable")
public class RegressionTable {
@XmlElement(name = "Extension", namespace = "http://www.dmg.org/PMML-4_1", required = true)
protected List<Extension> extension;
@XmlElement(name = "NumericPredictor", namespace = "http://www.dmg.org/PMML-4_1", required = true)
protected List<NumericPredictor> numericPredictor;
@XmlElement(name = "CategoricalPredictor", namespace = "http://www.dmg.org/PMML-4_1", required = true)
protected List<CategoricalPredictor> categoricalPredictor;
@XmlElement(name = "PredictorTerm", namespace = "http://www.dmg.org/PMML-4_1", required = true)
protected List<PredictorTerm> predictorTerm;
@XmlAttribute(required = true)
protected double intercept;
@XmlAttribute
protected String targetCategory;
public RegressionTable() {}
public RegressionTable(String targetCategory) {
this.targetCategory = targetCategory;
}
/**
* Gets the value of the extension property.
*
* <p>
* 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 <CODE>set</CODE> method for the extension property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getExtension().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Extension }
*
*
*/
public List<Extension> getExtension() {
if (extension == null) {
extension = new ArrayList<Extension>();
}
return this.extension;
}
/**
* Gets the value of the numericPredictor property.
*
* <p>
* 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 <CODE>set</CODE> method for the numericPredictor property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getNumericPredictor().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link NumericPredictor }
*
*
*/
public List<NumericPredictor> getNumericPredictors() {
if (numericPredictor == null) {
numericPredictor = new ArrayList<NumericPredictor>();
}
return this.numericPredictor;
}
public void addNumericPredictor(NumericPredictor predictor) {
if (numericPredictor == null) {
numericPredictor = new ArrayList<NumericPredictor>();
}
this.numericPredictor.add(predictor);
}
/**
* Gets the value of the categoricalPredictor property.
*
* <p>
* 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 <CODE>set</CODE> method for the categoricalPredictor property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getCategoricalPredictor().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link CategoricalPredictor }
*
*
*/
public List<CategoricalPredictor> getCategoricalPredictor() {
if (categoricalPredictor == null) {
categoricalPredictor = new ArrayList<CategoricalPredictor>();
}
return this.categoricalPredictor;
}
/**
* Gets the value of the predictorTerm property.
*
* <p>
* 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 <CODE>set</CODE> method for the predictorTerm property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getPredictorTerm().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link PredictorTerm }
*
*
*/
public List<PredictorTerm> getPredictorTerm() {
if (predictorTerm == null) {
predictorTerm = new ArrayList<PredictorTerm>();
}
return this.predictorTerm;
}
/**
* Gets the value of the intercept property.
*
*/
public double getIntercept() {
return intercept;
}
/**
* Sets the value of the intercept property.
*
*/
public void setIntercept(double value) {
this.intercept = value;
}
/**
* Gets the value of the targetCategory property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getTargetCategory() {
return targetCategory;
}
/**
* Sets the value of the targetCategory property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setTargetCategory(String value) {
this.targetCategory = value;
}
}
|
0
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml/jaxbbindings/ResultField.java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// 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.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.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for ResultField element declaration.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <element name="ResultField">
* <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"/>
* </sequence>
* <attribute name="dataType" type="{http://www.dmg.org/PMML-4_1}DATATYPE" />
* <attribute name="displayName" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="feature" type="{http://www.dmg.org/PMML-4_1}RESULT-FEATURE" />
* <attribute name="name" use="required" type="{http://www.dmg.org/PMML-4_1}FIELD-NAME" />
* <attribute name="optype" type="{http://www.dmg.org/PMML-4_1}OPTYPE" />
* <attribute name="value" type="{http://www.w3.org/2001/XMLSchema}string" />
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"extension"
})
@XmlRootElement(name = "ResultField")
public class ResultField {
@XmlElement(name = "Extension", namespace = "http://www.dmg.org/PMML-4_1", required = true)
protected List<Extension> extension;
@XmlAttribute
protected DATATYPE dataType;
@XmlAttribute
protected String displayName;
@XmlAttribute
protected RESULTFEATURE feature;
@XmlAttribute(required = true)
protected String name;
@XmlAttribute
protected OPTYPE optype;
@XmlAttribute
protected String value;
/**
* Gets the value of the extension property.
*
* <p>
* 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 <CODE>set</CODE> method for the extension property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getExtension().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Extension }
*
*
*/
public List<Extension> getExtension() {
if (extension == null) {
extension = new ArrayList<Extension>();
}
return this.extension;
}
/**
* Gets the value of the dataType property.
*
* @return
* possible object is
* {@link DATATYPE }
*
*/
public DATATYPE getDataType() {
return dataType;
}
/**
* Sets the value of the dataType property.
*
* @param value
* allowed object is
* {@link DATATYPE }
*
*/
public void setDataType(DATATYPE value) {
this.dataType = value;
}
/**
* Gets the value of the displayName property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDisplayName() {
return displayName;
}
/**
* Sets the value of the displayName property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDisplayName(String value) {
this.displayName = value;
}
/**
* Gets the value of the feature property.
*
* @return
* possible object is
* {@link RESULTFEATURE }
*
*/
public RESULTFEATURE getFeature() {
return feature;
}
/**
* Sets the value of the feature property.
*
* @param value
* allowed object is
* {@link RESULTFEATURE }
*
*/
public void setFeature(RESULTFEATURE value) {
this.feature = value;
}
/**
* Gets the value of the name property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getName() {
return name;
}
/**
* Sets the value of the name property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setName(String value) {
this.name = value;
}
/**
* Gets the value of the optype property.
*
* @return
* possible object is
* {@link OPTYPE }
*
*/
public OPTYPE getOptype() {
return optype;
}
/**
* Sets the value of the optype property.
*
* @param value
* allowed object is
* {@link OPTYPE }
*
*/
public void setOptype(OPTYPE value) {
this.optype = value;
}
/**
* Gets the value of the value property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getValue() {
return value;
}
/**
* Sets the value of the value property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setValue(String value) {
this.value = value;
}
}
|
0
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml/jaxbbindings/Row.java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// 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.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAnyElement;
import javax.xml.bind.annotation.XmlMixed;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import org.w3c.dom.Element;
/**
* <p>Java class for row element declaration.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <element name="row">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <any/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"content"
})
@XmlRootElement(name = "row")
public class Row {
@XmlMixed
@XmlAnyElement
protected List<Object> content;
/**
* Gets the value of the content property.
*
* <p>
* 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 <CODE>set</CODE> method for the content property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getContent().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Element }
* {@link String }
*
*
*/
public List<Object> getContent() {
if (content == null) {
content = new ArrayList<Object>();
}
return this.content;
}
}
|
0
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml/jaxbbindings/RuleSelectionMethod.java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// 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.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.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for RuleSelectionMethod element declaration.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <element name="RuleSelectionMethod">
* <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"/>
* </sequence>
* <attribute name="criterion" use="required">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="weightedSum"/>
* <enumeration value="weightedMax"/>
* <enumeration value="firstHit"/>
* </restriction>
* </simpleType>
* </attribute>
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"extension"
})
@XmlRootElement(name = "RuleSelectionMethod")
public class RuleSelectionMethod {
@XmlElement(name = "Extension", namespace = "http://www.dmg.org/PMML-4_1", required = true)
protected List<Extension> extension;
@XmlAttribute(required = true)
protected String criterion;
/**
* Gets the value of the extension property.
*
* <p>
* 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 <CODE>set</CODE> method for the extension property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getExtension().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Extension }
*
*
*/
public List<Extension> getExtension() {
if (extension == null) {
extension = new ArrayList<Extension>();
}
return this.extension;
}
/**
* Gets the value of the criterion property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCriterion() {
return criterion;
}
/**
* Sets the value of the criterion property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCriterion(String value) {
this.criterion = value;
}
}
|
0
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml/jaxbbindings/RuleSet.java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// 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.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.XmlElement;
import javax.xml.bind.annotation.XmlElements;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for RuleSet element declaration.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <element name="RuleSet">
* <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}RuleSelectionMethod" maxOccurs="unbounded"/>
* <element ref="{http://www.dmg.org/PMML-4_1}ScoreDistribution" maxOccurs="unbounded" minOccurs="0"/>
* <group ref="{http://www.dmg.org/PMML-4_1}Rule" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* <attribute name="defaultConfidence" type="{http://www.dmg.org/PMML-4_1}NUMBER" />
* <attribute name="defaultScore" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="nbCorrect" type="{http://www.dmg.org/PMML-4_1}NUMBER" />
* <attribute name="recordCount" type="{http://www.dmg.org/PMML-4_1}NUMBER" />
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"extension",
"ruleSelectionMethod",
"scoreDistribution",
"rule"
})
@XmlRootElement(name = "RuleSet")
public class RuleSet {
@XmlElement(name = "Extension", namespace = "http://www.dmg.org/PMML-4_1", required = true)
protected List<Extension> extension;
@XmlElement(name = "RuleSelectionMethod", namespace = "http://www.dmg.org/PMML-4_1", required = true)
protected List<RuleSelectionMethod> ruleSelectionMethod;
@XmlElement(name = "ScoreDistribution", namespace = "http://www.dmg.org/PMML-4_1", required = true)
protected List<ScoreDistribution> scoreDistribution;
@XmlElements({
@XmlElement(name = "SimpleRule", namespace = "http://www.dmg.org/PMML-4_1", required = true, type = SimpleRule.class),
@XmlElement(name = "CompoundRule", namespace = "http://www.dmg.org/PMML-4_1", required = true, type = CompoundRule.class)
})
protected List<Object> rule;
@XmlAttribute
protected Double defaultConfidence;
@XmlAttribute
protected String defaultScore;
@XmlAttribute
protected Double nbCorrect;
@XmlAttribute
protected Double recordCount;
/**
* Gets the value of the extension property.
*
* <p>
* 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 <CODE>set</CODE> method for the extension property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getExtension().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Extension }
*
*
*/
public List<Extension> getExtension() {
if (extension == null) {
extension = new ArrayList<Extension>();
}
return this.extension;
}
/**
* Gets the value of the ruleSelectionMethod property.
*
* <p>
* 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 <CODE>set</CODE> method for the ruleSelectionMethod property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getRuleSelectionMethod().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link RuleSelectionMethod }
*
*
*/
public List<RuleSelectionMethod> getRuleSelectionMethod() {
if (ruleSelectionMethod == null) {
ruleSelectionMethod = new ArrayList<RuleSelectionMethod>();
}
return this.ruleSelectionMethod;
}
/**
* Gets the value of the scoreDistribution property.
*
* <p>
* 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 <CODE>set</CODE> method for the scoreDistribution property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getScoreDistribution().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link ScoreDistribution }
*
*
*/
public List<ScoreDistribution> getScoreDistribution() {
if (scoreDistribution == null) {
scoreDistribution = new ArrayList<ScoreDistribution>();
}
return this.scoreDistribution;
}
/**
* Gets the value of the rule property.
*
* <p>
* 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 <CODE>set</CODE> method for the rule property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getRule().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link SimpleRule }
* {@link CompoundRule }
*
*
*/
public List<Object> getRule() {
if (rule == null) {
rule = new ArrayList<Object>();
}
return this.rule;
}
/**
* Gets the value of the defaultConfidence property.
*
* @return
* possible object is
* {@link Double }
*
*/
public Double getDefaultConfidence() {
return defaultConfidence;
}
/**
* Sets the value of the defaultConfidence property.
*
* @param value
* allowed object is
* {@link Double }
*
*/
public void setDefaultConfidence(Double value) {
this.defaultConfidence = value;
}
/**
* Gets the value of the defaultScore property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDefaultScore() {
return defaultScore;
}
/**
* Sets the value of the defaultScore property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDefaultScore(String value) {
this.defaultScore = value;
}
/**
* Gets the value of the nbCorrect property.
*
* @return
* possible object is
* {@link Double }
*
*/
public Double getNbCorrect() {
return nbCorrect;
}
/**
* Sets the value of the nbCorrect property.
*
* @param value
* allowed object is
* {@link Double }
*
*/
public void setNbCorrect(Double value) {
this.nbCorrect = value;
}
/**
* Gets the value of the recordCount property.
*
* @return
* possible object is
* {@link Double }
*
*/
public Double getRecordCount() {
return recordCount;
}
/**
* Sets the value of the recordCount property.
*
* @param value
* allowed object is
* {@link Double }
*
*/
public void setRecordCount(Double value) {
this.recordCount = value;
}
}
|
0
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml/jaxbbindings/RuleSetModel.java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// 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.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;
/**
* <p>Java class for RuleSetModel element declaration.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <element name="RuleSetModel">
* <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}RuleSet"/>
* <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="functionName" use="required" type="{http://www.dmg.org/PMML-4_1}MINING-FUNCTION" />
* <attribute name="isScorable" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
* <attribute name="modelName" type="{http://www.w3.org/2001/XMLSchema}string" />
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"content"
})
@XmlRootElement(name = "RuleSetModel")
public class RuleSetModel {
@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 = "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 = "RuleSet", namespace = "http://www.dmg.org/PMML-4_1", type = RuleSet.class),
@XmlElementRef(name = "MiningSchema", namespace = "http://www.dmg.org/PMML-4_1", type = MiningSchema.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<Object> content;
@XmlAttribute
protected String algorithmName;
@XmlAttribute(required = true)
protected MININGFUNCTION functionName;
@XmlAttribute
protected Boolean isScorable;
@XmlAttribute
protected String modelName;
/**
* Gets the rest of the content model.
*
* <p>
* 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 2205 of file:/home/david/workspace/weka/pmml-4-1.xsd
* line 2196 of file:/home/david/workspace/weka/pmml-4-1.xsd
* <p>
* 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.
*
* <p>
* 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 <CODE>set</CODE> method for the content property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getContent().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link ModelExplanation }
* {@link ModelStats }
* {@link Output }
* {@link LocalTransformations }
* {@link RuleSet }
* {@link Targets }
* {@link MiningSchema }
* {@link ModelVerification }
* {@link Extension }
*
*
*/
public List<Object> getContent() {
if (content == null) {
content = new ArrayList<Object>();
}
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 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 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;
}
}
|
0
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml/jaxbbindings/SVMCLASSIFICATIONMETHOD.java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// 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 javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
/**
* <p>Java class for SVM-CLASSIFICATION-METHOD.
*
* <p>The following schema fragment specifies the expected content contained within this class.
* <p>
* <pre>
* <simpleType name="SVM-CLASSIFICATION-METHOD">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="OneAgainstAll"/>
* <enumeration value="OneAgainstOne"/>
* </restriction>
* </simpleType>
* </pre>
*
*/
@XmlEnum
public enum SVMCLASSIFICATIONMETHOD {
@XmlEnumValue("OneAgainstAll")
ONE_AGAINST_ALL("OneAgainstAll"),
@XmlEnumValue("OneAgainstOne")
ONE_AGAINST_ONE("OneAgainstOne");
private final String value;
SVMCLASSIFICATIONMETHOD(String v) {
value = v;
}
public String value() {
return value;
}
public static SVMCLASSIFICATIONMETHOD fromValue(String v) {
for (SVMCLASSIFICATIONMETHOD c: SVMCLASSIFICATIONMETHOD.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v.toString());
}
}
|
0
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml/jaxbbindings/SVMREPRESENTATION.java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// 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 javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
/**
* <p>Java class for SVM-REPRESENTATION.
*
* <p>The following schema fragment specifies the expected content contained within this class.
* <p>
* <pre>
* <simpleType name="SVM-REPRESENTATION">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="SupportVectors"/>
* <enumeration value="Coefficients"/>
* </restriction>
* </simpleType>
* </pre>
*
*/
@XmlEnum
public enum SVMREPRESENTATION {
@XmlEnumValue("Coefficients")
COEFFICIENTS("Coefficients"),
@XmlEnumValue("SupportVectors")
SUPPORT_VECTORS("SupportVectors");
private final String value;
SVMREPRESENTATION(String v) {
value = v;
}
public String value() {
return value;
}
public static SVMREPRESENTATION fromValue(String v) {
for (SVMREPRESENTATION c: SVMREPRESENTATION.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v.toString());
}
}
|
0
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml/jaxbbindings/ScoreDistribution.java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// 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.BigDecimal;
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.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for ScoreDistribution element declaration.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <element name="ScoreDistribution">
* <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"/>
* </sequence>
* <attribute name="confidence" type="{http://www.dmg.org/PMML-4_1}PROB-NUMBER" />
* <attribute name="probability" type="{http://www.dmg.org/PMML-4_1}PROB-NUMBER" />
* <attribute name="recordCount" use="required" type="{http://www.dmg.org/PMML-4_1}NUMBER" />
* <attribute name="value" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"extension"
})
@XmlRootElement(name = "ScoreDistribution")
public class ScoreDistribution {
@XmlElement(name = "Extension", namespace = "http://www.dmg.org/PMML-4_1", required = true)
protected List<Extension> extension;
@XmlAttribute
protected BigDecimal confidence;
@XmlAttribute
protected BigDecimal probability;
@XmlAttribute(required = true)
protected double recordCount;
@XmlAttribute(required = true)
protected String value;
/**
* Gets the value of the extension property.
*
* <p>
* 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 <CODE>set</CODE> method for the extension property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getExtension().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Extension }
*
*
*/
public List<Extension> getExtension() {
if (extension == null) {
extension = new ArrayList<Extension>();
}
return this.extension;
}
/**
* Gets the value of the confidence property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getConfidence() {
return confidence;
}
/**
* Sets the value of the confidence property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public void setConfidence(BigDecimal value) {
this.confidence = value;
}
/**
* Gets the value of the probability property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getProbability() {
return probability;
}
/**
* Sets the value of the probability property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public void setProbability(BigDecimal value) {
this.probability = value;
}
/**
* Gets the value of the recordCount property.
*
*/
public double getRecordCount() {
return recordCount;
}
/**
* Sets the value of the recordCount property.
*
*/
public void setRecordCount(double value) {
this.recordCount = value;
}
/**
* Gets the value of the value property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getValue() {
return value;
}
/**
* Sets the value of the value property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setValue(String value) {
this.value = value;
}
}
|
0
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml/jaxbbindings/Scorecard.java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// 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.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;
/**
* <p>Java class for Scorecard element declaration.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <element name="Scorecard">
* <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}Characteristics"/>
* <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="baselineMethod" default="other">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="max"/>
* <enumeration value="min"/>
* <enumeration value="mean"/>
* <enumeration value="neutral"/>
* <enumeration value="other"/>
* </restriction>
* </simpleType>
* </attribute>
* <attribute name="baselineScore" type="{http://www.dmg.org/PMML-4_1}NUMBER" />
* <attribute name="functionName" use="required" type="{http://www.dmg.org/PMML-4_1}MINING-FUNCTION" />
* <attribute name="initialScore" type="{http://www.dmg.org/PMML-4_1}NUMBER" default="0" />
* <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="reasonCodeAlgorithm" default="pointsBelow">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="pointsAbove"/>
* <enumeration value="pointsBelow"/>
* </restriction>
* </simpleType>
* </attribute>
* <attribute name="useReasonCodes" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"content"
})
@XmlRootElement(name = "Scorecard")
public class Scorecard {
@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 = "Characteristics", namespace = "http://www.dmg.org/PMML-4_1", type = Characteristics.class),
@XmlElementRef(name = "Output", namespace = "http://www.dmg.org/PMML-4_1", type = Output.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 = "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<Object> content;
@XmlAttribute
protected String algorithmName;
@XmlAttribute
protected String baselineMethod;
@XmlAttribute
protected Double baselineScore;
@XmlAttribute(required = true)
protected MININGFUNCTION functionName;
@XmlAttribute
protected Double initialScore;
@XmlAttribute
protected Boolean isScorable;
@XmlAttribute
protected String modelName;
@XmlAttribute
protected String reasonCodeAlgorithm;
@XmlAttribute
protected Boolean useReasonCodes;
/**
* Gets the rest of the content model.
*
* <p>
* 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 3310 of file:/home/david/workspace/weka/pmml-4-1.xsd
* line 3301 of file:/home/david/workspace/weka/pmml-4-1.xsd
* <p>
* 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.
*
* <p>
* 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 <CODE>set</CODE> method for the content property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getContent().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link ModelExplanation }
* {@link ModelStats }
* {@link Characteristics }
* {@link Output }
* {@link LocalTransformations }
* {@link Targets }
* {@link MiningSchema }
* {@link ModelVerification }
* {@link Extension }
*
*
*/
public List<Object> getContent() {
if (content == null) {
content = new ArrayList<Object>();
}
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 baselineMethod property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getBaselineMethod() {
if (baselineMethod == null) {
return "other";
} else {
return baselineMethod;
}
}
/**
* Sets the value of the baselineMethod property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setBaselineMethod(String value) {
this.baselineMethod = value;
}
/**
* Gets the value of the baselineScore property.
*
* @return
* possible object is
* {@link Double }
*
*/
public Double getBaselineScore() {
return baselineScore;
}
/**
* Sets the value of the baselineScore property.
*
* @param value
* allowed object is
* {@link Double }
*
*/
public void setBaselineScore(Double value) {
this.baselineScore = 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 initialScore property.
*
* @return
* possible object is
* {@link Double }
*
*/
public double getInitialScore() {
if (initialScore == null) {
return 0.0D;
} else {
return initialScore;
}
}
/**
* Sets the value of the initialScore property.
*
* @param value
* allowed object is
* {@link Double }
*
*/
public void setInitialScore(Double value) {
this.initialScore = 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 reasonCodeAlgorithm property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getReasonCodeAlgorithm() {
if (reasonCodeAlgorithm == null) {
return "pointsBelow";
} else {
return reasonCodeAlgorithm;
}
}
/**
* Sets the value of the reasonCodeAlgorithm property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setReasonCodeAlgorithm(String value) {
this.reasonCodeAlgorithm = value;
}
/**
* Gets the value of the useReasonCodes property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public boolean isUseReasonCodes() {
if (useReasonCodes == null) {
return true;
} else {
return useReasonCodes;
}
}
/**
* Sets the value of the useReasonCodes property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setUseReasonCodes(Boolean value) {
this.useReasonCodes = value;
}
}
|
0
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml/jaxbbindings/SeasonalityExpoSmooth.java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// 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 javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
/**
* <p>Java class for Seasonality_ExpoSmooth element declaration.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <element name="Seasonality_ExpoSmooth">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <group ref="{http://www.dmg.org/PMML-4_1}REAL-ARRAY"/>
* </sequence>
* <attribute name="delta" type="{http://www.dmg.org/PMML-4_1}REAL-NUMBER" />
* <attribute name="period" use="required" type="{http://www.dmg.org/PMML-4_1}INT-NUMBER" />
* <attribute name="phase" type="{http://www.dmg.org/PMML-4_1}INT-NUMBER" />
* <attribute name="type" use="required">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}NMTOKEN">
* <enumeration value="additive"/>
* <enumeration value="multiplicative"/>
* </restriction>
* </simpleType>
* </attribute>
* <attribute name="unit" type="{http://www.w3.org/2001/XMLSchema}string" />
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"array"
})
@XmlRootElement(name = "Seasonality_ExpoSmooth")
public class SeasonalityExpoSmooth {
@XmlElement(name = "Array", namespace = "http://www.dmg.org/PMML-4_1")
protected ArrayType array;
@XmlAttribute
protected Double delta;
@XmlAttribute(required = true)
protected BigInteger period;
@XmlAttribute
protected BigInteger phase;
@XmlAttribute(required = true)
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
protected String type;
@XmlAttribute
protected String unit;
/**
* Gets the value of the array property.
*
* @return
* possible object is
* {@link ArrayType }
*
*/
public ArrayType getArray() {
return array;
}
/**
* Sets the value of the array property.
*
* @param value
* allowed object is
* {@link ArrayType }
*
*/
public void setArray(ArrayType value) {
this.array = value;
}
/**
* Gets the value of the delta property.
*
* @return
* possible object is
* {@link Double }
*
*/
public Double getDelta() {
return delta;
}
/**
* Sets the value of the delta property.
*
* @param value
* allowed object is
* {@link Double }
*
*/
public void setDelta(Double value) {
this.delta = value;
}
/**
* Gets the value of the period property.
*
* @return
* possible object is
* {@link BigInteger }
*
*/
public BigInteger getPeriod() {
return period;
}
/**
* Sets the value of the period property.
*
* @param value
* allowed object is
* {@link BigInteger }
*
*/
public void setPeriod(BigInteger value) {
this.period = value;
}
/**
* Gets the value of the phase property.
*
* @return
* possible object is
* {@link BigInteger }
*
*/
public BigInteger getPhase() {
return phase;
}
/**
* Sets the value of the phase property.
*
* @param value
* allowed object is
* {@link BigInteger }
*
*/
public void setPhase(BigInteger value) {
this.phase = value;
}
/**
* Gets the value of the type property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getType() {
return type;
}
/**
* Sets the value of the type property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setType(String value) {
this.type = value;
}
/**
* Gets the value of the unit property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getUnit() {
return unit;
}
/**
* Sets the value of the unit property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setUnit(String value) {
this.unit = value;
}
}
|
0
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml/jaxbbindings/Segment.java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// 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.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.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for Segment element declaration.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <element name="Segment">
* <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"/>
* <group ref="{http://www.dmg.org/PMML-4_1}PREDICATE"/>
* <group ref="{http://www.dmg.org/PMML-4_1}MODEL-ELEMENT"/>
* </sequence>
* <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="weight" type="{http://www.dmg.org/PMML-4_1}NUMBER" default="1" />
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"extension",
"simplePredicate",
"compoundPredicate",
"simpleSetPredicate",
"_true",
"_false",
"associationModel",
"baselineModel",
"clusteringModel",
"generalRegressionModel",
"miningModel",
"naiveBayesModel",
"nearestNeighborModel",
"neuralNetwork",
"regressionModel",
"ruleSetModel",
"sequenceModel",
"scorecard",
"supportVectorMachineModel",
"textModel",
"timeSeriesModel",
"treeModel"
})
@XmlRootElement(name = "Segment")
public class Segment {
@XmlElement(name = "Extension", namespace = "http://www.dmg.org/PMML-4_1", required = true)
protected List<Extension> extension;
@XmlElement(name = "SimplePredicate", namespace = "http://www.dmg.org/PMML-4_1")
protected SimplePredicate simplePredicate;
@XmlElement(name = "CompoundPredicate", namespace = "http://www.dmg.org/PMML-4_1")
protected CompoundPredicate compoundPredicate;
@XmlElement(name = "SimpleSetPredicate", namespace = "http://www.dmg.org/PMML-4_1")
protected SimpleSetPredicate simpleSetPredicate;
@XmlElement(name = "True", namespace = "http://www.dmg.org/PMML-4_1")
protected True _true;
@XmlElement(name = "False", namespace = "http://www.dmg.org/PMML-4_1")
protected False _false;
@XmlElement(name = "AssociationModel", namespace = "http://www.dmg.org/PMML-4_1")
protected AssociationModel associationModel;
@XmlElement(name = "BaselineModel", namespace = "http://www.dmg.org/PMML-4_1")
protected BaselineModel baselineModel;
@XmlElement(name = "ClusteringModel", namespace = "http://www.dmg.org/PMML-4_1")
protected ClusteringModel clusteringModel;
@XmlElement(name = "GeneralRegressionModel", namespace = "http://www.dmg.org/PMML-4_1")
protected GeneralRegressionModel generalRegressionModel;
@XmlElement(name = "MiningModel", namespace = "http://www.dmg.org/PMML-4_1")
protected MiningModel miningModel;
@XmlElement(name = "NaiveBayesModel", namespace = "http://www.dmg.org/PMML-4_1")
protected NaiveBayesModel naiveBayesModel;
@XmlElement(name = "NearestNeighborModel", namespace = "http://www.dmg.org/PMML-4_1")
protected NearestNeighborModel nearestNeighborModel;
@XmlElement(name = "NeuralNetwork", namespace = "http://www.dmg.org/PMML-4_1")
protected NeuralNetwork neuralNetwork;
@XmlElement(name = "RegressionModel", namespace = "http://www.dmg.org/PMML-4_1")
protected RegressionModel regressionModel;
@XmlElement(name = "RuleSetModel", namespace = "http://www.dmg.org/PMML-4_1")
protected RuleSetModel ruleSetModel;
@XmlElement(name = "SequenceModel", namespace = "http://www.dmg.org/PMML-4_1")
protected SequenceModel sequenceModel;
@XmlElement(name = "Scorecard", namespace = "http://www.dmg.org/PMML-4_1")
protected Scorecard scorecard;
@XmlElement(name = "SupportVectorMachineModel", namespace = "http://www.dmg.org/PMML-4_1")
protected SupportVectorMachineModel supportVectorMachineModel;
@XmlElement(name = "TextModel", namespace = "http://www.dmg.org/PMML-4_1")
protected TextModel textModel;
@XmlElement(name = "TimeSeriesModel", namespace = "http://www.dmg.org/PMML-4_1")
protected TimeSeriesModel timeSeriesModel;
@XmlElement(name = "TreeModel", namespace = "http://www.dmg.org/PMML-4_1")
protected TreeModel treeModel;
@XmlAttribute
protected String id;
@XmlAttribute
protected Double weight;
/**
* Gets the value of the extension property.
*
* <p>
* 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 <CODE>set</CODE> method for the extension property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getExtension().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Extension }
*
*
*/
public List<Extension> getExtension() {
if (extension == null) {
extension = new ArrayList<Extension>();
}
return this.extension;
}
/**
* Gets the value of the simplePredicate property.
*
* @return
* possible object is
* {@link SimplePredicate }
*
*/
public SimplePredicate getSimplePredicate() {
return simplePredicate;
}
/**
* Sets the value of the simplePredicate property.
*
* @param value
* allowed object is
* {@link SimplePredicate }
*
*/
public void setSimplePredicate(SimplePredicate value) {
this.simplePredicate = value;
}
/**
* Gets the value of the compoundPredicate property.
*
* @return
* possible object is
* {@link CompoundPredicate }
*
*/
public CompoundPredicate getCompoundPredicate() {
return compoundPredicate;
}
/**
* Sets the value of the compoundPredicate property.
*
* @param value
* allowed object is
* {@link CompoundPredicate }
*
*/
public void setCompoundPredicate(CompoundPredicate value) {
this.compoundPredicate = value;
}
/**
* Gets the value of the simpleSetPredicate property.
*
* @return
* possible object is
* {@link SimpleSetPredicate }
*
*/
public SimpleSetPredicate getSimpleSetPredicate() {
return simpleSetPredicate;
}
/**
* Sets the value of the simpleSetPredicate property.
*
* @param value
* allowed object is
* {@link SimpleSetPredicate }
*
*/
public void setSimpleSetPredicate(SimpleSetPredicate value) {
this.simpleSetPredicate = value;
}
/**
* Gets the value of the true property.
*
* @return
* possible object is
* {@link True }
*
*/
public True getTrue() {
return _true;
}
/**
* Sets the value of the true property.
*
* @param value
* allowed object is
* {@link True }
*
*/
public void setTrue(True value) {
this._true = value;
}
/**
* Gets the value of the false property.
*
* @return
* possible object is
* {@link False }
*
*/
public False getFalse() {
return _false;
}
/**
* Sets the value of the false property.
*
* @param value
* allowed object is
* {@link False }
*
*/
public void setFalse(False value) {
this._false = value;
}
/**
* Gets the value of the associationModel property.
*
* @return
* possible object is
* {@link AssociationModel }
*
*/
public AssociationModel getAssociationModel() {
return associationModel;
}
/**
* Sets the value of the associationModel property.
*
* @param value
* allowed object is
* {@link AssociationModel }
*
*/
public void setAssociationModel(AssociationModel value) {
this.associationModel = value;
}
/**
* Gets the value of the baselineModel property.
*
* @return
* possible object is
* {@link BaselineModel }
*
*/
public BaselineModel getBaselineModel() {
return baselineModel;
}
/**
* Sets the value of the baselineModel property.
*
* @param value
* allowed object is
* {@link BaselineModel }
*
*/
public void setBaselineModel(BaselineModel value) {
this.baselineModel = value;
}
/**
* Gets the value of the clusteringModel property.
*
* @return
* possible object is
* {@link ClusteringModel }
*
*/
public ClusteringModel getClusteringModel() {
return clusteringModel;
}
/**
* Sets the value of the clusteringModel property.
*
* @param value
* allowed object is
* {@link ClusteringModel }
*
*/
public void setClusteringModel(ClusteringModel value) {
this.clusteringModel = value;
}
/**
* Gets the value of the generalRegressionModel property.
*
* @return
* possible object is
* {@link GeneralRegressionModel }
*
*/
public GeneralRegressionModel getGeneralRegressionModel() {
return generalRegressionModel;
}
/**
* Sets the value of the generalRegressionModel property.
*
* @param value
* allowed object is
* {@link GeneralRegressionModel }
*
*/
public void setGeneralRegressionModel(GeneralRegressionModel value) {
this.generalRegressionModel = value;
}
/**
* Gets the value of the miningModel property.
*
* @return
* possible object is
* {@link MiningModel }
*
*/
public MiningModel getMiningModel() {
return miningModel;
}
/**
* Sets the value of the miningModel property.
*
* @param value
* allowed object is
* {@link MiningModel }
*
*/
public void setMiningModel(MiningModel value) {
this.miningModel = value;
}
/**
* Gets the value of the naiveBayesModel property.
*
* @return
* possible object is
* {@link NaiveBayesModel }
*
*/
public NaiveBayesModel getNaiveBayesModel() {
return naiveBayesModel;
}
/**
* Sets the value of the naiveBayesModel property.
*
* @param value
* allowed object is
* {@link NaiveBayesModel }
*
*/
public void setNaiveBayesModel(NaiveBayesModel value) {
this.naiveBayesModel = value;
}
/**
* Gets the value of the nearestNeighborModel property.
*
* @return
* possible object is
* {@link NearestNeighborModel }
*
*/
public NearestNeighborModel getNearestNeighborModel() {
return nearestNeighborModel;
}
/**
* Sets the value of the nearestNeighborModel property.
*
* @param value
* allowed object is
* {@link NearestNeighborModel }
*
*/
public void setNearestNeighborModel(NearestNeighborModel value) {
this.nearestNeighborModel = value;
}
/**
* Gets the value of the neuralNetwork property.
*
* @return
* possible object is
* {@link NeuralNetwork }
*
*/
public NeuralNetwork getNeuralNetwork() {
return neuralNetwork;
}
/**
* Sets the value of the neuralNetwork property.
*
* @param value
* allowed object is
* {@link NeuralNetwork }
*
*/
public void setNeuralNetwork(NeuralNetwork value) {
this.neuralNetwork = value;
}
/**
* Gets the value of the regressionModel property.
*
* @return
* possible object is
* {@link RegressionModel }
*
*/
public RegressionModel getRegressionModel() {
return regressionModel;
}
/**
* Sets the value of the regressionModel property.
*
* @param value
* allowed object is
* {@link RegressionModel }
*
*/
public void setRegressionModel(RegressionModel value) {
this.regressionModel = value;
}
/**
* Gets the value of the ruleSetModel property.
*
* @return
* possible object is
* {@link RuleSetModel }
*
*/
public RuleSetModel getRuleSetModel() {
return ruleSetModel;
}
/**
* Sets the value of the ruleSetModel property.
*
* @param value
* allowed object is
* {@link RuleSetModel }
*
*/
public void setRuleSetModel(RuleSetModel value) {
this.ruleSetModel = value;
}
/**
* Gets the value of the sequenceModel property.
*
* @return
* possible object is
* {@link SequenceModel }
*
*/
public SequenceModel getSequenceModel() {
return sequenceModel;
}
/**
* Sets the value of the sequenceModel property.
*
* @param value
* allowed object is
* {@link SequenceModel }
*
*/
public void setSequenceModel(SequenceModel value) {
this.sequenceModel = value;
}
/**
* Gets the value of the scorecard property.
*
* @return
* possible object is
* {@link Scorecard }
*
*/
public Scorecard getScorecard() {
return scorecard;
}
/**
* Sets the value of the scorecard property.
*
* @param value
* allowed object is
* {@link Scorecard }
*
*/
public void setScorecard(Scorecard value) {
this.scorecard = value;
}
/**
* Gets the value of the supportVectorMachineModel property.
*
* @return
* possible object is
* {@link SupportVectorMachineModel }
*
*/
public SupportVectorMachineModel getSupportVectorMachineModel() {
return supportVectorMachineModel;
}
/**
* Sets the value of the supportVectorMachineModel property.
*
* @param value
* allowed object is
* {@link SupportVectorMachineModel }
*
*/
public void setSupportVectorMachineModel(SupportVectorMachineModel value) {
this.supportVectorMachineModel = value;
}
/**
* Gets the value of the textModel property.
*
* @return
* possible object is
* {@link TextModel }
*
*/
public TextModel getTextModel() {
return textModel;
}
/**
* Sets the value of the textModel property.
*
* @param value
* allowed object is
* {@link TextModel }
*
*/
public void setTextModel(TextModel value) {
this.textModel = value;
}
/**
* Gets the value of the timeSeriesModel property.
*
* @return
* possible object is
* {@link TimeSeriesModel }
*
*/
public TimeSeriesModel getTimeSeriesModel() {
return timeSeriesModel;
}
/**
* Sets the value of the timeSeriesModel property.
*
* @param value
* allowed object is
* {@link TimeSeriesModel }
*
*/
public void setTimeSeriesModel(TimeSeriesModel value) {
this.timeSeriesModel = value;
}
/**
* Gets the value of the treeModel property.
*
* @return
* possible object is
* {@link TreeModel }
*
*/
public TreeModel getTreeModel() {
return treeModel;
}
/**
* Sets the value of the treeModel property.
*
* @param value
* allowed object is
* {@link TreeModel }
*
*/
public void setTreeModel(TreeModel value) {
this.treeModel = value;
}
/**
* Gets the value of the id property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getId() {
return id;
}
/**
* Sets the value of the id property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setId(String value) {
this.id = value;
}
/**
* Gets the value of the weight property.
*
* @return
* possible object is
* {@link Double }
*
*/
public double getWeight() {
if (weight == null) {
return 1.0D;
} else {
return weight;
}
}
/**
* Sets the value of the weight property.
*
* @param value
* allowed object is
* {@link Double }
*
*/
public void setWeight(Double value) {
this.weight = value;
}
}
|
0
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml/jaxbbindings/Segmentation.java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// 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.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.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for Segmentation element declaration.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <element name="Segmentation">
* <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}Segment" maxOccurs="unbounded"/>
* </sequence>
* <attribute name="multipleModelMethod" use="required" type="{http://www.dmg.org/PMML-4_1}MULTIPLE-MODEL-METHOD" />
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"extension",
"segment"
})
@XmlRootElement(name = "Segmentation")
public class Segmentation {
@XmlElement(name = "Extension", namespace = "http://www.dmg.org/PMML-4_1", required = true)
protected List<Extension> extension;
@XmlElement(name = "Segment", namespace = "http://www.dmg.org/PMML-4_1", required = true)
protected List<Segment> segment;
@XmlAttribute(required = true)
protected MULTIPLEMODELMETHOD multipleModelMethod;
/**
* Gets the value of the extension property.
*
* <p>
* 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 <CODE>set</CODE> method for the extension property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getExtension().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Extension }
*
*
*/
public List<Extension> getExtension() {
if (extension == null) {
extension = new ArrayList<Extension>();
}
return this.extension;
}
/**
* Gets the value of the segment property.
*
* <p>
* 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 <CODE>set</CODE> method for the segment property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getSegment().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Segment }
*
*
*/
public List<Segment> getSegment() {
if (segment == null) {
segment = new ArrayList<Segment>();
}
return this.segment;
}
/**
* Gets the value of the multipleModelMethod property.
*
* @return
* possible object is
* {@link MULTIPLEMODELMETHOD }
*
*/
public MULTIPLEMODELMETHOD getMultipleModelMethod() {
return multipleModelMethod;
}
/**
* Sets the value of the multipleModelMethod property.
*
* @param value
* allowed object is
* {@link MULTIPLEMODELMETHOD }
*
*/
public void setMultipleModelMethod(MULTIPLEMODELMETHOD value) {
this.multipleModelMethod = value;
}
}
|
0
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml/jaxbbindings/Sequence.java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// 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.XmlElement;
import javax.xml.bind.annotation.XmlElements;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for Sequence element declaration.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <element name="Sequence">
* <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}SetReference"/>
* <sequence maxOccurs="unbounded" minOccurs="0">
* <group ref="{http://www.dmg.org/PMML-4_1}FOLLOW-SET"/>
* </sequence>
* <element ref="{http://www.dmg.org/PMML-4_1}Time" minOccurs="0"/>
* </sequence>
* <attribute name="id" use="required" type="{http://www.dmg.org/PMML-4_1}ELEMENT-ID" />
* <attribute name="numberOfSets" type="{http://www.dmg.org/PMML-4_1}INT-NUMBER" />
* <attribute name="occurrence" type="{http://www.dmg.org/PMML-4_1}INT-NUMBER" />
* <attribute name="support" type="{http://www.dmg.org/PMML-4_1}REAL-NUMBER" />
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"extension",
"setReference",
"extensionAndDelimiterAndTime",
"time"
})
@XmlRootElement(name = "Sequence")
public class Sequence {
@XmlElement(name = "Extension", namespace = "http://www.dmg.org/PMML-4_1", required = true)
protected List<Extension> extension;
@XmlElement(name = "SetReference", namespace = "http://www.dmg.org/PMML-4_1", required = true)
protected SetReference setReference;
@XmlElements({
@XmlElement(name = "SetReference", namespace = "http://www.dmg.org/PMML-4_1", required = true, type = SetReference.class),
@XmlElement(name = "Extension", namespace = "http://www.dmg.org/PMML-4_1", required = true, type = Extension.class),
@XmlElement(name = "Delimiter", namespace = "http://www.dmg.org/PMML-4_1", required = true, type = Delimiter.class),
@XmlElement(name = "Time", namespace = "http://www.dmg.org/PMML-4_1", required = true, type = Time.class)
})
protected List<Object> extensionAndDelimiterAndTime;
@XmlElement(name = "Time", namespace = "http://www.dmg.org/PMML-4_1")
protected Time time;
@XmlAttribute(required = true)
protected String id;
@XmlAttribute
protected BigInteger numberOfSets;
@XmlAttribute
protected BigInteger occurrence;
@XmlAttribute
protected Double support;
/**
* Gets the value of the extension property.
*
* <p>
* 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 <CODE>set</CODE> method for the extension property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getExtension().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Extension }
*
*
*/
public List<Extension> getExtension() {
if (extension == null) {
extension = new ArrayList<Extension>();
}
return this.extension;
}
/**
* Gets the value of the setReference property.
*
* @return
* possible object is
* {@link SetReference }
*
*/
public SetReference getSetReference() {
return setReference;
}
/**
* Sets the value of the setReference property.
*
* @param value
* allowed object is
* {@link SetReference }
*
*/
public void setSetReference(SetReference value) {
this.setReference = value;
}
/**
* Gets the value of the extensionAndDelimiterAndTime property.
*
* <p>
* 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 <CODE>set</CODE> method for the extensionAndDelimiterAndTime property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getExtensionAndDelimiterAndTime().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link SetReference }
* {@link Extension }
* {@link Delimiter }
* {@link Time }
*
*
*/
public List<Object> getExtensionAndDelimiterAndTime() {
if (extensionAndDelimiterAndTime == null) {
extensionAndDelimiterAndTime = new ArrayList<Object>();
}
return this.extensionAndDelimiterAndTime;
}
/**
* Gets the value of the time property.
*
* @return
* possible object is
* {@link Time }
*
*/
public Time getTime() {
return time;
}
/**
* Sets the value of the time property.
*
* @param value
* allowed object is
* {@link Time }
*
*/
public void setTime(Time value) {
this.time = value;
}
/**
* Gets the value of the id property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getId() {
return id;
}
/**
* Sets the value of the id property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setId(String value) {
this.id = value;
}
/**
* Gets the value of the numberOfSets property.
*
* @return
* possible object is
* {@link BigInteger }
*
*/
public BigInteger getNumberOfSets() {
return numberOfSets;
}
/**
* Sets the value of the numberOfSets property.
*
* @param value
* allowed object is
* {@link BigInteger }
*
*/
public void setNumberOfSets(BigInteger value) {
this.numberOfSets = value;
}
/**
* Gets the value of the occurrence property.
*
* @return
* possible object is
* {@link BigInteger }
*
*/
public BigInteger getOccurrence() {
return occurrence;
}
/**
* Sets the value of the occurrence property.
*
* @param value
* allowed object is
* {@link BigInteger }
*
*/
public void setOccurrence(BigInteger value) {
this.occurrence = value;
}
/**
* Gets the value of the support property.
*
* @return
* possible object is
* {@link Double }
*
*/
public Double getSupport() {
return support;
}
/**
* Sets the value of the support property.
*
* @param value
* allowed object is
* {@link Double }
*
*/
public void setSupport(Double value) {
this.support = value;
}
}
|
0
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml/jaxbbindings/SequenceModel.java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// 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;
/**
* <p>Java class for SequenceModel element declaration.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <element name="SequenceModel">
* <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}ModelStats" minOccurs="0"/>
* <element ref="{http://www.dmg.org/PMML-4_1}LocalTransformations" minOccurs="0"/>
* <element ref="{http://www.dmg.org/PMML-4_1}Constraints" minOccurs="0"/>
* <element ref="{http://www.dmg.org/PMML-4_1}Item" maxOccurs="unbounded" minOccurs="0"/>
* <element ref="{http://www.dmg.org/PMML-4_1}Itemset" maxOccurs="unbounded" minOccurs="0"/>
* <element ref="{http://www.dmg.org/PMML-4_1}SetPredicate" maxOccurs="unbounded" minOccurs="0"/>
* <element ref="{http://www.dmg.org/PMML-4_1}Sequence" maxOccurs="unbounded"/>
* <element ref="{http://www.dmg.org/PMML-4_1}SequenceRule" maxOccurs="unbounded" 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="avgNumberOfItemsPerTransaction" type="{http://www.dmg.org/PMML-4_1}REAL-NUMBER" />
* <attribute name="avgNumberOfTAsPerTAGroup" type="{http://www.dmg.org/PMML-4_1}REAL-NUMBER" />
* <attribute name="functionName" use="required" type="{http://www.dmg.org/PMML-4_1}MINING-FUNCTION" />
* <attribute name="isScorable" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
* <attribute name="maxNumberOfItemsPerTransaction" type="{http://www.dmg.org/PMML-4_1}INT-NUMBER" />
* <attribute name="maxNumberOfTAsPerTAGroup" type="{http://www.dmg.org/PMML-4_1}INT-NUMBER" />
* <attribute name="modelName" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="numberOfTransactionGroups" type="{http://www.dmg.org/PMML-4_1}INT-NUMBER" />
* <attribute name="numberOfTransactions" type="{http://www.dmg.org/PMML-4_1}INT-NUMBER" />
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"content"
})
@XmlRootElement(name = "SequenceModel")
public class SequenceModel {
@XmlElementRefs({
@XmlElementRef(name = "ModelStats", namespace = "http://www.dmg.org/PMML-4_1", type = ModelStats.class),
@XmlElementRef(name = "SequenceRule", namespace = "http://www.dmg.org/PMML-4_1", type = SequenceRule.class),
@XmlElementRef(name = "SetPredicate", namespace = "http://www.dmg.org/PMML-4_1", type = SetPredicate.class),
@XmlElementRef(name = "LocalTransformations", namespace = "http://www.dmg.org/PMML-4_1", type = LocalTransformations.class),
@XmlElementRef(name = "Sequence", namespace = "http://www.dmg.org/PMML-4_1", type = Sequence.class),
@XmlElementRef(name = "Constraints", namespace = "http://www.dmg.org/PMML-4_1", type = Constraints.class),
@XmlElementRef(name = "MiningSchema", namespace = "http://www.dmg.org/PMML-4_1", type = MiningSchema.class),
@XmlElementRef(name = "Itemset", namespace = "http://www.dmg.org/PMML-4_1", type = Itemset.class),
@XmlElementRef(name = "Extension", namespace = "http://www.dmg.org/PMML-4_1", type = Extension.class),
@XmlElementRef(name = "Item", namespace = "http://www.dmg.org/PMML-4_1", type = Item.class)
})
protected List<Object> content;
@XmlAttribute
protected String algorithmName;
@XmlAttribute
protected Double avgNumberOfItemsPerTransaction;
@XmlAttribute
protected Double avgNumberOfTAsPerTAGroup;
@XmlAttribute(required = true)
protected MININGFUNCTION functionName;
@XmlAttribute
protected Boolean isScorable;
@XmlAttribute
protected BigInteger maxNumberOfItemsPerTransaction;
@XmlAttribute
protected BigInteger maxNumberOfTAsPerTAGroup;
@XmlAttribute
protected String modelName;
@XmlAttribute
protected BigInteger numberOfTransactionGroups;
@XmlAttribute
protected BigInteger numberOfTransactions;
/**
* Gets the rest of the content model.
*
* <p>
* 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 343 of file:/home/david/workspace/weka/pmml-4-1.xsd
* line 333 of file:/home/david/workspace/weka/pmml-4-1.xsd
* <p>
* 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.
*
* <p>
* 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 <CODE>set</CODE> method for the content property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getContent().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link ModelStats }
* {@link SequenceRule }
* {@link SetPredicate }
* {@link LocalTransformations }
* {@link Constraints }
* {@link Sequence }
* {@link Itemset }
* {@link MiningSchema }
* {@link Item }
* {@link Extension }
*
*
*/
public List<Object> getContent() {
if (content == null) {
content = new ArrayList<Object>();
}
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 avgNumberOfItemsPerTransaction property.
*
* @return
* possible object is
* {@link Double }
*
*/
public Double getAvgNumberOfItemsPerTransaction() {
return avgNumberOfItemsPerTransaction;
}
/**
* Sets the value of the avgNumberOfItemsPerTransaction property.
*
* @param value
* allowed object is
* {@link Double }
*
*/
public void setAvgNumberOfItemsPerTransaction(Double value) {
this.avgNumberOfItemsPerTransaction = value;
}
/**
* Gets the value of the avgNumberOfTAsPerTAGroup property.
*
* @return
* possible object is
* {@link Double }
*
*/
public Double getAvgNumberOfTAsPerTAGroup() {
return avgNumberOfTAsPerTAGroup;
}
/**
* Sets the value of the avgNumberOfTAsPerTAGroup property.
*
* @param value
* allowed object is
* {@link Double }
*
*/
public void setAvgNumberOfTAsPerTAGroup(Double value) {
this.avgNumberOfTAsPerTAGroup = 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 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 maxNumberOfItemsPerTransaction property.
*
* @return
* possible object is
* {@link BigInteger }
*
*/
public BigInteger getMaxNumberOfItemsPerTransaction() {
return maxNumberOfItemsPerTransaction;
}
/**
* Sets the value of the maxNumberOfItemsPerTransaction property.
*
* @param value
* allowed object is
* {@link BigInteger }
*
*/
public void setMaxNumberOfItemsPerTransaction(BigInteger value) {
this.maxNumberOfItemsPerTransaction = value;
}
/**
* Gets the value of the maxNumberOfTAsPerTAGroup property.
*
* @return
* possible object is
* {@link BigInteger }
*
*/
public BigInteger getMaxNumberOfTAsPerTAGroup() {
return maxNumberOfTAsPerTAGroup;
}
/**
* Sets the value of the maxNumberOfTAsPerTAGroup property.
*
* @param value
* allowed object is
* {@link BigInteger }
*
*/
public void setMaxNumberOfTAsPerTAGroup(BigInteger value) {
this.maxNumberOfTAsPerTAGroup = 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 numberOfTransactionGroups property.
*
* @return
* possible object is
* {@link BigInteger }
*
*/
public BigInteger getNumberOfTransactionGroups() {
return numberOfTransactionGroups;
}
/**
* Sets the value of the numberOfTransactionGroups property.
*
* @param value
* allowed object is
* {@link BigInteger }
*
*/
public void setNumberOfTransactionGroups(BigInteger value) {
this.numberOfTransactionGroups = value;
}
/**
* Gets the value of the numberOfTransactions property.
*
* @return
* possible object is
* {@link BigInteger }
*
*/
public BigInteger getNumberOfTransactions() {
return numberOfTransactions;
}
/**
* Sets the value of the numberOfTransactions property.
*
* @param value
* allowed object is
* {@link BigInteger }
*
*/
public void setNumberOfTransactions(BigInteger value) {
this.numberOfTransactions = value;
}
}
|
0
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml/jaxbbindings/SequenceReference.java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// 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.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.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for SequenceReference element declaration.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <element name="SequenceReference">
* <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"/>
* </sequence>
* <attribute name="seqId" use="required" type="{http://www.dmg.org/PMML-4_1}ELEMENT-ID" />
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"extension"
})
@XmlRootElement(name = "SequenceReference")
public class SequenceReference {
@XmlElement(name = "Extension", namespace = "http://www.dmg.org/PMML-4_1", required = true)
protected List<Extension> extension;
@XmlAttribute(required = true)
protected String seqId;
/**
* Gets the value of the extension property.
*
* <p>
* 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 <CODE>set</CODE> method for the extension property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getExtension().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Extension }
*
*
*/
public List<Extension> getExtension() {
if (extension == null) {
extension = new ArrayList<Extension>();
}
return this.extension;
}
/**
* Gets the value of the seqId property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getSeqId() {
return seqId;
}
/**
* Sets the value of the seqId property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setSeqId(String value) {
this.seqId = value;
}
}
|
0
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml/jaxbbindings/SequenceRule.java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// 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;
/**
* <p>Java class for SequenceRule element declaration.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <element name="SequenceRule">
* <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}AntecedentSequence"/>
* <element ref="{http://www.dmg.org/PMML-4_1}Delimiter"/>
* <element ref="{http://www.dmg.org/PMML-4_1}Time" minOccurs="0"/>
* <element ref="{http://www.dmg.org/PMML-4_1}ConsequentSequence"/>
* <element ref="{http://www.dmg.org/PMML-4_1}Time" minOccurs="0"/>
* </sequence>
* <attribute name="confidence" use="required" type="{http://www.dmg.org/PMML-4_1}REAL-NUMBER" />
* <attribute name="id" use="required" type="{http://www.dmg.org/PMML-4_1}ELEMENT-ID" />
* <attribute name="lift" type="{http://www.dmg.org/PMML-4_1}REAL-NUMBER" />
* <attribute name="numberOfSets" use="required" type="{http://www.dmg.org/PMML-4_1}INT-NUMBER" />
* <attribute name="occurrence" use="required" type="{http://www.dmg.org/PMML-4_1}INT-NUMBER" />
* <attribute name="support" use="required" type="{http://www.dmg.org/PMML-4_1}REAL-NUMBER" />
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"content"
})
@XmlRootElement(name = "SequenceRule")
public class SequenceRule {
@XmlElementRefs({
@XmlElementRef(name = "Time", namespace = "http://www.dmg.org/PMML-4_1", type = Time.class),
@XmlElementRef(name = "Delimiter", namespace = "http://www.dmg.org/PMML-4_1", type = Delimiter.class),
@XmlElementRef(name = "AntecedentSequence", namespace = "http://www.dmg.org/PMML-4_1", type = AntecedentSequence.class),
@XmlElementRef(name = "ConsequentSequence", namespace = "http://www.dmg.org/PMML-4_1", type = ConsequentSequence.class),
@XmlElementRef(name = "Extension", namespace = "http://www.dmg.org/PMML-4_1", type = Extension.class)
})
protected List<Object> content;
@XmlAttribute(required = true)
protected double confidence;
@XmlAttribute(required = true)
protected String id;
@XmlAttribute
protected Double lift;
@XmlAttribute(required = true)
protected BigInteger numberOfSets;
@XmlAttribute(required = true)
protected BigInteger occurrence;
@XmlAttribute(required = true)
protected double support;
/**
* Gets the rest of the content model.
*
* <p>
* You are getting this "catch-all" property because of the following reason:
* The field name "Time" is used by two different parts of a schema. See:
* line 466 of file:/home/david/workspace/weka/pmml-4-1.xsd
* line 464 of file:/home/david/workspace/weka/pmml-4-1.xsd
* <p>
* 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.
*
* <p>
* 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 <CODE>set</CODE> method for the content property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getContent().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link ConsequentSequence }
* {@link Delimiter }
* {@link Time }
* {@link AntecedentSequence }
* {@link Extension }
*
*
*/
public List<Object> getContent() {
if (content == null) {
content = new ArrayList<Object>();
}
return this.content;
}
/**
* Gets the value of the confidence property.
*
*/
public double getConfidence() {
return confidence;
}
/**
* Sets the value of the confidence property.
*
*/
public void setConfidence(double value) {
this.confidence = value;
}
/**
* Gets the value of the id property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getId() {
return id;
}
/**
* Sets the value of the id property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setId(String value) {
this.id = value;
}
/**
* Gets the value of the lift property.
*
* @return
* possible object is
* {@link Double }
*
*/
public Double getLift() {
return lift;
}
/**
* Sets the value of the lift property.
*
* @param value
* allowed object is
* {@link Double }
*
*/
public void setLift(Double value) {
this.lift = value;
}
/**
* Gets the value of the numberOfSets property.
*
* @return
* possible object is
* {@link BigInteger }
*
*/
public BigInteger getNumberOfSets() {
return numberOfSets;
}
/**
* Sets the value of the numberOfSets property.
*
* @param value
* allowed object is
* {@link BigInteger }
*
*/
public void setNumberOfSets(BigInteger value) {
this.numberOfSets = value;
}
/**
* Gets the value of the occurrence property.
*
* @return
* possible object is
* {@link BigInteger }
*
*/
public BigInteger getOccurrence() {
return occurrence;
}
/**
* Sets the value of the occurrence property.
*
* @param value
* allowed object is
* {@link BigInteger }
*
*/
public void setOccurrence(BigInteger value) {
this.occurrence = value;
}
/**
* Gets the value of the support property.
*
*/
public double getSupport() {
return support;
}
/**
* Sets the value of the support property.
*
*/
public void setSupport(double value) {
this.support = value;
}
}
|
0
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml/jaxbbindings/SetPredicate.java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// 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.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.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for SetPredicate element declaration.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <element name="SetPredicate">
* <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"/>
* <group ref="{http://www.dmg.org/PMML-4_1}STRING-ARRAY"/>
* </sequence>
* <attribute name="field" use="required" type="{http://www.dmg.org/PMML-4_1}FIELD-NAME" />
* <attribute name="id" use="required" type="{http://www.dmg.org/PMML-4_1}ELEMENT-ID" />
* <attribute name="operator" type="{http://www.w3.org/2001/XMLSchema}string" fixed="supersetOf" />
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"extension",
"array"
})
@XmlRootElement(name = "SetPredicate")
public class SetPredicate {
@XmlElement(name = "Extension", namespace = "http://www.dmg.org/PMML-4_1", required = true)
protected List<Extension> extension;
@XmlElement(name = "Array", namespace = "http://www.dmg.org/PMML-4_1")
protected ArrayType array;
@XmlAttribute(required = true)
protected String field;
@XmlAttribute(required = true)
protected String id;
@XmlAttribute
protected String operator;
/**
* Gets the value of the extension property.
*
* <p>
* 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 <CODE>set</CODE> method for the extension property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getExtension().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Extension }
*
*
*/
public List<Extension> getExtension() {
if (extension == null) {
extension = new ArrayList<Extension>();
}
return this.extension;
}
/**
* Gets the value of the array property.
*
* @return
* possible object is
* {@link ArrayType }
*
*/
public ArrayType getArray() {
return array;
}
/**
* Sets the value of the array property.
*
* @param value
* allowed object is
* {@link ArrayType }
*
*/
public void setArray(ArrayType value) {
this.array = value;
}
/**
* Gets the value of the field property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getField() {
return field;
}
/**
* Sets the value of the field property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setField(String value) {
this.field = value;
}
/**
* Gets the value of the id property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getId() {
return id;
}
/**
* Sets the value of the id property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setId(String value) {
this.id = value;
}
/**
* Gets the value of the operator property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getOperator() {
if (operator == null) {
return "supersetOf";
} else {
return operator;
}
}
/**
* Sets the value of the operator property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setOperator(String value) {
this.operator = value;
}
}
|
0
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml/jaxbbindings/SetReference.java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// 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.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.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for SetReference element declaration.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <element name="SetReference">
* <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"/>
* </sequence>
* <attribute name="setId" use="required" type="{http://www.dmg.org/PMML-4_1}ELEMENT-ID" />
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"extension"
})
@XmlRootElement(name = "SetReference")
public class SetReference {
@XmlElement(name = "Extension", namespace = "http://www.dmg.org/PMML-4_1", required = true)
protected List<Extension> extension;
@XmlAttribute(required = true)
protected String setId;
/**
* Gets the value of the extension property.
*
* <p>
* 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 <CODE>set</CODE> method for the extension property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getExtension().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Extension }
*
*
*/
public List<Extension> getExtension() {
if (extension == null) {
extension = new ArrayList<Extension>();
}
return this.extension;
}
/**
* Gets the value of the setId property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getSetId() {
return setId;
}
/**
* Sets the value of the setId property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setSetId(String value) {
this.setId = value;
}
}
|
0
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml/jaxbbindings/SigmoidKernelType.java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// 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.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.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for SigmoidKernelType element declaration.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <element name="SigmoidKernelType">
* <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"/>
* </sequence>
* <attribute name="coef0" type="{http://www.dmg.org/PMML-4_1}REAL-NUMBER" default="1" />
* <attribute name="description" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="gamma" type="{http://www.dmg.org/PMML-4_1}REAL-NUMBER" default="1" />
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"extension"
})
@XmlRootElement(name = "SigmoidKernelType")
public class SigmoidKernelType {
@XmlElement(name = "Extension", namespace = "http://www.dmg.org/PMML-4_1", required = true)
protected List<Extension> extension;
@XmlAttribute
protected Double coef0;
@XmlAttribute
protected String description;
@XmlAttribute
protected Double gamma;
/**
* Gets the value of the extension property.
*
* <p>
* 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 <CODE>set</CODE> method for the extension property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getExtension().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Extension }
*
*
*/
public List<Extension> getExtension() {
if (extension == null) {
extension = new ArrayList<Extension>();
}
return this.extension;
}
/**
* Gets the value of the coef0 property.
*
* @return
* possible object is
* {@link Double }
*
*/
public double getCoef0() {
if (coef0 == null) {
return 1.0D;
} else {
return coef0;
}
}
/**
* Sets the value of the coef0 property.
*
* @param value
* allowed object is
* {@link Double }
*
*/
public void setCoef0(Double value) {
this.coef0 = value;
}
/**
* Gets the value of the description property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDescription() {
return description;
}
/**
* Sets the value of the description property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDescription(String value) {
this.description = value;
}
/**
* Gets the value of the gamma property.
*
* @return
* possible object is
* {@link Double }
*
*/
public double getGamma() {
if (gamma == null) {
return 1.0D;
} else {
return gamma;
}
}
/**
* Sets the value of the gamma property.
*
* @param value
* allowed object is
* {@link Double }
*
*/
public void setGamma(Double value) {
this.gamma = value;
}
}
|
0
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml/jaxbbindings/SimpleMatching.java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// 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.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for simpleMatching element declaration.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <element name="simpleMatching">
* <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"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"extension"
})
@XmlRootElement(name = "simpleMatching")
public class SimpleMatching {
@XmlElement(name = "Extension", namespace = "http://www.dmg.org/PMML-4_1", required = true)
protected List<Extension> extension;
/**
* Gets the value of the extension property.
*
* <p>
* 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 <CODE>set</CODE> method for the extension property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getExtension().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Extension }
*
*
*/
public List<Extension> getExtension() {
if (extension == null) {
extension = new ArrayList<Extension>();
}
return this.extension;
}
}
|
0
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml/jaxbbindings/SimplePredicate.java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// 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.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.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for SimplePredicate element declaration.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <element name="SimplePredicate">
* <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"/>
* </sequence>
* <attribute name="field" use="required" type="{http://www.dmg.org/PMML-4_1}FIELD-NAME" />
* <attribute name="operator" use="required">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="equal"/>
* <enumeration value="notEqual"/>
* <enumeration value="lessThan"/>
* <enumeration value="lessOrEqual"/>
* <enumeration value="greaterThan"/>
* <enumeration value="greaterOrEqual"/>
* <enumeration value="isMissing"/>
* <enumeration value="isNotMissing"/>
* </restriction>
* </simpleType>
* </attribute>
* <attribute name="value" type="{http://www.w3.org/2001/XMLSchema}string" />
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"extension"
})
@XmlRootElement(name = "SimplePredicate")
public class SimplePredicate {
@XmlElement(name = "Extension", namespace = "http://www.dmg.org/PMML-4_1", required = true)
protected List<Extension> extension;
@XmlAttribute(required = true)
protected String field;
@XmlAttribute(required = true)
protected String operator;
@XmlAttribute
protected String value;
/**
* Gets the value of the extension property.
*
* <p>
* 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 <CODE>set</CODE> method for the extension property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getExtension().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Extension }
*
*
*/
public List<Extension> getExtension() {
if (extension == null) {
extension = new ArrayList<Extension>();
}
return this.extension;
}
/**
* Gets the value of the field property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getField() {
return field;
}
/**
* Sets the value of the field property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setField(String value) {
this.field = value;
}
/**
* Gets the value of the operator property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getOperator() {
return operator;
}
/**
* Sets the value of the operator property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setOperator(String value) {
this.operator = value;
}
/**
* Gets the value of the value property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getValue() {
return value;
}
/**
* Sets the value of the value property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setValue(String value) {
this.value = value;
}
}
|
0
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml/jaxbbindings/SimpleRule.java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// 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.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.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for SimpleRule element declaration.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <element name="SimpleRule">
* <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"/>
* <group ref="{http://www.dmg.org/PMML-4_1}PREDICATE"/>
* <element ref="{http://www.dmg.org/PMML-4_1}ScoreDistribution" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* <attribute name="confidence" type="{http://www.dmg.org/PMML-4_1}NUMBER" />
* <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="nbCorrect" type="{http://www.dmg.org/PMML-4_1}NUMBER" />
* <attribute name="recordCount" type="{http://www.dmg.org/PMML-4_1}NUMBER" />
* <attribute name="score" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="weight" type="{http://www.dmg.org/PMML-4_1}NUMBER" />
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"extension",
"simplePredicate",
"compoundPredicate",
"simpleSetPredicate",
"_true",
"_false",
"scoreDistribution"
})
@XmlRootElement(name = "SimpleRule")
public class SimpleRule {
@XmlElement(name = "Extension", namespace = "http://www.dmg.org/PMML-4_1", required = true)
protected List<Extension> extension;
@XmlElement(name = "SimplePredicate", namespace = "http://www.dmg.org/PMML-4_1")
protected SimplePredicate simplePredicate;
@XmlElement(name = "CompoundPredicate", namespace = "http://www.dmg.org/PMML-4_1")
protected CompoundPredicate compoundPredicate;
@XmlElement(name = "SimpleSetPredicate", namespace = "http://www.dmg.org/PMML-4_1")
protected SimpleSetPredicate simpleSetPredicate;
@XmlElement(name = "True", namespace = "http://www.dmg.org/PMML-4_1")
protected True _true;
@XmlElement(name = "False", namespace = "http://www.dmg.org/PMML-4_1")
protected False _false;
@XmlElement(name = "ScoreDistribution", namespace = "http://www.dmg.org/PMML-4_1", required = true)
protected List<ScoreDistribution> scoreDistribution;
@XmlAttribute
protected Double confidence;
@XmlAttribute
protected String id;
@XmlAttribute
protected Double nbCorrect;
@XmlAttribute
protected Double recordCount;
@XmlAttribute(required = true)
protected String score;
@XmlAttribute
protected Double weight;
/**
* Gets the value of the extension property.
*
* <p>
* 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 <CODE>set</CODE> method for the extension property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getExtension().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Extension }
*
*
*/
public List<Extension> getExtension() {
if (extension == null) {
extension = new ArrayList<Extension>();
}
return this.extension;
}
/**
* Gets the value of the simplePredicate property.
*
* @return
* possible object is
* {@link SimplePredicate }
*
*/
public SimplePredicate getSimplePredicate() {
return simplePredicate;
}
/**
* Sets the value of the simplePredicate property.
*
* @param value
* allowed object is
* {@link SimplePredicate }
*
*/
public void setSimplePredicate(SimplePredicate value) {
this.simplePredicate = value;
}
/**
* Gets the value of the compoundPredicate property.
*
* @return
* possible object is
* {@link CompoundPredicate }
*
*/
public CompoundPredicate getCompoundPredicate() {
return compoundPredicate;
}
/**
* Sets the value of the compoundPredicate property.
*
* @param value
* allowed object is
* {@link CompoundPredicate }
*
*/
public void setCompoundPredicate(CompoundPredicate value) {
this.compoundPredicate = value;
}
/**
* Gets the value of the simpleSetPredicate property.
*
* @return
* possible object is
* {@link SimpleSetPredicate }
*
*/
public SimpleSetPredicate getSimpleSetPredicate() {
return simpleSetPredicate;
}
/**
* Sets the value of the simpleSetPredicate property.
*
* @param value
* allowed object is
* {@link SimpleSetPredicate }
*
*/
public void setSimpleSetPredicate(SimpleSetPredicate value) {
this.simpleSetPredicate = value;
}
/**
* Gets the value of the true property.
*
* @return
* possible object is
* {@link True }
*
*/
public True getTrue() {
return _true;
}
/**
* Sets the value of the true property.
*
* @param value
* allowed object is
* {@link True }
*
*/
public void setTrue(True value) {
this._true = value;
}
/**
* Gets the value of the false property.
*
* @return
* possible object is
* {@link False }
*
*/
public False getFalse() {
return _false;
}
/**
* Sets the value of the false property.
*
* @param value
* allowed object is
* {@link False }
*
*/
public void setFalse(False value) {
this._false = value;
}
/**
* Gets the value of the scoreDistribution property.
*
* <p>
* 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 <CODE>set</CODE> method for the scoreDistribution property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getScoreDistribution().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link ScoreDistribution }
*
*
*/
public List<ScoreDistribution> getScoreDistribution() {
if (scoreDistribution == null) {
scoreDistribution = new ArrayList<ScoreDistribution>();
}
return this.scoreDistribution;
}
/**
* Gets the value of the confidence property.
*
* @return
* possible object is
* {@link Double }
*
*/
public Double getConfidence() {
return confidence;
}
/**
* Sets the value of the confidence property.
*
* @param value
* allowed object is
* {@link Double }
*
*/
public void setConfidence(Double value) {
this.confidence = value;
}
/**
* Gets the value of the id property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getId() {
return id;
}
/**
* Sets the value of the id property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setId(String value) {
this.id = value;
}
/**
* Gets the value of the nbCorrect property.
*
* @return
* possible object is
* {@link Double }
*
*/
public Double getNbCorrect() {
return nbCorrect;
}
/**
* Sets the value of the nbCorrect property.
*
* @param value
* allowed object is
* {@link Double }
*
*/
public void setNbCorrect(Double value) {
this.nbCorrect = value;
}
/**
* Gets the value of the recordCount property.
*
* @return
* possible object is
* {@link Double }
*
*/
public Double getRecordCount() {
return recordCount;
}
/**
* Sets the value of the recordCount property.
*
* @param value
* allowed object is
* {@link Double }
*
*/
public void setRecordCount(Double value) {
this.recordCount = value;
}
/**
* Gets the value of the score property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getScore() {
return score;
}
/**
* Sets the value of the score property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setScore(String value) {
this.score = value;
}
/**
* Gets the value of the weight property.
*
* @return
* possible object is
* {@link Double }
*
*/
public Double getWeight() {
return weight;
}
/**
* Sets the value of the weight property.
*
* @param value
* allowed object is
* {@link Double }
*
*/
public void setWeight(Double value) {
this.weight = value;
}
}
|
0
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml/jaxbbindings/SimpleSetPredicate.java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// 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.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.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for SimpleSetPredicate element declaration.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <element name="SimpleSetPredicate">
* <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}Array"/>
* </sequence>
* <attribute name="booleanOperator" use="required">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="isIn"/>
* <enumeration value="isNotIn"/>
* </restriction>
* </simpleType>
* </attribute>
* <attribute name="field" use="required" type="{http://www.dmg.org/PMML-4_1}FIELD-NAME" />
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"extension",
"array"
})
@XmlRootElement(name = "SimpleSetPredicate")
public class SimpleSetPredicate {
@XmlElement(name = "Extension", namespace = "http://www.dmg.org/PMML-4_1", required = true)
protected List<Extension> extension;
@XmlElement(name = "Array", namespace = "http://www.dmg.org/PMML-4_1", required = true)
protected ArrayType array;
@XmlAttribute(required = true)
protected String booleanOperator;
@XmlAttribute(required = true)
protected String field;
/**
* Gets the value of the extension property.
*
* <p>
* 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 <CODE>set</CODE> method for the extension property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getExtension().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Extension }
*
*
*/
public List<Extension> getExtension() {
if (extension == null) {
extension = new ArrayList<Extension>();
}
return this.extension;
}
/**
* Gets the value of the array property.
*
* @return
* possible object is
* {@link ArrayType }
*
*/
public ArrayType getArray() {
return array;
}
/**
* Sets the value of the array property.
*
* @param value
* allowed object is
* {@link ArrayType }
*
*/
public void setArray(ArrayType value) {
this.array = value;
}
/**
* Gets the value of the booleanOperator property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getBooleanOperator() {
return booleanOperator;
}
/**
* Sets the value of the booleanOperator property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setBooleanOperator(String value) {
this.booleanOperator = value;
}
/**
* Gets the value of the field property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getField() {
return field;
}
/**
* Sets the value of the field property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setField(String value) {
this.field = value;
}
}
|
0
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml/jaxbbindings/SquaredEuclidean.java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// 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.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for squaredEuclidean element declaration.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <element name="squaredEuclidean">
* <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"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"extension"
})
@XmlRootElement(name = "squaredEuclidean")
public class SquaredEuclidean {
@XmlElement(name = "Extension", namespace = "http://www.dmg.org/PMML-4_1", required = true)
protected List<Extension> extension;
/**
* Gets the value of the extension property.
*
* <p>
* 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 <CODE>set</CODE> method for the extension property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getExtension().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Extension }
*
*
*/
public List<Extension> getExtension() {
if (extension == null) {
extension = new ArrayList<Extension>();
}
return this.extension;
}
}
|
0
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml/jaxbbindings/SupportVector.java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// 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.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.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for SupportVector element declaration.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <element name="SupportVector">
* <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"/>
* </sequence>
* <attribute name="vectorId" use="required" type="{http://www.dmg.org/PMML-4_1}VECTOR-ID" />
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"extension"
})
@XmlRootElement(name = "SupportVector")
public class SupportVector {
@XmlElement(name = "Extension", namespace = "http://www.dmg.org/PMML-4_1", required = true)
protected List<Extension> extension;
@XmlAttribute(required = true)
protected String vectorId;
/**
* Gets the value of the extension property.
*
* <p>
* 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 <CODE>set</CODE> method for the extension property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getExtension().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Extension }
*
*
*/
public List<Extension> getExtension() {
if (extension == null) {
extension = new ArrayList<Extension>();
}
return this.extension;
}
/**
* Gets the value of the vectorId property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getVectorId() {
return vectorId;
}
/**
* Sets the value of the vectorId property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setVectorId(String value) {
this.vectorId = value;
}
}
|
0
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml/jaxbbindings/SupportVectorMachine.java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// 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.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.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for SupportVectorMachine element declaration.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <element name="SupportVectorMachine">
* <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}SupportVectors" minOccurs="0"/>
* <element ref="{http://www.dmg.org/PMML-4_1}Coefficients"/>
* </sequence>
* <attribute name="alternateTargetCategory" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="targetCategory" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="threshold" type="{http://www.dmg.org/PMML-4_1}REAL-NUMBER" />
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"extension",
"supportVectors",
"coefficients"
})
@XmlRootElement(name = "SupportVectorMachine")
public class SupportVectorMachine {
@XmlElement(name = "Extension", namespace = "http://www.dmg.org/PMML-4_1", required = true)
protected List<Extension> extension;
@XmlElement(name = "SupportVectors", namespace = "http://www.dmg.org/PMML-4_1")
protected SupportVectors supportVectors;
@XmlElement(name = "Coefficients", namespace = "http://www.dmg.org/PMML-4_1", required = true)
protected Coefficients coefficients;
@XmlAttribute
protected String alternateTargetCategory;
@XmlAttribute
protected String targetCategory;
@XmlAttribute
protected Double threshold;
/**
* Gets the value of the extension property.
*
* <p>
* 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 <CODE>set</CODE> method for the extension property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getExtension().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Extension }
*
*
*/
public List<Extension> getExtension() {
if (extension == null) {
extension = new ArrayList<Extension>();
}
return this.extension;
}
/**
* Gets the value of the supportVectors property.
*
* @return
* possible object is
* {@link SupportVectors }
*
*/
public SupportVectors getSupportVectors() {
return supportVectors;
}
/**
* Sets the value of the supportVectors property.
*
* @param value
* allowed object is
* {@link SupportVectors }
*
*/
public void setSupportVectors(SupportVectors value) {
this.supportVectors = value;
}
/**
* Gets the value of the coefficients property.
*
* @return
* possible object is
* {@link Coefficients }
*
*/
public Coefficients getCoefficients() {
return coefficients;
}
/**
* Sets the value of the coefficients property.
*
* @param value
* allowed object is
* {@link Coefficients }
*
*/
public void setCoefficients(Coefficients value) {
this.coefficients = value;
}
/**
* Gets the value of the alternateTargetCategory property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getAlternateTargetCategory() {
return alternateTargetCategory;
}
/**
* Sets the value of the alternateTargetCategory property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setAlternateTargetCategory(String value) {
this.alternateTargetCategory = value;
}
/**
* Gets the value of the targetCategory property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getTargetCategory() {
return targetCategory;
}
/**
* Sets the value of the targetCategory property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setTargetCategory(String value) {
this.targetCategory = value;
}
/**
* Gets the value of the threshold property.
*
* @return
* possible object is
* {@link Double }
*
*/
public Double getThreshold() {
return threshold;
}
/**
* Sets the value of the threshold property.
*
* @param value
* allowed object is
* {@link Double }
*
*/
public void setThreshold(Double value) {
this.threshold = value;
}
}
|
0
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml/jaxbbindings/SupportVectorMachineModel.java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// 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.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;
/**
* <p>Java class for SupportVectorMachineModel element declaration.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <element name="SupportVectorMachineModel">
* <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"/>
* <sequence>
* <choice>
* <element ref="{http://www.dmg.org/PMML-4_1}LinearKernelType"/>
* <element ref="{http://www.dmg.org/PMML-4_1}PolynomialKernelType"/>
* <element ref="{http://www.dmg.org/PMML-4_1}RadialBasisKernelType"/>
* <element ref="{http://www.dmg.org/PMML-4_1}SigmoidKernelType"/>
* </choice>
* </sequence>
* <element ref="{http://www.dmg.org/PMML-4_1}VectorDictionary"/>
* <element ref="{http://www.dmg.org/PMML-4_1}SupportVectorMachine" maxOccurs="unbounded"/>
* <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="classificationMethod" type="{http://www.dmg.org/PMML-4_1}SVM-CLASSIFICATION-METHOD" default="OneAgainstAll" />
* <attribute name="functionName" use="required" type="{http://www.dmg.org/PMML-4_1}MINING-FUNCTION" />
* <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="svmRepresentation" type="{http://www.dmg.org/PMML-4_1}SVM-REPRESENTATION" default="SupportVectors" />
* <attribute name="threshold" type="{http://www.dmg.org/PMML-4_1}REAL-NUMBER" default="0" />
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"content"
})
@XmlRootElement(name = "SupportVectorMachineModel")
public class SupportVectorMachineModel {
@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 = "PolynomialKernelType", namespace = "http://www.dmg.org/PMML-4_1", type = PolynomialKernelType.class),
@XmlElementRef(name = "Output", namespace = "http://www.dmg.org/PMML-4_1", type = Output.class),
@XmlElementRef(name = "SupportVectorMachine", namespace = "http://www.dmg.org/PMML-4_1", type = SupportVectorMachine.class),
@XmlElementRef(name = "LinearKernelType", namespace = "http://www.dmg.org/PMML-4_1", type = LinearKernelType.class),
@XmlElementRef(name = "SigmoidKernelType", namespace = "http://www.dmg.org/PMML-4_1", type = SigmoidKernelType.class),
@XmlElementRef(name = "LocalTransformations", namespace = "http://www.dmg.org/PMML-4_1", type = LocalTransformations.class),
@XmlElementRef(name = "VectorDictionary", namespace = "http://www.dmg.org/PMML-4_1", type = VectorDictionary.class),
@XmlElementRef(name = "Targets", namespace = "http://www.dmg.org/PMML-4_1", type = Targets.class),
@XmlElementRef(name = "RadialBasisKernelType", namespace = "http://www.dmg.org/PMML-4_1", type = RadialBasisKernelType.class),
@XmlElementRef(name = "MiningSchema", namespace = "http://www.dmg.org/PMML-4_1", type = MiningSchema.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<Object> content;
@XmlAttribute
protected String algorithmName;
@XmlAttribute
protected SVMCLASSIFICATIONMETHOD classificationMethod;
@XmlAttribute(required = true)
protected MININGFUNCTION functionName;
@XmlAttribute
protected Boolean isScorable;
@XmlAttribute
protected String modelName;
@XmlAttribute
protected SVMREPRESENTATION svmRepresentation;
@XmlAttribute
protected Double threshold;
/**
* Gets the rest of the content model.
*
* <p>
* 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 1368 of file:/home/david/workspace/weka/pmml-4-1.xsd
* line 1350 of file:/home/david/workspace/weka/pmml-4-1.xsd
* <p>
* 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.
*
* <p>
* 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 <CODE>set</CODE> method for the content property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getContent().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link ModelExplanation }
* {@link ModelStats }
* {@link PolynomialKernelType }
* {@link SupportVectorMachine }
* {@link Output }
* {@link SigmoidKernelType }
* {@link LinearKernelType }
* {@link LocalTransformations }
* {@link VectorDictionary }
* {@link Targets }
* {@link RadialBasisKernelType }
* {@link MiningSchema }
* {@link ModelVerification }
* {@link Extension }
*
*
*/
public List<Object> getContent() {
if (content == null) {
content = new ArrayList<Object>();
}
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 classificationMethod property.
*
* @return
* possible object is
* {@link SVMCLASSIFICATIONMETHOD }
*
*/
public SVMCLASSIFICATIONMETHOD getClassificationMethod() {
if (classificationMethod == null) {
return SVMCLASSIFICATIONMETHOD.ONE_AGAINST_ALL;
} else {
return classificationMethod;
}
}
/**
* Sets the value of the classificationMethod property.
*
* @param value
* allowed object is
* {@link SVMCLASSIFICATIONMETHOD }
*
*/
public void setClassificationMethod(SVMCLASSIFICATIONMETHOD value) {
this.classificationMethod = 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 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 svmRepresentation property.
*
* @return
* possible object is
* {@link SVMREPRESENTATION }
*
*/
public SVMREPRESENTATION getSvmRepresentation() {
if (svmRepresentation == null) {
return SVMREPRESENTATION.SUPPORT_VECTORS;
} else {
return svmRepresentation;
}
}
/**
* Sets the value of the svmRepresentation property.
*
* @param value
* allowed object is
* {@link SVMREPRESENTATION }
*
*/
public void setSvmRepresentation(SVMREPRESENTATION value) {
this.svmRepresentation = value;
}
/**
* Gets the value of the threshold property.
*
* @return
* possible object is
* {@link Double }
*
*/
public double getThreshold() {
if (threshold == null) {
return 0.0D;
} 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;
}
}
|
0
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml/jaxbbindings/SupportVectors.java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// 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.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for SupportVectors element declaration.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <element name="SupportVectors">
* <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}SupportVector" maxOccurs="unbounded"/>
* </sequence>
* <attribute name="numberOfAttributes" type="{http://www.dmg.org/PMML-4_1}INT-NUMBER" />
* <attribute name="numberOfSupportVectors" type="{http://www.dmg.org/PMML-4_1}INT-NUMBER" />
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"extension",
"supportVector"
})
@XmlRootElement(name = "SupportVectors")
public class SupportVectors {
@XmlElement(name = "Extension", namespace = "http://www.dmg.org/PMML-4_1", required = true)
protected List<Extension> extension;
@XmlElement(name = "SupportVector", namespace = "http://www.dmg.org/PMML-4_1", required = true)
protected List<SupportVector> supportVector;
@XmlAttribute
protected BigInteger numberOfAttributes;
@XmlAttribute
protected BigInteger numberOfSupportVectors;
/**
* Gets the value of the extension property.
*
* <p>
* 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 <CODE>set</CODE> method for the extension property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getExtension().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Extension }
*
*
*/
public List<Extension> getExtension() {
if (extension == null) {
extension = new ArrayList<Extension>();
}
return this.extension;
}
/**
* Gets the value of the supportVector property.
*
* <p>
* 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 <CODE>set</CODE> method for the supportVector property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getSupportVector().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link SupportVector }
*
*
*/
public List<SupportVector> getSupportVector() {
if (supportVector == null) {
supportVector = new ArrayList<SupportVector>();
}
return this.supportVector;
}
/**
* Gets the value of the numberOfAttributes property.
*
* @return
* possible object is
* {@link BigInteger }
*
*/
public BigInteger getNumberOfAttributes() {
return numberOfAttributes;
}
/**
* Sets the value of the numberOfAttributes property.
*
* @param value
* allowed object is
* {@link BigInteger }
*
*/
public void setNumberOfAttributes(BigInteger value) {
this.numberOfAttributes = value;
}
/**
* Gets the value of the numberOfSupportVectors property.
*
* @return
* possible object is
* {@link BigInteger }
*
*/
public BigInteger getNumberOfSupportVectors() {
return numberOfSupportVectors;
}
/**
* Sets the value of the numberOfSupportVectors property.
*
* @param value
* allowed object is
* {@link BigInteger }
*
*/
public void setNumberOfSupportVectors(BigInteger value) {
this.numberOfSupportVectors = value;
}
}
|
0
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml/jaxbbindings/TIMEANCHOR2.java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// 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 javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
/**
* <p>Java class for TIME-ANCHOR.
*
* <p>The following schema fragment specifies the expected content contained within this class.
* <p>
* <pre>
* <simpleType name="TIME-ANCHOR">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="dateTimeMillisecondsSince[0]"/>
* <enumeration value="dateTimeMillisecondsSince[1960]"/>
* <enumeration value="dateTimeMillisecondsSince[1970]"/>
* <enumeration value="dateTimeMillisecondsSince[1980]"/>
* <enumeration value="dateTimeSecondsSince[0]"/>
* <enumeration value="dateTimeSecondsSince[1960]"/>
* <enumeration value="dateTimeSecondsSince[1970]"/>
* <enumeration value="dateTimeSecondsSince[1980]"/>
* <enumeration value="dateDaysSince[0]"/>
* <enumeration value="dateDaysSince[1960]"/>
* <enumeration value="dateDaysSince[1970]"/>
* <enumeration value="dateDaysSince[1980]"/>
* <enumeration value="dateMonthsSince[0]"/>
* <enumeration value="dateMonthsSince[1960]"/>
* <enumeration value="dateMonthsSince[1970]"/>
* <enumeration value="dateMonthsSince[1980]"/>
* <enumeration value="dateYearsSince[0]"/>
* </restriction>
* </simpleType>
* </pre>
*
*/
@XmlEnum
public enum TIMEANCHOR2 {
@XmlEnumValue("dateDaysSince[0]")
DATE_DAYS_SINCE_0("dateDaysSince[0]"),
@XmlEnumValue("dateDaysSince[1960]")
DATE_DAYS_SINCE_1960("dateDaysSince[1960]"),
@XmlEnumValue("dateDaysSince[1970]")
DATE_DAYS_SINCE_1970("dateDaysSince[1970]"),
@XmlEnumValue("dateDaysSince[1980]")
DATE_DAYS_SINCE_1980("dateDaysSince[1980]"),
@XmlEnumValue("dateMonthsSince[0]")
DATE_MONTHS_SINCE_0("dateMonthsSince[0]"),
@XmlEnumValue("dateMonthsSince[1960]")
DATE_MONTHS_SINCE_1960("dateMonthsSince[1960]"),
@XmlEnumValue("dateMonthsSince[1970]")
DATE_MONTHS_SINCE_1970("dateMonthsSince[1970]"),
@XmlEnumValue("dateMonthsSince[1980]")
DATE_MONTHS_SINCE_1980("dateMonthsSince[1980]"),
@XmlEnumValue("dateTimeMillisecondsSince[0]")
DATE_TIME_MILLISECONDS_SINCE_0("dateTimeMillisecondsSince[0]"),
@XmlEnumValue("dateTimeMillisecondsSince[1960]")
DATE_TIME_MILLISECONDS_SINCE_1960("dateTimeMillisecondsSince[1960]"),
@XmlEnumValue("dateTimeMillisecondsSince[1970]")
DATE_TIME_MILLISECONDS_SINCE_1970("dateTimeMillisecondsSince[1970]"),
@XmlEnumValue("dateTimeMillisecondsSince[1980]")
DATE_TIME_MILLISECONDS_SINCE_1980("dateTimeMillisecondsSince[1980]"),
@XmlEnumValue("dateTimeSecondsSince[0]")
DATE_TIME_SECONDS_SINCE_0("dateTimeSecondsSince[0]"),
@XmlEnumValue("dateTimeSecondsSince[1960]")
DATE_TIME_SECONDS_SINCE_1960("dateTimeSecondsSince[1960]"),
@XmlEnumValue("dateTimeSecondsSince[1970]")
DATE_TIME_SECONDS_SINCE_1970("dateTimeSecondsSince[1970]"),
@XmlEnumValue("dateTimeSecondsSince[1980]")
DATE_TIME_SECONDS_SINCE_1980("dateTimeSecondsSince[1980]"),
@XmlEnumValue("dateYearsSince[0]")
DATE_YEARS_SINCE_0("dateYearsSince[0]");
private final String value;
TIMEANCHOR2(String v) {
value = v;
}
public String value() {
return value;
}
public static TIMEANCHOR2 fromValue(String v) {
for (TIMEANCHOR2 c: TIMEANCHOR2.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v.toString());
}
}
|
0
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml/jaxbbindings/TIMEEXCEPTIONTYPE.java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// 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 javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
/**
* <p>Java class for TIME-EXCEPTION-TYPE.
*
* <p>The following schema fragment specifies the expected content contained within this class.
* <p>
* <pre>
* <simpleType name="TIME-EXCEPTION-TYPE">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="exclude"/>
* <enumeration value="include"/>
* </restriction>
* </simpleType>
* </pre>
*
*/
@XmlEnum
public enum TIMEEXCEPTIONTYPE {
@XmlEnumValue("exclude")
EXCLUDE("exclude"),
@XmlEnumValue("include")
INCLUDE("include");
private final String value;
TIMEEXCEPTIONTYPE(String v) {
value = v;
}
public String value() {
return value;
}
public static TIMEEXCEPTIONTYPE fromValue(String v) {
for (TIMEEXCEPTIONTYPE c: TIMEEXCEPTIONTYPE.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v.toString());
}
}
|
0
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml/jaxbbindings/TIMESERIESALGORITHM.java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// 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 javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
/**
* <p>Java class for TIMESERIES-ALGORITHM.
*
* <p>The following schema fragment specifies the expected content contained within this class.
* <p>
* <pre>
* <simpleType name="TIMESERIES-ALGORITHM">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="ARIMA"/>
* <enumeration value="ExponentialSmoothing"/>
* <enumeration value="SeasonalTrendDecomposition"/>
* <enumeration value="SpectralAnalysis"/>
* </restriction>
* </simpleType>
* </pre>
*
*/
@XmlEnum
public enum TIMESERIESALGORITHM {
ARIMA("ARIMA"),
@XmlEnumValue("ExponentialSmoothing")
EXPONENTIAL_SMOOTHING("ExponentialSmoothing"),
@XmlEnumValue("SeasonalTrendDecomposition")
SEASONAL_TREND_DECOMPOSITION("SeasonalTrendDecomposition"),
@XmlEnumValue("SpectralAnalysis")
SPECTRAL_ANALYSIS("SpectralAnalysis");
private final String value;
TIMESERIESALGORITHM(String v) {
value = v;
}
public String value() {
return value;
}
public static TIMESERIESALGORITHM fromValue(String v) {
for (TIMESERIESALGORITHM c: TIMESERIESALGORITHM.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v.toString());
}
}
|
0
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml/jaxbbindings/TIMESERIESUSAGE.java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// 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 javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
/**
* <p>Java class for TIMESERIES-USAGE.
*
* <p>The following schema fragment specifies the expected content contained within this class.
* <p>
* <pre>
* <simpleType name="TIMESERIES-USAGE">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="original"/>
* <enumeration value="logical"/>
* <enumeration value="prediction"/>
* </restriction>
* </simpleType>
* </pre>
*
*/
@XmlEnum
public enum TIMESERIESUSAGE {
@XmlEnumValue("logical")
LOGICAL("logical"),
@XmlEnumValue("original")
ORIGINAL("original"),
@XmlEnumValue("prediction")
PREDICTION("prediction");
private final String value;
TIMESERIESUSAGE(String v) {
value = v;
}
public String value() {
return value;
}
public static TIMESERIESUSAGE fromValue(String v) {
for (TIMESERIESUSAGE c: TIMESERIESUSAGE.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v.toString());
}
}
|
0
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml/jaxbbindings/TableLocator.java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// 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.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for TableLocator element declaration.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <element name="TableLocator">
* <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"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"extension"
})
@XmlRootElement(name = "TableLocator")
public class TableLocator {
@XmlElement(name = "Extension", namespace = "http://www.dmg.org/PMML-4_1", required = true)
protected List<Extension> extension;
/**
* Gets the value of the extension property.
*
* <p>
* 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 <CODE>set</CODE> method for the extension property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getExtension().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Extension }
*
*
*/
public List<Extension> getExtension() {
if (extension == null) {
extension = new ArrayList<Extension>();
}
return this.extension;
}
}
|
0
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml/jaxbbindings/Tanimoto.java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// 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.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for tanimoto element declaration.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <element name="tanimoto">
* <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"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"extension"
})
@XmlRootElement(name = "tanimoto")
public class Tanimoto {
@XmlElement(name = "Extension", namespace = "http://www.dmg.org/PMML-4_1", required = true)
protected List<Extension> extension;
/**
* Gets the value of the extension property.
*
* <p>
* 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 <CODE>set</CODE> method for the extension property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getExtension().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Extension }
*
*
*/
public List<Extension> getExtension() {
if (extension == null) {
extension = new ArrayList<Extension>();
}
return this.extension;
}
}
|
0
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml/jaxbbindings/Target.java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// 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.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.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for Target element declaration.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <element name="Target">
* <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}TargetValue" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* <attribute name="castInteger">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="round"/>
* <enumeration value="ceiling"/>
* <enumeration value="floor"/>
* </restriction>
* </simpleType>
* </attribute>
* <attribute name="field" use="required" type="{http://www.dmg.org/PMML-4_1}FIELD-NAME" />
* <attribute name="max" type="{http://www.w3.org/2001/XMLSchema}double" />
* <attribute name="min" type="{http://www.w3.org/2001/XMLSchema}double" />
* <attribute name="optype" type="{http://www.dmg.org/PMML-4_1}OPTYPE" />
* <attribute name="rescaleConstant" type="{http://www.w3.org/2001/XMLSchema}double" default="0" />
* <attribute name="rescaleFactor" type="{http://www.w3.org/2001/XMLSchema}double" default="1" />
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"extension",
"targetValue"
})
@XmlRootElement(name = "Target")
public class Target {
@XmlElement(name = "Extension", namespace = "http://www.dmg.org/PMML-4_1", required = true)
protected List<Extension> extension;
@XmlElement(name = "TargetValue", namespace = "http://www.dmg.org/PMML-4_1", required = true)
protected List<TargetValue> targetValue;
@XmlAttribute
protected String castInteger;
@XmlAttribute(required = true)
protected String field;
@XmlAttribute
protected Double max;
@XmlAttribute
protected Double min;
@XmlAttribute
protected OPTYPE optype;
@XmlAttribute
protected Double rescaleConstant;
@XmlAttribute
protected Double rescaleFactor;
/**
* Gets the value of the extension property.
*
* <p>
* 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 <CODE>set</CODE> method for the extension property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getExtension().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Extension }
*
*
*/
public List<Extension> getExtension() {
if (extension == null) {
extension = new ArrayList<Extension>();
}
return this.extension;
}
/**
* Gets the value of the targetValue property.
*
* <p>
* 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 <CODE>set</CODE> method for the targetValue property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getTargetValue().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link TargetValue }
*
*
*/
public List<TargetValue> getTargetValue() {
if (targetValue == null) {
targetValue = new ArrayList<TargetValue>();
}
return this.targetValue;
}
/**
* Gets the value of the castInteger property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCastInteger() {
return castInteger;
}
/**
* Sets the value of the castInteger property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCastInteger(String value) {
this.castInteger = value;
}
/**
* Gets the value of the field property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getField() {
return field;
}
/**
* Sets the value of the field property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setField(String value) {
this.field = value;
}
/**
* Gets the value of the max property.
*
* @return
* possible object is
* {@link Double }
*
*/
public Double getMax() {
return max;
}
/**
* Sets the value of the max property.
*
* @param value
* allowed object is
* {@link Double }
*
*/
public void setMax(Double value) {
this.max = value;
}
/**
* Gets the value of the min property.
*
* @return
* possible object is
* {@link Double }
*
*/
public Double getMin() {
return min;
}
/**
* Sets the value of the min property.
*
* @param value
* allowed object is
* {@link Double }
*
*/
public void setMin(Double value) {
this.min = value;
}
/**
* Gets the value of the optype property.
*
* @return
* possible object is
* {@link OPTYPE }
*
*/
public OPTYPE getOptype() {
return optype;
}
/**
* Sets the value of the optype property.
*
* @param value
* allowed object is
* {@link OPTYPE }
*
*/
public void setOptype(OPTYPE value) {
this.optype = value;
}
/**
* Gets the value of the rescaleConstant property.
*
* @return
* possible object is
* {@link Double }
*
*/
public double getRescaleConstant() {
if (rescaleConstant == null) {
return 0.0D;
} else {
return rescaleConstant;
}
}
/**
* Sets the value of the rescaleConstant property.
*
* @param value
* allowed object is
* {@link Double }
*
*/
public void setRescaleConstant(Double value) {
this.rescaleConstant = value;
}
/**
* Gets the value of the rescaleFactor property.
*
* @return
* possible object is
* {@link Double }
*
*/
public double getRescaleFactor() {
if (rescaleFactor == null) {
return 1.0D;
} else {
return rescaleFactor;
}
}
/**
* Sets the value of the rescaleFactor property.
*
* @param value
* allowed object is
* {@link Double }
*
*/
public void setRescaleFactor(Double value) {
this.rescaleFactor = value;
}
}
|
0
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml/jaxbbindings/TargetValue.java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// 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.BigDecimal;
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.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for TargetValue element declaration.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <element name="TargetValue">
* <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}Partition" minOccurs="0"/>
* </sequence>
* <attribute name="defaultValue" type="{http://www.dmg.org/PMML-4_1}NUMBER" />
* <attribute name="displayValue" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="priorProbability" type="{http://www.dmg.org/PMML-4_1}PROB-NUMBER" />
* <attribute name="value" type="{http://www.w3.org/2001/XMLSchema}string" />
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"extension",
"partition"
})
@XmlRootElement(name = "TargetValue")
public class TargetValue {
@XmlElement(name = "Extension", namespace = "http://www.dmg.org/PMML-4_1", required = true)
protected List<Extension> extension;
@XmlElement(name = "Partition", namespace = "http://www.dmg.org/PMML-4_1")
protected Partition partition;
@XmlAttribute
protected Double defaultValue;
@XmlAttribute
protected String displayValue;
@XmlAttribute
protected BigDecimal priorProbability;
@XmlAttribute
protected String value;
/**
* Gets the value of the extension property.
*
* <p>
* 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 <CODE>set</CODE> method for the extension property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getExtension().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Extension }
*
*
*/
public List<Extension> getExtension() {
if (extension == null) {
extension = new ArrayList<Extension>();
}
return this.extension;
}
/**
* Gets the value of the partition property.
*
* @return
* possible object is
* {@link Partition }
*
*/
public Partition getPartition() {
return partition;
}
/**
* Sets the value of the partition property.
*
* @param value
* allowed object is
* {@link Partition }
*
*/
public void setPartition(Partition value) {
this.partition = value;
}
/**
* Gets the value of the defaultValue property.
*
* @return
* possible object is
* {@link Double }
*
*/
public Double getDefaultValue() {
return defaultValue;
}
/**
* Sets the value of the defaultValue property.
*
* @param value
* allowed object is
* {@link Double }
*
*/
public void setDefaultValue(Double value) {
this.defaultValue = value;
}
/**
* Gets the value of the displayValue property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDisplayValue() {
return displayValue;
}
/**
* Sets the value of the displayValue property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDisplayValue(String value) {
this.displayValue = value;
}
/**
* Gets the value of the priorProbability property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getPriorProbability() {
return priorProbability;
}
/**
* Sets the value of the priorProbability property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public void setPriorProbability(BigDecimal value) {
this.priorProbability = value;
}
/**
* Gets the value of the value property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getValue() {
return value;
}
/**
* Sets the value of the value property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setValue(String value) {
this.value = value;
}
}
|
0
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml/jaxbbindings/TargetValueCount.java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// 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.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.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for TargetValueCount element declaration.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <element name="TargetValueCount">
* <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"/>
* </sequence>
* <attribute name="count" use="required" type="{http://www.dmg.org/PMML-4_1}REAL-NUMBER" />
* <attribute name="value" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"extension"
})
@XmlRootElement(name = "TargetValueCount")
public class TargetValueCount {
@XmlElement(name = "Extension", namespace = "http://www.dmg.org/PMML-4_1", required = true)
protected List<Extension> extension;
@XmlAttribute(required = true)
protected double count;
@XmlAttribute(required = true)
protected String value;
/**
* Gets the value of the extension property.
*
* <p>
* 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 <CODE>set</CODE> method for the extension property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getExtension().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Extension }
*
*
*/
public List<Extension> getExtension() {
if (extension == null) {
extension = new ArrayList<Extension>();
}
return this.extension;
}
/**
* Gets the value of the count property.
*
*/
public double getCount() {
return count;
}
/**
* Sets the value of the count property.
*
*/
public void setCount(double value) {
this.count = value;
}
/**
* Gets the value of the value property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getValue() {
return value;
}
/**
* Sets the value of the value property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setValue(String value) {
this.value = value;
}
}
|
0
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml/jaxbbindings/TargetValueCounts.java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// 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.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for TargetValueCounts element declaration.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <element name="TargetValueCounts">
* <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}TargetValueCount" maxOccurs="unbounded"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"extension",
"targetValueCount"
})
@XmlRootElement(name = "TargetValueCounts")
public class TargetValueCounts {
@XmlElement(name = "Extension", namespace = "http://www.dmg.org/PMML-4_1", required = true)
protected List<Extension> extension;
@XmlElement(name = "TargetValueCount", namespace = "http://www.dmg.org/PMML-4_1", required = true)
protected List<TargetValueCount> targetValueCount;
/**
* Gets the value of the extension property.
*
* <p>
* 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 <CODE>set</CODE> method for the extension property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getExtension().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Extension }
*
*
*/
public List<Extension> getExtension() {
if (extension == null) {
extension = new ArrayList<Extension>();
}
return this.extension;
}
/**
* Gets the value of the targetValueCount property.
*
* <p>
* 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 <CODE>set</CODE> method for the targetValueCount property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getTargetValueCount().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link TargetValueCount }
*
*
*/
public List<TargetValueCount> getTargetValueCount() {
if (targetValueCount == null) {
targetValueCount = new ArrayList<TargetValueCount>();
}
return this.targetValueCount;
}
}
|
0
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml/jaxbbindings/Targets.java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// 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.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for Targets element declaration.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <element name="Targets">
* <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}Target" maxOccurs="unbounded"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"extension",
"target"
})
@XmlRootElement(name = "Targets")
public class Targets {
@XmlElement(name = "Extension", namespace = "http://www.dmg.org/PMML-4_1", required = true)
protected List<Extension> extension;
@XmlElement(name = "Target", namespace = "http://www.dmg.org/PMML-4_1", required = true)
protected List<Target> target;
/**
* Gets the value of the extension property.
*
* <p>
* 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 <CODE>set</CODE> method for the extension property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getExtension().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Extension }
*
*
*/
public List<Extension> getExtension() {
if (extension == null) {
extension = new ArrayList<Extension>();
}
return this.extension;
}
/**
* Gets the value of the target property.
*
* <p>
* 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 <CODE>set</CODE> method for the target property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getTarget().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Target }
*
*
*/
public List<Target> getTarget() {
if (target == null) {
target = new ArrayList<Target>();
}
return this.target;
}
public void addTarget(Target t) {
if (target == null) {
target = new ArrayList<Target>();
}
target.add(t);
}
}
|
0
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml/jaxbbindings/Taxonomy.java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// 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.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.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for Taxonomy element declaration.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <element name="Taxonomy">
* <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}ChildParent" maxOccurs="unbounded"/>
* </sequence>
* <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"extension",
"childParent"
})
@XmlRootElement(name = "Taxonomy")
public class Taxonomy {
@XmlElement(name = "Extension", namespace = "http://www.dmg.org/PMML-4_1", required = true)
protected List<Extension> extension;
@XmlElement(name = "ChildParent", namespace = "http://www.dmg.org/PMML-4_1", required = true)
protected List<ChildParent> childParent;
@XmlAttribute(required = true)
protected String name;
/**
* Gets the value of the extension property.
*
* <p>
* 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 <CODE>set</CODE> method for the extension property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getExtension().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Extension }
*
*
*/
public List<Extension> getExtension() {
if (extension == null) {
extension = new ArrayList<Extension>();
}
return this.extension;
}
/**
* Gets the value of the childParent property.
*
* <p>
* 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 <CODE>set</CODE> method for the childParent property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getChildParent().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link ChildParent }
*
*
*/
public List<ChildParent> getChildParent() {
if (childParent == null) {
childParent = new ArrayList<ChildParent>();
}
return this.childParent;
}
/**
* Gets the value of the name property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getName() {
return name;
}
/**
* Sets the value of the name property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setName(String value) {
this.name = value;
}
}
|
0
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml/jaxbbindings/TestDistributions.java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// 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.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for TestDistributions element declaration.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <element name="TestDistributions">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element ref="{http://www.dmg.org/PMML-4_1}Baseline"/>
* <element ref="{http://www.dmg.org/PMML-4_1}Alternate" minOccurs="0"/>
* <element ref="{http://www.dmg.org/PMML-4_1}Extension" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* <attribute name="field" use="required" type="{http://www.dmg.org/PMML-4_1}FIELD-NAME" />
* <attribute name="normalizationScheme" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="resetValue" type="{http://www.dmg.org/PMML-4_1}REAL-NUMBER" default="0.0" />
* <attribute name="testStatistic" use="required" type="{http://www.dmg.org/PMML-4_1}BASELINE-TEST-STATISTIC" />
* <attribute name="weightField" type="{http://www.dmg.org/PMML-4_1}FIELD-NAME" />
* <attribute name="windowSize" type="{http://www.dmg.org/PMML-4_1}INT-NUMBER" default="0" />
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"baseline",
"alternate",
"extension"
})
@XmlRootElement(name = "TestDistributions")
public class TestDistributions {
@XmlElement(name = "Baseline", namespace = "http://www.dmg.org/PMML-4_1", required = true)
protected Baseline baseline;
@XmlElement(name = "Alternate", namespace = "http://www.dmg.org/PMML-4_1")
protected Alternate alternate;
@XmlElement(name = "Extension", namespace = "http://www.dmg.org/PMML-4_1", required = true)
protected List<Extension> extension;
@XmlAttribute(required = true)
protected String field;
@XmlAttribute
protected String normalizationScheme;
@XmlAttribute
protected Double resetValue;
@XmlAttribute(required = true)
protected BASELINETESTSTATISTIC testStatistic;
@XmlAttribute
protected String weightField;
@XmlAttribute
protected BigInteger windowSize;
/**
* Gets the value of the baseline property.
*
* @return
* possible object is
* {@link Baseline }
*
*/
public Baseline getBaseline() {
return baseline;
}
/**
* Sets the value of the baseline property.
*
* @param value
* allowed object is
* {@link Baseline }
*
*/
public void setBaseline(Baseline value) {
this.baseline = value;
}
/**
* Gets the value of the alternate property.
*
* @return
* possible object is
* {@link Alternate }
*
*/
public Alternate getAlternate() {
return alternate;
}
/**
* Sets the value of the alternate property.
*
* @param value
* allowed object is
* {@link Alternate }
*
*/
public void setAlternate(Alternate value) {
this.alternate = value;
}
/**
* Gets the value of the extension property.
*
* <p>
* 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 <CODE>set</CODE> method for the extension property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getExtension().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Extension }
*
*
*/
public List<Extension> getExtension() {
if (extension == null) {
extension = new ArrayList<Extension>();
}
return this.extension;
}
/**
* Gets the value of the field property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getField() {
return field;
}
/**
* Sets the value of the field property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setField(String value) {
this.field = value;
}
/**
* Gets the value of the normalizationScheme property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getNormalizationScheme() {
return normalizationScheme;
}
/**
* Sets the value of the normalizationScheme property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setNormalizationScheme(String value) {
this.normalizationScheme = value;
}
/**
* Gets the value of the resetValue property.
*
* @return
* possible object is
* {@link Double }
*
*/
public double getResetValue() {
if (resetValue == null) {
return 0.0D;
} else {
return resetValue;
}
}
/**
* Sets the value of the resetValue property.
*
* @param value
* allowed object is
* {@link Double }
*
*/
public void setResetValue(Double value) {
this.resetValue = value;
}
/**
* Gets the value of the testStatistic property.
*
* @return
* possible object is
* {@link BASELINETESTSTATISTIC }
*
*/
public BASELINETESTSTATISTIC getTestStatistic() {
return testStatistic;
}
/**
* Sets the value of the testStatistic property.
*
* @param value
* allowed object is
* {@link BASELINETESTSTATISTIC }
*
*/
public void setTestStatistic(BASELINETESTSTATISTIC value) {
this.testStatistic = value;
}
/**
* Gets the value of the weightField property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getWeightField() {
return weightField;
}
/**
* Sets the value of the weightField property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setWeightField(String value) {
this.weightField = value;
}
/**
* Gets the value of the windowSize property.
*
* @return
* possible object is
* {@link BigInteger }
*
*/
public BigInteger getWindowSize() {
if (windowSize == null) {
return new BigInteger("0");
} else {
return windowSize;
}
}
/**
* Sets the value of the windowSize property.
*
* @param value
* allowed object is
* {@link BigInteger }
*
*/
public void setWindowSize(BigInteger value) {
this.windowSize = value;
}
}
|
0
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml/jaxbbindings/TextCorpus.java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// 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.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for TextCorpus element declaration.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <element name="TextCorpus">
* <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}TextDocument" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"extension",
"textDocument"
})
@XmlRootElement(name = "TextCorpus")
public class TextCorpus {
@XmlElement(name = "Extension", namespace = "http://www.dmg.org/PMML-4_1", required = true)
protected List<Extension> extension;
@XmlElement(name = "TextDocument", namespace = "http://www.dmg.org/PMML-4_1", required = true)
protected List<TextDocument> textDocument;
/**
* Gets the value of the extension property.
*
* <p>
* 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 <CODE>set</CODE> method for the extension property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getExtension().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Extension }
*
*
*/
public List<Extension> getExtension() {
if (extension == null) {
extension = new ArrayList<Extension>();
}
return this.extension;
}
/**
* Gets the value of the textDocument property.
*
* <p>
* 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 <CODE>set</CODE> method for the textDocument property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getTextDocument().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link TextDocument }
*
*
*/
public List<TextDocument> getTextDocument() {
if (textDocument == null) {
textDocument = new ArrayList<TextDocument>();
}
return this.textDocument;
}
}
|
0
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml/jaxbbindings/TextDictionary.java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// 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.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for TextDictionary element declaration.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <element name="TextDictionary">
* <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}Taxonomy" minOccurs="0"/>
* <group ref="{http://www.dmg.org/PMML-4_1}STRING-ARRAY"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"extension",
"taxonomy",
"array"
})
@XmlRootElement(name = "TextDictionary")
public class TextDictionary {
@XmlElement(name = "Extension", namespace = "http://www.dmg.org/PMML-4_1", required = true)
protected List<Extension> extension;
@XmlElement(name = "Taxonomy", namespace = "http://www.dmg.org/PMML-4_1")
protected Taxonomy taxonomy;
@XmlElement(name = "Array", namespace = "http://www.dmg.org/PMML-4_1")
protected ArrayType array;
/**
* Gets the value of the extension property.
*
* <p>
* 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 <CODE>set</CODE> method for the extension property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getExtension().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Extension }
*
*
*/
public List<Extension> getExtension() {
if (extension == null) {
extension = new ArrayList<Extension>();
}
return this.extension;
}
/**
* Gets the value of the taxonomy property.
*
* @return
* possible object is
* {@link Taxonomy }
*
*/
public Taxonomy getTaxonomy() {
return taxonomy;
}
/**
* Sets the value of the taxonomy property.
*
* @param value
* allowed object is
* {@link Taxonomy }
*
*/
public void setTaxonomy(Taxonomy value) {
this.taxonomy = value;
}
/**
* Gets the value of the array property.
*
* @return
* possible object is
* {@link ArrayType }
*
*/
public ArrayType getArray() {
return array;
}
/**
* Sets the value of the array property.
*
* @param value
* allowed object is
* {@link ArrayType }
*
*/
public void setArray(ArrayType value) {
this.array = value;
}
}
|
0
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml/jaxbbindings/TextDocument.java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// 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.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for TextDocument element declaration.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <element name="TextDocument">
* <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"/>
* </sequence>
* <attribute name="file" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="id" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="length" type="{http://www.dmg.org/PMML-4_1}INT-NUMBER" />
* <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"extension"
})
@XmlRootElement(name = "TextDocument")
public class TextDocument {
@XmlElement(name = "Extension", namespace = "http://www.dmg.org/PMML-4_1", required = true)
protected List<Extension> extension;
@XmlAttribute
protected String file;
@XmlAttribute(required = true)
protected String id;
@XmlAttribute
protected BigInteger length;
@XmlAttribute
protected String name;
/**
* Gets the value of the extension property.
*
* <p>
* 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 <CODE>set</CODE> method for the extension property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getExtension().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Extension }
*
*
*/
public List<Extension> getExtension() {
if (extension == null) {
extension = new ArrayList<Extension>();
}
return this.extension;
}
/**
* Gets the value of the file property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getFile() {
return file;
}
/**
* Sets the value of the file property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setFile(String value) {
this.file = value;
}
/**
* Gets the value of the id property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getId() {
return id;
}
/**
* Sets the value of the id property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setId(String value) {
this.id = value;
}
/**
* Gets the value of the length property.
*
* @return
* possible object is
* {@link BigInteger }
*
*/
public BigInteger getLength() {
return length;
}
/**
* Sets the value of the length property.
*
* @param value
* allowed object is
* {@link BigInteger }
*
*/
public void setLength(BigInteger value) {
this.length = value;
}
/**
* Gets the value of the name property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getName() {
return name;
}
/**
* Sets the value of the name property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setName(String value) {
this.name = value;
}
}
|
0
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml/jaxbbindings/TextModel.java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// 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;
/**
* <p>Java class for TextModel element declaration.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <element name="TextModel">
* <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}TextDictionary"/>
* <element ref="{http://www.dmg.org/PMML-4_1}TextCorpus"/>
* <element ref="{http://www.dmg.org/PMML-4_1}DocumentTermMatrix"/>
* <element ref="{http://www.dmg.org/PMML-4_1}TextModelNormalization" minOccurs="0"/>
* <element ref="{http://www.dmg.org/PMML-4_1}TextModelSimiliarity" minOccurs="0"/>
* <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="functionName" use="required" type="{http://www.dmg.org/PMML-4_1}MINING-FUNCTION" />
* <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="numberOfDocuments" use="required" type="{http://www.w3.org/2001/XMLSchema}integer" />
* <attribute name="numberOfTerms" use="required" type="{http://www.w3.org/2001/XMLSchema}integer" />
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"content"
})
@XmlRootElement(name = "TextModel")
public class TextModel {
@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 = "TextCorpus", namespace = "http://www.dmg.org/PMML-4_1", type = TextCorpus.class),
@XmlElementRef(name = "DocumentTermMatrix", namespace = "http://www.dmg.org/PMML-4_1", type = DocumentTermMatrix.class),
@XmlElementRef(name = "LocalTransformations", namespace = "http://www.dmg.org/PMML-4_1", type = LocalTransformations.class),
@XmlElementRef(name = "TextModelSimiliarity", namespace = "http://www.dmg.org/PMML-4_1", type = TextModelSimiliarity.class),
@XmlElementRef(name = "Targets", namespace = "http://www.dmg.org/PMML-4_1", type = Targets.class),
@XmlElementRef(name = "TextDictionary", namespace = "http://www.dmg.org/PMML-4_1", type = TextDictionary.class),
@XmlElementRef(name = "MiningSchema", namespace = "http://www.dmg.org/PMML-4_1", type = MiningSchema.class),
@XmlElementRef(name = "TextModelNormalization", namespace = "http://www.dmg.org/PMML-4_1", type = TextModelNormalization.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<Object> content;
@XmlAttribute
protected String algorithmName;
@XmlAttribute(required = true)
protected MININGFUNCTION functionName;
@XmlAttribute
protected Boolean isScorable;
@XmlAttribute
protected String modelName;
@XmlAttribute(required = true)
protected BigInteger numberOfDocuments;
@XmlAttribute(required = true)
protected BigInteger numberOfTerms;
/**
* Gets the rest of the content model.
*
* <p>
* 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 1527 of file:/home/david/workspace/weka/pmml-4-1.xsd
* line 1514 of file:/home/david/workspace/weka/pmml-4-1.xsd
* <p>
* 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.
*
* <p>
* 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 <CODE>set</CODE> method for the content property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getContent().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link ModelExplanation }
* {@link ModelStats }
* {@link Output }
* {@link TextCorpus }
* {@link DocumentTermMatrix }
* {@link TextModelSimiliarity }
* {@link LocalTransformations }
* {@link Targets }
* {@link TextModelNormalization }
* {@link MiningSchema }
* {@link TextDictionary }
* {@link ModelVerification }
* {@link Extension }
*
*
*/
public List<Object> getContent() {
if (content == null) {
content = new ArrayList<Object>();
}
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 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 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 numberOfDocuments property.
*
* @return
* possible object is
* {@link BigInteger }
*
*/
public BigInteger getNumberOfDocuments() {
return numberOfDocuments;
}
/**
* Sets the value of the numberOfDocuments property.
*
* @param value
* allowed object is
* {@link BigInteger }
*
*/
public void setNumberOfDocuments(BigInteger value) {
this.numberOfDocuments = value;
}
/**
* Gets the value of the numberOfTerms property.
*
* @return
* possible object is
* {@link BigInteger }
*
*/
public BigInteger getNumberOfTerms() {
return numberOfTerms;
}
/**
* Sets the value of the numberOfTerms property.
*
* @param value
* allowed object is
* {@link BigInteger }
*
*/
public void setNumberOfTerms(BigInteger value) {
this.numberOfTerms = value;
}
}
|
0
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml/jaxbbindings/TextModelNormalization.java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// 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.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.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for TextModelNormalization element declaration.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <element name="TextModelNormalization">
* <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"/>
* </sequence>
* <attribute name="documentNormalization" default="none">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="none"/>
* <enumeration value="cosine"/>
* </restriction>
* </simpleType>
* </attribute>
* <attribute name="globalTermWeights" default="inverseDocumentFrequency">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="inverseDocumentFrequency"/>
* <enumeration value="none"/>
* <enumeration value="GFIDF"/>
* <enumeration value="normal"/>
* <enumeration value="probabilisticInverse"/>
* </restriction>
* </simpleType>
* </attribute>
* <attribute name="localTermWeights" default="termFrequency">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="termFrequency"/>
* <enumeration value="binary"/>
* <enumeration value="logarithmic"/>
* <enumeration value="augmentedNormalizedTermFrequency"/>
* </restriction>
* </simpleType>
* </attribute>
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"extension"
})
@XmlRootElement(name = "TextModelNormalization")
public class TextModelNormalization {
@XmlElement(name = "Extension", namespace = "http://www.dmg.org/PMML-4_1", required = true)
protected List<Extension> extension;
@XmlAttribute
protected String documentNormalization;
@XmlAttribute
protected String globalTermWeights;
@XmlAttribute
protected String localTermWeights;
/**
* Gets the value of the extension property.
*
* <p>
* 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 <CODE>set</CODE> method for the extension property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getExtension().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Extension }
*
*
*/
public List<Extension> getExtension() {
if (extension == null) {
extension = new ArrayList<Extension>();
}
return this.extension;
}
/**
* Gets the value of the documentNormalization property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDocumentNormalization() {
if (documentNormalization == null) {
return "none";
} else {
return documentNormalization;
}
}
/**
* Sets the value of the documentNormalization property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDocumentNormalization(String value) {
this.documentNormalization = value;
}
/**
* Gets the value of the globalTermWeights property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getGlobalTermWeights() {
if (globalTermWeights == null) {
return "inverseDocumentFrequency";
} else {
return globalTermWeights;
}
}
/**
* Sets the value of the globalTermWeights property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setGlobalTermWeights(String value) {
this.globalTermWeights = value;
}
/**
* Gets the value of the localTermWeights property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getLocalTermWeights() {
if (localTermWeights == null) {
return "termFrequency";
} else {
return localTermWeights;
}
}
/**
* Sets the value of the localTermWeights property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setLocalTermWeights(String value) {
this.localTermWeights = value;
}
}
|
0
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml/jaxbbindings/TextModelSimiliarity.java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// 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.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.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for TextModelSimiliarity element declaration.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <element name="TextModelSimiliarity">
* <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"/>
* </sequence>
* <attribute name="similarityType">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="euclidean"/>
* <enumeration value="cosine"/>
* </restriction>
* </simpleType>
* </attribute>
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"extension"
})
@XmlRootElement(name = "TextModelSimiliarity")
public class TextModelSimiliarity {
@XmlElement(name = "Extension", namespace = "http://www.dmg.org/PMML-4_1", required = true)
protected List<Extension> extension;
@XmlAttribute
protected String similarityType;
/**
* Gets the value of the extension property.
*
* <p>
* 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 <CODE>set</CODE> method for the extension property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getExtension().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Extension }
*
*
*/
public List<Extension> getExtension() {
if (extension == null) {
extension = new ArrayList<Extension>();
}
return this.extension;
}
/**
* Gets the value of the similarityType property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getSimilarityType() {
return similarityType;
}
/**
* Sets the value of the similarityType property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setSimilarityType(String value) {
this.similarityType = value;
}
}
|
0
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml/jaxbbindings/Time.java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// 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.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.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for Time element declaration.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <element name="Time">
* <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"/>
* </sequence>
* <attribute name="max" type="{http://www.dmg.org/PMML-4_1}NUMBER" />
* <attribute name="mean" type="{http://www.dmg.org/PMML-4_1}NUMBER" />
* <attribute name="min" type="{http://www.dmg.org/PMML-4_1}NUMBER" />
* <attribute name="standardDeviation" type="{http://www.dmg.org/PMML-4_1}NUMBER" />
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"extension"
})
@XmlRootElement(name = "Time")
public class Time {
@XmlElement(name = "Extension", namespace = "http://www.dmg.org/PMML-4_1", required = true)
protected List<Extension> extension;
@XmlAttribute
protected Double max;
@XmlAttribute
protected Double mean;
@XmlAttribute
protected Double min;
@XmlAttribute
protected Double standardDeviation;
/**
* Gets the value of the extension property.
*
* <p>
* 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 <CODE>set</CODE> method for the extension property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getExtension().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Extension }
*
*
*/
public List<Extension> getExtension() {
if (extension == null) {
extension = new ArrayList<Extension>();
}
return this.extension;
}
/**
* Gets the value of the max property.
*
* @return
* possible object is
* {@link Double }
*
*/
public Double getMax() {
return max;
}
/**
* Sets the value of the max property.
*
* @param value
* allowed object is
* {@link Double }
*
*/
public void setMax(Double value) {
this.max = value;
}
/**
* Gets the value of the mean property.
*
* @return
* possible object is
* {@link Double }
*
*/
public Double getMean() {
return mean;
}
/**
* Sets the value of the mean property.
*
* @param value
* allowed object is
* {@link Double }
*
*/
public void setMean(Double value) {
this.mean = value;
}
/**
* Gets the value of the min property.
*
* @return
* possible object is
* {@link Double }
*
*/
public Double getMin() {
return min;
}
/**
* Sets the value of the min property.
*
* @param value
* allowed object is
* {@link Double }
*
*/
public void setMin(Double value) {
this.min = value;
}
/**
* Gets the value of the standardDeviation property.
*
* @return
* possible object is
* {@link Double }
*
*/
public Double getStandardDeviation() {
return standardDeviation;
}
/**
* Sets the value of the standardDeviation property.
*
* @param value
* allowed object is
* {@link Double }
*
*/
public void setStandardDeviation(Double value) {
this.standardDeviation = value;
}
}
|
0
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml/jaxbbindings/TimeAnchor.java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// 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.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for TimeAnchor element declaration.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <element name="TimeAnchor">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element ref="{http://www.dmg.org/PMML-4_1}TimeCycle" maxOccurs="unbounded" minOccurs="0"/>
* <element ref="{http://www.dmg.org/PMML-4_1}TimeException" maxOccurs="2" minOccurs="0"/>
* </sequence>
* <attribute name="displayName" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
* <attribute name="offset" type="{http://www.dmg.org/PMML-4_1}INT-NUMBER" />
* <attribute name="stepsize" type="{http://www.dmg.org/PMML-4_1}INT-NUMBER" />
* <attribute name="type" type="{http://www.dmg.org/PMML-4_1}TIME-ANCHOR" />
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"timeCycle",
"timeException"
})
@XmlRootElement(name = "TimeAnchor")
public class TimeAnchor {
@XmlElement(name = "TimeCycle", namespace = "http://www.dmg.org/PMML-4_1", required = true)
protected List<TimeCycle> timeCycle;
@XmlElement(name = "TimeException", namespace = "http://www.dmg.org/PMML-4_1", required = true)
protected List<TimeException> timeException;
@XmlAttribute
protected String displayName;
@XmlAttribute
protected BigInteger offset;
@XmlAttribute
protected BigInteger stepsize;
@XmlAttribute
protected TIMEANCHOR2 type;
/**
* Gets the value of the timeCycle property.
*
* <p>
* 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 <CODE>set</CODE> method for the timeCycle property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getTimeCycle().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link TimeCycle }
*
*
*/
public List<TimeCycle> getTimeCycle() {
if (timeCycle == null) {
timeCycle = new ArrayList<TimeCycle>();
}
return this.timeCycle;
}
/**
* Gets the value of the timeException property.
*
* <p>
* 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 <CODE>set</CODE> method for the timeException property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getTimeException().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link TimeException }
*
*
*/
public List<TimeException> getTimeException() {
if (timeException == null) {
timeException = new ArrayList<TimeException>();
}
return this.timeException;
}
/**
* Gets the value of the displayName property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDisplayName() {
return displayName;
}
/**
* Sets the value of the displayName property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDisplayName(String value) {
this.displayName = value;
}
/**
* Gets the value of the offset property.
*
* @return
* possible object is
* {@link BigInteger }
*
*/
public BigInteger getOffset() {
return offset;
}
/**
* Sets the value of the offset property.
*
* @param value
* allowed object is
* {@link BigInteger }
*
*/
public void setOffset(BigInteger value) {
this.offset = value;
}
/**
* Gets the value of the stepsize property.
*
* @return
* possible object is
* {@link BigInteger }
*
*/
public BigInteger getStepsize() {
return stepsize;
}
/**
* Sets the value of the stepsize property.
*
* @param value
* allowed object is
* {@link BigInteger }
*
*/
public void setStepsize(BigInteger value) {
this.stepsize = value;
}
/**
* Gets the value of the type property.
*
* @return
* possible object is
* {@link TIMEANCHOR }
*
*/
public TIMEANCHOR2 getType() {
return type;
}
/**
* Sets the value of the type property.
*
* @param value
* allowed object is
* {@link TIMEANCHOR }
*
*/
public void setType(TIMEANCHOR2 value) {
this.type = value;
}
}
|
0
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml/jaxbbindings/TimeCycle.java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// 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 javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for TimeCycle element declaration.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <element name="TimeCycle">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <group ref="{http://www.dmg.org/PMML-4_1}INT-ARRAY" minOccurs="0"/>
* </sequence>
* <attribute name="displayName" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
* <attribute name="length" type="{http://www.dmg.org/PMML-4_1}INT-NUMBER" />
* <attribute name="type" type="{http://www.dmg.org/PMML-4_1}VALID-TIME-SPEC" />
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"array"
})
@XmlRootElement(name = "TimeCycle")
public class TimeCycle {
@XmlElement(name = "Array", namespace = "http://www.dmg.org/PMML-4_1")
protected ArrayType array;
@XmlAttribute
protected String displayName;
@XmlAttribute
protected BigInteger length;
@XmlAttribute
protected VALIDTIMESPEC type;
/**
* Gets the value of the array property.
*
* @return
* possible object is
* {@link ArrayType }
*
*/
public ArrayType getArray() {
return array;
}
/**
* Sets the value of the array property.
*
* @param value
* allowed object is
* {@link ArrayType }
*
*/
public void setArray(ArrayType value) {
this.array = value;
}
/**
* Gets the value of the displayName property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDisplayName() {
return displayName;
}
/**
* Sets the value of the displayName property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDisplayName(String value) {
this.displayName = value;
}
/**
* Gets the value of the length property.
*
* @return
* possible object is
* {@link BigInteger }
*
*/
public BigInteger getLength() {
return length;
}
/**
* Sets the value of the length property.
*
* @param value
* allowed object is
* {@link BigInteger }
*
*/
public void setLength(BigInteger value) {
this.length = value;
}
/**
* Gets the value of the type property.
*
* @return
* possible object is
* {@link VALIDTIMESPEC }
*
*/
public VALIDTIMESPEC getType() {
return type;
}
/**
* Sets the value of the type property.
*
* @param value
* allowed object is
* {@link VALIDTIMESPEC }
*
*/
public void setType(VALIDTIMESPEC value) {
this.type = value;
}
}
|
0
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml/jaxbbindings/TimeException.java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// 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 javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for TimeException element declaration.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <element name="TimeException">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <group ref="{http://www.dmg.org/PMML-4_1}INT-ARRAY"/>
* </sequence>
* <attribute name="count" type="{http://www.dmg.org/PMML-4_1}INT-NUMBER" />
* <attribute name="type" type="{http://www.dmg.org/PMML-4_1}TIME-EXCEPTION-TYPE" />
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"array"
})
@XmlRootElement(name = "TimeException")
public class TimeException {
@XmlElement(name = "Array", namespace = "http://www.dmg.org/PMML-4_1")
protected ArrayType array;
@XmlAttribute
protected BigInteger count;
@XmlAttribute
protected TIMEEXCEPTIONTYPE type;
/**
* Gets the value of the array property.
*
* @return
* possible object is
* {@link ArrayType }
*
*/
public ArrayType getArray() {
return array;
}
/**
* Sets the value of the array property.
*
* @param value
* allowed object is
* {@link ArrayType }
*
*/
public void setArray(ArrayType value) {
this.array = value;
}
/**
* Gets the value of the count property.
*
* @return
* possible object is
* {@link BigInteger }
*
*/
public BigInteger getCount() {
return count;
}
/**
* Sets the value of the count property.
*
* @param value
* allowed object is
* {@link BigInteger }
*
*/
public void setCount(BigInteger value) {
this.count = value;
}
/**
* Gets the value of the type property.
*
* @return
* possible object is
* {@link TIMEEXCEPTIONTYPE }
*
*/
public TIMEEXCEPTIONTYPE getType() {
return type;
}
/**
* Sets the value of the type property.
*
* @param value
* allowed object is
* {@link TIMEEXCEPTIONTYPE }
*
*/
public void setType(TIMEEXCEPTIONTYPE value) {
this.type = value;
}
}
|
0
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml/jaxbbindings/TimeSeries.java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// 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.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.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for TimeSeries element declaration.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <element name="TimeSeries">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element ref="{http://www.dmg.org/PMML-4_1}TimeAnchor" minOccurs="0"/>
* <element ref="{http://www.dmg.org/PMML-4_1}TimeValue" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* <attribute name="endTime" type="{http://www.dmg.org/PMML-4_1}REAL-NUMBER" />
* <attribute name="interpolationMethod" type="{http://www.dmg.org/PMML-4_1}INTERPOLATION-METHOD" default="none" />
* <attribute name="startTime" type="{http://www.dmg.org/PMML-4_1}REAL-NUMBER" />
* <attribute name="usage" type="{http://www.dmg.org/PMML-4_1}TIMESERIES-USAGE" default="original" />
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"timeAnchor",
"timeValue"
})
@XmlRootElement(name = "TimeSeries")
public class TimeSeries {
@XmlElement(name = "TimeAnchor", namespace = "http://www.dmg.org/PMML-4_1")
protected TimeAnchor timeAnchor;
@XmlElement(name = "TimeValue", namespace = "http://www.dmg.org/PMML-4_1", required = true)
protected List<TimeValue> timeValue;
@XmlAttribute
protected Double endTime;
@XmlAttribute
protected INTERPOLATIONMETHOD interpolationMethod;
@XmlAttribute
protected Double startTime;
@XmlAttribute
protected TIMESERIESUSAGE usage;
/**
* Gets the value of the timeAnchor property.
*
* @return
* possible object is
* {@link TimeAnchor }
*
*/
public TimeAnchor getTimeAnchor() {
return timeAnchor;
}
/**
* Sets the value of the timeAnchor property.
*
* @param value
* allowed object is
* {@link TimeAnchor }
*
*/
public void setTimeAnchor(TimeAnchor value) {
this.timeAnchor = value;
}
/**
* Gets the value of the timeValue property.
*
* <p>
* 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 <CODE>set</CODE> method for the timeValue property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getTimeValue().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link TimeValue }
*
*
*/
public List<TimeValue> getTimeValue() {
if (timeValue == null) {
timeValue = new ArrayList<TimeValue>();
}
return this.timeValue;
}
/**
* Gets the value of the endTime property.
*
* @return
* possible object is
* {@link Double }
*
*/
public Double getEndTime() {
return endTime;
}
/**
* Sets the value of the endTime property.
*
* @param value
* allowed object is
* {@link Double }
*
*/
public void setEndTime(Double value) {
this.endTime = value;
}
/**
* Gets the value of the interpolationMethod property.
*
* @return
* possible object is
* {@link INTERPOLATIONMETHOD }
*
*/
public INTERPOLATIONMETHOD getInterpolationMethod() {
if (interpolationMethod == null) {
return INTERPOLATIONMETHOD.NONE;
} else {
return interpolationMethod;
}
}
/**
* Sets the value of the interpolationMethod property.
*
* @param value
* allowed object is
* {@link INTERPOLATIONMETHOD }
*
*/
public void setInterpolationMethod(INTERPOLATIONMETHOD value) {
this.interpolationMethod = value;
}
/**
* Gets the value of the startTime property.
*
* @return
* possible object is
* {@link Double }
*
*/
public Double getStartTime() {
return startTime;
}
/**
* Sets the value of the startTime property.
*
* @param value
* allowed object is
* {@link Double }
*
*/
public void setStartTime(Double value) {
this.startTime = value;
}
/**
* Gets the value of the usage property.
*
* @return
* possible object is
* {@link TIMESERIESUSAGE }
*
*/
public TIMESERIESUSAGE getUsage() {
if (usage == null) {
return TIMESERIESUSAGE.ORIGINAL;
} else {
return usage;
}
}
/**
* Sets the value of the usage property.
*
* @param value
* allowed object is
* {@link TIMESERIESUSAGE }
*
*/
public void setUsage(TIMESERIESUSAGE value) {
this.usage = value;
}
}
|
0
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml/jaxbbindings/TimeSeriesModel.java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// 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.util.ArrayList;
import java.util.List;
import javax.xml.bind.JAXBElement;
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;
/**
* <p>Java class for TimeSeriesModel element declaration.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <element name="TimeSeriesModel">
* <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}LocalTransformations" minOccurs="0"/>
* <element ref="{http://www.dmg.org/PMML-4_1}TimeSeries" maxOccurs="3" minOccurs="0"/>
* <element ref="{http://www.dmg.org/PMML-4_1}SpectralAnalysis" minOccurs="0"/>
* <element ref="{http://www.dmg.org/PMML-4_1}ARIMA" minOccurs="0"/>
* <element ref="{http://www.dmg.org/PMML-4_1}ExponentialSmoothing" minOccurs="0"/>
* <element ref="{http://www.dmg.org/PMML-4_1}SeasonalTrendDecomposition" minOccurs="0"/>
* <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="bestFit" use="required" type="{http://www.dmg.org/PMML-4_1}TIMESERIES-ALGORITHM" />
* <attribute name="functionName" use="required" type="{http://www.dmg.org/PMML-4_1}MINING-FUNCTION" />
* <attribute name="isScorable" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
* <attribute name="modelName" type="{http://www.w3.org/2001/XMLSchema}string" />
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"content"
})
@XmlRootElement(name = "TimeSeriesModel")
public class TimeSeriesModel {
@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 = "TimeSeries", namespace = "http://www.dmg.org/PMML-4_1", type = TimeSeries.class),
@XmlElementRef(name = "Output", namespace = "http://www.dmg.org/PMML-4_1", type = Output.class),
@XmlElementRef(name = "ExponentialSmoothing", namespace = "http://www.dmg.org/PMML-4_1", type = ExponentialSmoothing.class),
@XmlElementRef(name = "LocalTransformations", namespace = "http://www.dmg.org/PMML-4_1", type = LocalTransformations.class),
@XmlElementRef(name = "SeasonalTrendDecomposition", namespace = "http://www.dmg.org/PMML-4_1", type = JAXBElement.class),
@XmlElementRef(name = "ARIMA", namespace = "http://www.dmg.org/PMML-4_1", type = JAXBElement.class),
@XmlElementRef(name = "SpectralAnalysis", namespace = "http://www.dmg.org/PMML-4_1", type = JAXBElement.class),
@XmlElementRef(name = "MiningSchema", namespace = "http://www.dmg.org/PMML-4_1", type = MiningSchema.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<Object> content;
@XmlAttribute
protected String algorithmName;
@XmlAttribute(required = true)
protected TIMESERIESALGORITHM bestFit;
@XmlAttribute(required = true)
protected MININGFUNCTION functionName;
@XmlAttribute
protected Boolean isScorable;
@XmlAttribute
protected String modelName;
/**
* Gets the rest of the content model.
*
* <p>
* 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 1156 of file:/home/david/workspace/weka/pmml-4-1.xsd
* line 1144 of file:/home/david/workspace/weka/pmml-4-1.xsd
* <p>
* 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.
*
* <p>
* 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 <CODE>set</CODE> method for the content property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getContent().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link ModelExplanation }
* {@link TimeSeries }
* {@link ModelStats }
* {@link Output }
* {@link LocalTransformations }
* {@link ExponentialSmoothing }
* {@link JAXBElement }{@code <}{@link Object }{@code >}
* {@link JAXBElement }{@code <}{@link Object }{@code >}
* {@link JAXBElement }{@code <}{@link Object }{@code >}
* {@link MiningSchema }
* {@link ModelVerification }
* {@link Extension }
*
*
*/
public List<Object> getContent() {
if (content == null) {
content = new ArrayList<Object>();
}
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 bestFit property.
*
* @return
* possible object is
* {@link TIMESERIESALGORITHM }
*
*/
public TIMESERIESALGORITHM getBestFit() {
return bestFit;
}
/**
* Sets the value of the bestFit property.
*
* @param value
* allowed object is
* {@link TIMESERIESALGORITHM }
*
*/
public void setBestFit(TIMESERIESALGORITHM value) {
this.bestFit = 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 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;
}
}
|
0
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml/jaxbbindings/TimeValue.java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// 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 javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for TimeValue element declaration.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <element name="TimeValue">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element ref="{http://www.dmg.org/PMML-4_1}Timestamp" minOccurs="0"/>
* </sequence>
* <attribute name="index" type="{http://www.dmg.org/PMML-4_1}INT-NUMBER" />
* <attribute name="standardError" type="{http://www.dmg.org/PMML-4_1}REAL-NUMBER" />
* <attribute name="time" type="{http://www.dmg.org/PMML-4_1}NUMBER" />
* <attribute name="value" use="required" type="{http://www.dmg.org/PMML-4_1}REAL-NUMBER" />
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"timestamp"
})
@XmlRootElement(name = "TimeValue")
public class TimeValue {
@XmlElement(name = "Timestamp", namespace = "http://www.dmg.org/PMML-4_1")
protected Timestamp timestamp;
@XmlAttribute
protected BigInteger index;
@XmlAttribute
protected Double standardError;
@XmlAttribute
protected Double time;
@XmlAttribute(required = true)
protected double value;
/**
* Gets the value of the timestamp property.
*
* @return
* possible object is
* {@link Timestamp }
*
*/
public Timestamp getTimestamp() {
return timestamp;
}
/**
* Sets the value of the timestamp property.
*
* @param value
* allowed object is
* {@link Timestamp }
*
*/
public void setTimestamp(Timestamp value) {
this.timestamp = value;
}
/**
* Gets the value of the index property.
*
* @return
* possible object is
* {@link BigInteger }
*
*/
public BigInteger getIndex() {
return index;
}
/**
* Sets the value of the index property.
*
* @param value
* allowed object is
* {@link BigInteger }
*
*/
public void setIndex(BigInteger value) {
this.index = value;
}
/**
* Gets the value of the standardError property.
*
* @return
* possible object is
* {@link Double }
*
*/
public Double getStandardError() {
return standardError;
}
/**
* Sets the value of the standardError property.
*
* @param value
* allowed object is
* {@link Double }
*
*/
public void setStandardError(Double value) {
this.standardError = value;
}
/**
* Gets the value of the time property.
*
* @return
* possible object is
* {@link Double }
*
*/
public Double getTime() {
return time;
}
/**
* Sets the value of the time property.
*
* @param value
* allowed object is
* {@link Double }
*
*/
public void setTime(Double value) {
this.time = value;
}
/**
* Gets the value of the value property.
*
*/
public double getValue() {
return value;
}
/**
* Sets the value of the value property.
*
*/
public void setValue(double value) {
this.value = value;
}
}
|
0
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml/jaxbbindings/Timestamp.java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// 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.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElementRef;
import javax.xml.bind.annotation.XmlMixed;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for Timestamp element declaration.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <element name="Timestamp">
* <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"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"content"
})
@XmlRootElement(name = "Timestamp")
public class Timestamp {
@XmlElementRef(name = "Extension", namespace = "http://www.dmg.org/PMML-4_1", type = Extension.class)
@XmlMixed
protected List<Object> content;
/**
* Gets the value of the content property.
*
* <p>
* 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 <CODE>set</CODE> method for the content property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getContent().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link String }
* {@link Extension }
*
*
*/
public List<Object> getContent() {
if (content == null) {
content = new ArrayList<Object>();
}
return this.content;
}
}
|
0
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml/jaxbbindings/TrainingInstances.java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// 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.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for TrainingInstances element declaration.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <element name="TrainingInstances">
* <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}InstanceFields"/>
* <choice>
* <element ref="{http://www.dmg.org/PMML-4_1}TableLocator"/>
* <element ref="{http://www.dmg.org/PMML-4_1}InlineTable"/>
* </choice>
* </sequence>
* <attribute name="fieldCount" type="{http://www.dmg.org/PMML-4_1}INT-NUMBER" />
* <attribute name="isTransformed" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
* <attribute name="recordCount" type="{http://www.dmg.org/PMML-4_1}INT-NUMBER" />
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"extension",
"instanceFields",
"tableLocator",
"inlineTable"
})
@XmlRootElement(name = "TrainingInstances")
public class TrainingInstances {
@XmlElement(name = "Extension", namespace = "http://www.dmg.org/PMML-4_1", required = true)
protected List<Extension> extension;
@XmlElement(name = "InstanceFields", namespace = "http://www.dmg.org/PMML-4_1", required = true)
protected InstanceFields instanceFields;
@XmlElement(name = "TableLocator", namespace = "http://www.dmg.org/PMML-4_1")
protected TableLocator tableLocator;
@XmlElement(name = "InlineTable", namespace = "http://www.dmg.org/PMML-4_1")
protected InlineTable inlineTable;
@XmlAttribute
protected BigInteger fieldCount;
@XmlAttribute
protected Boolean isTransformed;
@XmlAttribute
protected BigInteger recordCount;
/**
* Gets the value of the extension property.
*
* <p>
* 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 <CODE>set</CODE> method for the extension property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getExtension().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Extension }
*
*
*/
public List<Extension> getExtension() {
if (extension == null) {
extension = new ArrayList<Extension>();
}
return this.extension;
}
/**
* Gets the value of the instanceFields property.
*
* @return
* possible object is
* {@link InstanceFields }
*
*/
public InstanceFields getInstanceFields() {
return instanceFields;
}
/**
* Sets the value of the instanceFields property.
*
* @param value
* allowed object is
* {@link InstanceFields }
*
*/
public void setInstanceFields(InstanceFields value) {
this.instanceFields = value;
}
/**
* Gets the value of the tableLocator property.
*
* @return
* possible object is
* {@link TableLocator }
*
*/
public TableLocator getTableLocator() {
return tableLocator;
}
/**
* Sets the value of the tableLocator property.
*
* @param value
* allowed object is
* {@link TableLocator }
*
*/
public void setTableLocator(TableLocator value) {
this.tableLocator = value;
}
/**
* Gets the value of the inlineTable property.
*
* @return
* possible object is
* {@link InlineTable }
*
*/
public InlineTable getInlineTable() {
return inlineTable;
}
/**
* Sets the value of the inlineTable property.
*
* @param value
* allowed object is
* {@link InlineTable }
*
*/
public void setInlineTable(InlineTable value) {
this.inlineTable = value;
}
/**
* Gets the value of the fieldCount property.
*
* @return
* possible object is
* {@link BigInteger }
*
*/
public BigInteger getFieldCount() {
return fieldCount;
}
/**
* Sets the value of the fieldCount property.
*
* @param value
* allowed object is
* {@link BigInteger }
*
*/
public void setFieldCount(BigInteger value) {
this.fieldCount = value;
}
/**
* Gets the value of the isTransformed property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public boolean isIsTransformed() {
if (isTransformed == null) {
return false;
} else {
return isTransformed;
}
}
/**
* Sets the value of the isTransformed property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setIsTransformed(Boolean value) {
this.isTransformed = value;
}
/**
* Gets the value of the recordCount property.
*
* @return
* possible object is
* {@link BigInteger }
*
*/
public BigInteger getRecordCount() {
return recordCount;
}
/**
* Sets the value of the recordCount property.
*
* @param value
* allowed object is
* {@link BigInteger }
*
*/
public void setRecordCount(BigInteger value) {
this.recordCount = value;
}
}
|
0
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml/jaxbbindings/TransformationDictionary.java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// 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.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for TransformationDictionary element declaration.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <element name="TransformationDictionary">
* <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}DefineFunction" maxOccurs="unbounded" minOccurs="0"/>
* <element ref="{http://www.dmg.org/PMML-4_1}DerivedField" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"extension",
"defineFunction",
"derivedField"
})
@XmlRootElement(name = "TransformationDictionary")
public class TransformationDictionary {
@XmlElement(name = "Extension", namespace = "http://www.dmg.org/PMML-4_1", required = true)
protected List<Extension> extension;
@XmlElement(name = "DefineFunction", namespace = "http://www.dmg.org/PMML-4_1", required = true)
protected List<DefineFunction> defineFunction;
@XmlElement(name = "DerivedField", namespace = "http://www.dmg.org/PMML-4_1", required = true)
protected List<DerivedField> derivedField;
/**
* Gets the value of the extension property.
*
* <p>
* 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 <CODE>set</CODE> method for the extension property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getExtension().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Extension }
*
*
*/
public List<Extension> getExtension() {
if (extension == null) {
extension = new ArrayList<Extension>();
}
return this.extension;
}
/**
* Gets the value of the defineFunction property.
*
* <p>
* 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 <CODE>set</CODE> method for the defineFunction property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getDefineFunction().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link DefineFunction }
*
*
*/
public List<DefineFunction> getDefineFunction() {
if (defineFunction == null) {
defineFunction = new ArrayList<DefineFunction>();
}
return this.defineFunction;
}
/**
* Gets the value of the derivedField property.
*
* <p>
* 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 <CODE>set</CODE> method for the derivedField property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getDerivedField().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link DerivedField }
*
*
*/
public List<DerivedField> getDerivedField() {
if (derivedField == null) {
derivedField = new ArrayList<DerivedField>();
}
return this.derivedField;
}
public void addDerivedField(DerivedField field) {
if (derivedField == null) {
derivedField = new ArrayList<DerivedField>();
}
this.derivedField.add(field);
}
}
|
0
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml/jaxbbindings/TreeModel.java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// 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.BigDecimal;
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;
/**
* <p>Java class for TreeModel element declaration.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <element name="TreeModel">
* <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}Node"/>
* <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="functionName" use="required" type="{http://www.dmg.org/PMML-4_1}MINING-FUNCTION" />
* <attribute name="isScorable" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
* <attribute name="missingValuePenalty" type="{http://www.dmg.org/PMML-4_1}PROB-NUMBER" default="1.0" />
* <attribute name="missingValueStrategy" type="{http://www.dmg.org/PMML-4_1}MISSING-VALUE-STRATEGY" default="none" />
* <attribute name="modelName" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="noTrueChildStrategy" type="{http://www.dmg.org/PMML-4_1}NO-TRUE-CHILD-STRATEGY" default="returnNullPrediction" />
* <attribute name="splitCharacteristic" default="multiSplit">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="binarySplit"/>
* <enumeration value="multiSplit"/>
* </restriction>
* </simpleType>
* </attribute>
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"content"
})
@XmlRootElement(name = "TreeModel")
public class TreeModel {
@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 = "Node", namespace = "http://www.dmg.org/PMML-4_1", type = Node.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 = "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<Object> content;
@XmlAttribute
protected String algorithmName;
@XmlAttribute(required = true)
protected MININGFUNCTION functionName;
@XmlAttribute
protected Boolean isScorable;
@XmlAttribute
protected BigDecimal missingValuePenalty;
@XmlAttribute
protected MISSINGVALUESTRATEGY missingValueStrategy;
@XmlAttribute
protected String modelName;
@XmlAttribute
protected NOTRUECHILDSTRATEGY noTrueChildStrategy;
@XmlAttribute
protected String splitCharacteristic;
/**
* Gets the rest of the content model.
*
* <p>
* 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 1636 of file:/home/david/workspace/weka/pmml-4-1.xsd
* line 1627 of file:/home/david/workspace/weka/pmml-4-1.xsd
* <p>
* 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.
*
* <p>
* 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 <CODE>set</CODE> method for the content property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getContent().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link ModelExplanation }
* {@link ModelStats }
* {@link Output }
* {@link Node }
* {@link LocalTransformations }
* {@link Targets }
* {@link MiningSchema }
* {@link ModelVerification }
* {@link Extension }
*
*
*/
public List<Object> getContent() {
if (content == null) {
content = new ArrayList<Object>();
}
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 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 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 missingValuePenalty property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getMissingValuePenalty() {
if (missingValuePenalty == null) {
return new BigDecimal("1.0");
} else {
return missingValuePenalty;
}
}
/**
* Sets the value of the missingValuePenalty property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public void setMissingValuePenalty(BigDecimal value) {
this.missingValuePenalty = value;
}
/**
* Gets the value of the missingValueStrategy property.
*
* @return
* possible object is
* {@link MISSINGVALUESTRATEGY }
*
*/
public MISSINGVALUESTRATEGY getMissingValueStrategy() {
if (missingValueStrategy == null) {
return MISSINGVALUESTRATEGY.NONE;
} else {
return missingValueStrategy;
}
}
/**
* Sets the value of the missingValueStrategy property.
*
* @param value
* allowed object is
* {@link MISSINGVALUESTRATEGY }
*
*/
public void setMissingValueStrategy(MISSINGVALUESTRATEGY value) {
this.missingValueStrategy = 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 noTrueChildStrategy property.
*
* @return
* possible object is
* {@link NOTRUECHILDSTRATEGY }
*
*/
public NOTRUECHILDSTRATEGY getNoTrueChildStrategy() {
if (noTrueChildStrategy == null) {
return NOTRUECHILDSTRATEGY.RETURN_NULL_PREDICTION;
} else {
return noTrueChildStrategy;
}
}
/**
* Sets the value of the noTrueChildStrategy property.
*
* @param value
* allowed object is
* {@link NOTRUECHILDSTRATEGY }
*
*/
public void setNoTrueChildStrategy(NOTRUECHILDSTRATEGY value) {
this.noTrueChildStrategy = value;
}
/**
* Gets the value of the splitCharacteristic property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getSplitCharacteristic() {
if (splitCharacteristic == null) {
return "multiSplit";
} else {
return splitCharacteristic;
}
}
/**
* Sets the value of the splitCharacteristic property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setSplitCharacteristic(String value) {
this.splitCharacteristic = value;
}
}
|
0
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml/jaxbbindings/TrendExpoSmooth.java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// 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 javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
/**
* <p>Java class for Trend_ExpoSmooth element declaration.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <element name="Trend_ExpoSmooth">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <group ref="{http://www.dmg.org/PMML-4_1}REAL-ARRAY" minOccurs="0"/>
* </sequence>
* <attribute name="gamma" type="{http://www.dmg.org/PMML-4_1}REAL-NUMBER" />
* <attribute name="phi" type="{http://www.dmg.org/PMML-4_1}REAL-NUMBER" default="1" />
* <attribute name="smoothedValue" type="{http://www.dmg.org/PMML-4_1}REAL-NUMBER" />
* <attribute name="trend" default="additive">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}NMTOKEN">
* <enumeration value="additive"/>
* <enumeration value="damped_additive"/>
* <enumeration value="multiplicative"/>
* <enumeration value="damped_multiplicative"/>
* <enumeration value="polynomial_exponential"/>
* </restriction>
* </simpleType>
* </attribute>
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"array"
})
@XmlRootElement(name = "Trend_ExpoSmooth")
public class TrendExpoSmooth {
@XmlElement(name = "Array", namespace = "http://www.dmg.org/PMML-4_1")
protected ArrayType array;
@XmlAttribute
protected Double gamma;
@XmlAttribute
protected Double phi;
@XmlAttribute
protected Double smoothedValue;
@XmlAttribute
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
protected String trend;
/**
* Gets the value of the array property.
*
* @return
* possible object is
* {@link ArrayType }
*
*/
public ArrayType getArray() {
return array;
}
/**
* Sets the value of the array property.
*
* @param value
* allowed object is
* {@link ArrayType }
*
*/
public void setArray(ArrayType value) {
this.array = value;
}
/**
* Gets the value of the gamma property.
*
* @return
* possible object is
* {@link Double }
*
*/
public Double getGamma() {
return gamma;
}
/**
* Sets the value of the gamma property.
*
* @param value
* allowed object is
* {@link Double }
*
*/
public void setGamma(Double value) {
this.gamma = value;
}
/**
* Gets the value of the phi property.
*
* @return
* possible object is
* {@link Double }
*
*/
public double getPhi() {
if (phi == null) {
return 1.0D;
} else {
return phi;
}
}
/**
* Sets the value of the phi property.
*
* @param value
* allowed object is
* {@link Double }
*
*/
public void setPhi(Double value) {
this.phi = value;
}
/**
* Gets the value of the smoothedValue property.
*
* @return
* possible object is
* {@link Double }
*
*/
public Double getSmoothedValue() {
return smoothedValue;
}
/**
* Sets the value of the smoothedValue property.
*
* @param value
* allowed object is
* {@link Double }
*
*/
public void setSmoothedValue(Double value) {
this.smoothedValue = value;
}
/**
* Gets the value of the trend property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getTrend() {
if (trend == null) {
return "additive";
} else {
return trend;
}
}
/**
* Sets the value of the trend property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setTrend(String value) {
this.trend = value;
}
}
|
0
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml/jaxbbindings/True.java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// 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.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for True element declaration.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <element name="True">
* <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"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"extension"
})
@XmlRootElement(name = "True")
public class True {
@XmlElement(name = "Extension", namespace = "http://www.dmg.org/PMML-4_1", required = true)
protected List<Extension> extension;
/**
* Gets the value of the extension property.
*
* <p>
* 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 <CODE>set</CODE> method for the extension property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getExtension().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Extension }
*
*
*/
public List<Extension> getExtension() {
if (extension == null) {
extension = new ArrayList<Extension>();
}
return this.extension;
}
}
|
0
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml/jaxbbindings/UniformDistribution.java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// 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.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.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for UniformDistribution element declaration.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <element name="UniformDistribution">
* <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"/>
* </sequence>
* <attribute name="lower" use="required" type="{http://www.dmg.org/PMML-4_1}REAL-NUMBER" />
* <attribute name="upper" use="required" type="{http://www.dmg.org/PMML-4_1}REAL-NUMBER" />
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"extension"
})
@XmlRootElement(name = "UniformDistribution")
public class UniformDistribution {
@XmlElement(name = "Extension", namespace = "http://www.dmg.org/PMML-4_1", required = true)
protected List<Extension> extension;
@XmlAttribute(required = true)
protected double lower;
@XmlAttribute(required = true)
protected double upper;
/**
* Gets the value of the extension property.
*
* <p>
* 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 <CODE>set</CODE> method for the extension property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getExtension().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Extension }
*
*
*/
public List<Extension> getExtension() {
if (extension == null) {
extension = new ArrayList<Extension>();
}
return this.extension;
}
/**
* Gets the value of the lower property.
*
*/
public double getLower() {
return lower;
}
/**
* Sets the value of the lower property.
*
*/
public void setLower(double value) {
this.lower = value;
}
/**
* Gets the value of the upper property.
*
*/
public double getUpper() {
return upper;
}
/**
* Sets the value of the upper property.
*
*/
public void setUpper(double value) {
this.upper = value;
}
}
|
0
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml/jaxbbindings/UnivariateStats.java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// 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.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.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for UnivariateStats element declaration.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <element name="UnivariateStats">
* <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}Counts" minOccurs="0"/>
* <element ref="{http://www.dmg.org/PMML-4_1}NumericInfo" minOccurs="0"/>
* <element ref="{http://www.dmg.org/PMML-4_1}DiscrStats" minOccurs="0"/>
* <element ref="{http://www.dmg.org/PMML-4_1}ContStats" minOccurs="0"/>
* <element ref="{http://www.dmg.org/PMML-4_1}Anova" minOccurs="0"/>
* </sequence>
* <attribute name="field" type="{http://www.dmg.org/PMML-4_1}FIELD-NAME" />
* <attribute name="weighted" default="0">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="0"/>
* <enumeration value="1"/>
* </restriction>
* </simpleType>
* </attribute>
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"extension",
"counts",
"numericInfo",
"discrStats",
"contStats",
"anova"
})
@XmlRootElement(name = "UnivariateStats")
public class UnivariateStats {
@XmlElement(name = "Extension", namespace = "http://www.dmg.org/PMML-4_1", required = true)
protected List<Extension> extension;
@XmlElement(name = "Counts", namespace = "http://www.dmg.org/PMML-4_1")
protected Counts counts;
@XmlElement(name = "NumericInfo", namespace = "http://www.dmg.org/PMML-4_1")
protected NumericInfo numericInfo;
@XmlElement(name = "DiscrStats", namespace = "http://www.dmg.org/PMML-4_1")
protected DiscrStats discrStats;
@XmlElement(name = "ContStats", namespace = "http://www.dmg.org/PMML-4_1")
protected ContStats contStats;
@XmlElement(name = "Anova", namespace = "http://www.dmg.org/PMML-4_1")
protected Anova anova;
@XmlAttribute
protected String field;
@XmlAttribute
protected String weighted;
/**
* Gets the value of the extension property.
*
* <p>
* 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 <CODE>set</CODE> method for the extension property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getExtension().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Extension }
*
*
*/
public List<Extension> getExtension() {
if (extension == null) {
extension = new ArrayList<Extension>();
}
return this.extension;
}
/**
* Gets the value of the counts property.
*
* @return
* possible object is
* {@link Counts }
*
*/
public Counts getCounts() {
return counts;
}
/**
* Sets the value of the counts property.
*
* @param value
* allowed object is
* {@link Counts }
*
*/
public void setCounts(Counts value) {
this.counts = value;
}
/**
* Gets the value of the numericInfo property.
*
* @return
* possible object is
* {@link NumericInfo }
*
*/
public NumericInfo getNumericInfo() {
return numericInfo;
}
/**
* Sets the value of the numericInfo property.
*
* @param value
* allowed object is
* {@link NumericInfo }
*
*/
public void setNumericInfo(NumericInfo value) {
this.numericInfo = value;
}
/**
* Gets the value of the discrStats property.
*
* @return
* possible object is
* {@link DiscrStats }
*
*/
public DiscrStats getDiscrStats() {
return discrStats;
}
/**
* Sets the value of the discrStats property.
*
* @param value
* allowed object is
* {@link DiscrStats }
*
*/
public void setDiscrStats(DiscrStats value) {
this.discrStats = value;
}
/**
* Gets the value of the contStats property.
*
* @return
* possible object is
* {@link ContStats }
*
*/
public ContStats getContStats() {
return contStats;
}
/**
* Sets the value of the contStats property.
*
* @param value
* allowed object is
* {@link ContStats }
*
*/
public void setContStats(ContStats value) {
this.contStats = value;
}
/**
* Gets the value of the anova property.
*
* @return
* possible object is
* {@link Anova }
*
*/
public Anova getAnova() {
return anova;
}
/**
* Sets the value of the anova property.
*
* @param value
* allowed object is
* {@link Anova }
*
*/
public void setAnova(Anova value) {
this.anova = value;
}
/**
* Gets the value of the field property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getField() {
return field;
}
/**
* Sets the value of the field property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setField(String value) {
this.field = value;
}
/**
* Gets the value of the weighted property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getWeighted() {
if (weighted == null) {
return "0";
} else {
return weighted;
}
}
/**
* Sets the value of the weighted property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setWeighted(String value) {
this.weighted = value;
}
}
|
0
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml/jaxbbindings/VALIDTIMESPEC.java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// 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 javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
/**
* <p>Java class for VALID-TIME-SPEC.
*
* <p>The following schema fragment specifies the expected content contained within this class.
* <p>
* <pre>
* <simpleType name="VALID-TIME-SPEC">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="includeAll"/>
* <enumeration value="includeFromTo"/>
* <enumeration value="excludeFromTo"/>
* <enumeration value="includeSet"/>
* <enumeration value="excludeSet"/>
* </restriction>
* </simpleType>
* </pre>
*
*/
@XmlEnum
public enum VALIDTIMESPEC {
@XmlEnumValue("excludeFromTo")
EXCLUDE_FROM_TO("excludeFromTo"),
@XmlEnumValue("excludeSet")
EXCLUDE_SET("excludeSet"),
@XmlEnumValue("includeAll")
INCLUDE_ALL("includeAll"),
@XmlEnumValue("includeFromTo")
INCLUDE_FROM_TO("includeFromTo"),
@XmlEnumValue("includeSet")
INCLUDE_SET("includeSet");
private final String value;
VALIDTIMESPEC(String v) {
value = v;
}
public String value() {
return value;
}
public static VALIDTIMESPEC fromValue(String v) {
for (VALIDTIMESPEC c: VALIDTIMESPEC.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v.toString());
}
}
|
0
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml/jaxbbindings/Value.java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// 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.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.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for Value element declaration.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <element name="Value">
* <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"/>
* </sequence>
* <attribute name="displayValue" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="property" default="valid">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="valid"/>
* <enumeration value="invalid"/>
* <enumeration value="missing"/>
* </restriction>
* </simpleType>
* </attribute>
* <attribute name="value" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"extension"
})
@XmlRootElement(name = "Value")
public class Value {
@XmlElement(name = "Extension", namespace = "http://www.dmg.org/PMML-4_1", required = true)
protected List<Extension> extension;
@XmlAttribute
protected String displayValue;
@XmlAttribute
protected String property;
@XmlAttribute(required = true)
protected String value;
public Value() {};
public Value(String value) {
this.value = value;
}
/**
* Gets the value of the extension property.
*
* <p>
* 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 <CODE>set</CODE> method for the extension property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getExtension().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Extension }
*
*
*/
public List<Extension> getExtension() {
if (extension == null) {
extension = new ArrayList<Extension>();
}
return this.extension;
}
/**
* Gets the value of the displayValue property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDisplayValue() {
return displayValue;
}
/**
* Sets the value of the displayValue property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDisplayValue(String value) {
this.displayValue = value;
}
/**
* Gets the value of the property property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProperty() {
if (property == null) {
return "valid";
} else {
return property;
}
}
/**
* Sets the value of the property property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProperty(String value) {
this.property = value;
}
/**
* Gets the value of the value property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getValue() {
return value;
}
/**
* Sets the value of the value property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setValue(String value) {
this.value = value;
}
}
|
0
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml/jaxbbindings/VectorDictionary.java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// 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.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for VectorDictionary element declaration.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <element name="VectorDictionary">
* <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}VectorFields"/>
* <element ref="{http://www.dmg.org/PMML-4_1}VectorInstance" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* <attribute name="numberOfVectors" type="{http://www.dmg.org/PMML-4_1}INT-NUMBER" />
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"extension",
"vectorFields",
"vectorInstance"
})
@XmlRootElement(name = "VectorDictionary")
public class VectorDictionary {
@XmlElement(name = "Extension", namespace = "http://www.dmg.org/PMML-4_1", required = true)
protected List<Extension> extension;
@XmlElement(name = "VectorFields", namespace = "http://www.dmg.org/PMML-4_1", required = true)
protected VectorFields vectorFields;
@XmlElement(name = "VectorInstance", namespace = "http://www.dmg.org/PMML-4_1", required = true)
protected List<VectorInstance> vectorInstance;
@XmlAttribute
protected BigInteger numberOfVectors;
/**
* Gets the value of the extension property.
*
* <p>
* 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 <CODE>set</CODE> method for the extension property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getExtension().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Extension }
*
*
*/
public List<Extension> getExtension() {
if (extension == null) {
extension = new ArrayList<Extension>();
}
return this.extension;
}
/**
* Gets the value of the vectorFields property.
*
* @return
* possible object is
* {@link VectorFields }
*
*/
public VectorFields getVectorFields() {
return vectorFields;
}
/**
* Sets the value of the vectorFields property.
*
* @param value
* allowed object is
* {@link VectorFields }
*
*/
public void setVectorFields(VectorFields value) {
this.vectorFields = value;
}
/**
* Gets the value of the vectorInstance property.
*
* <p>
* 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 <CODE>set</CODE> method for the vectorInstance property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getVectorInstance().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link VectorInstance }
*
*
*/
public List<VectorInstance> getVectorInstance() {
if (vectorInstance == null) {
vectorInstance = new ArrayList<VectorInstance>();
}
return this.vectorInstance;
}
/**
* Gets the value of the numberOfVectors property.
*
* @return
* possible object is
* {@link BigInteger }
*
*/
public BigInteger getNumberOfVectors() {
return numberOfVectors;
}
/**
* Sets the value of the numberOfVectors property.
*
* @param value
* allowed object is
* {@link BigInteger }
*
*/
public void setNumberOfVectors(BigInteger value) {
this.numberOfVectors = value;
}
}
|
0
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml/jaxbbindings/VectorFields.java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// 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.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for VectorFields element declaration.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <element name="VectorFields">
* <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}FieldRef" maxOccurs="unbounded"/>
* </sequence>
* <attribute name="numberOfFields" type="{http://www.dmg.org/PMML-4_1}INT-NUMBER" />
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"extension",
"fieldRef"
})
@XmlRootElement(name = "VectorFields")
public class VectorFields {
@XmlElement(name = "Extension", namespace = "http://www.dmg.org/PMML-4_1", required = true)
protected List<Extension> extension;
@XmlElement(name = "FieldRef", namespace = "http://www.dmg.org/PMML-4_1", required = true)
protected List<FieldRef> fieldRef;
@XmlAttribute
protected BigInteger numberOfFields;
/**
* Gets the value of the extension property.
*
* <p>
* 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 <CODE>set</CODE> method for the extension property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getExtension().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Extension }
*
*
*/
public List<Extension> getExtension() {
if (extension == null) {
extension = new ArrayList<Extension>();
}
return this.extension;
}
/**
* Gets the value of the fieldRef property.
*
* <p>
* 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 <CODE>set</CODE> method for the fieldRef property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getFieldRef().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link FieldRef }
*
*
*/
public List<FieldRef> getFieldRef() {
if (fieldRef == null) {
fieldRef = new ArrayList<FieldRef>();
}
return this.fieldRef;
}
/**
* Gets the value of the numberOfFields property.
*
* @return
* possible object is
* {@link BigInteger }
*
*/
public BigInteger getNumberOfFields() {
return numberOfFields;
}
/**
* Sets the value of the numberOfFields property.
*
* @param value
* allowed object is
* {@link BigInteger }
*
*/
public void setNumberOfFields(BigInteger value) {
this.numberOfFields = value;
}
}
|
0
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml/jaxbbindings/VectorInstance.java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// 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.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.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for VectorInstance element declaration.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <element name="VectorInstance">
* <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"/>
* <choice>
* <element ref="{http://www.dmg.org/PMML-4_1}REAL-SparseArray"/>
* <group ref="{http://www.dmg.org/PMML-4_1}REAL-ARRAY"/>
* </choice>
* </sequence>
* <attribute name="id" use="required" type="{http://www.dmg.org/PMML-4_1}VECTOR-ID" />
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"extension",
"realSparseArray",
"array"
})
@XmlRootElement(name = "VectorInstance")
public class VectorInstance {
@XmlElement(name = "Extension", namespace = "http://www.dmg.org/PMML-4_1", required = true)
protected List<Extension> extension;
@XmlElement(name = "REAL-SparseArray", namespace = "http://www.dmg.org/PMML-4_1")
protected REALSparseArray realSparseArray;
@XmlElement(name = "Array", namespace = "http://www.dmg.org/PMML-4_1")
protected ArrayType array;
@XmlAttribute(required = true)
protected String id;
/**
* Gets the value of the extension property.
*
* <p>
* 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 <CODE>set</CODE> method for the extension property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getExtension().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Extension }
*
*
*/
public List<Extension> getExtension() {
if (extension == null) {
extension = new ArrayList<Extension>();
}
return this.extension;
}
/**
* Gets the value of the realSparseArray property.
*
* @return
* possible object is
* {@link REALSparseArray }
*
*/
public REALSparseArray getREALSparseArray() {
return realSparseArray;
}
/**
* Sets the value of the realSparseArray property.
*
* @param value
* allowed object is
* {@link REALSparseArray }
*
*/
public void setREALSparseArray(REALSparseArray value) {
this.realSparseArray = value;
}
/**
* Gets the value of the array property.
*
* @return
* possible object is
* {@link ArrayType }
*
*/
public ArrayType getArray() {
return array;
}
/**
* Sets the value of the array property.
*
* @param value
* allowed object is
* {@link ArrayType }
*
*/
public void setArray(ArrayType value) {
this.array = value;
}
/**
* Gets the value of the id property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getId() {
return id;
}
/**
* Sets the value of the id property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setId(String value) {
this.id = value;
}
}
|
0
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml/jaxbbindings/VerificationField.java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// 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.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.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for VerificationField element declaration.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <element name="VerificationField">
* <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"/>
* </sequence>
* <attribute name="column" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="field" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="precision" type="{http://www.w3.org/2001/XMLSchema}double" default="1E-6" />
* <attribute name="zeroThreshold" type="{http://www.w3.org/2001/XMLSchema}double" default="1E-16" />
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"extension"
})
@XmlRootElement(name = "VerificationField")
public class VerificationField {
@XmlElement(name = "Extension", namespace = "http://www.dmg.org/PMML-4_1", required = true)
protected List<Extension> extension;
@XmlAttribute
protected String column;
@XmlAttribute(required = true)
protected String field;
@XmlAttribute
protected Double precision;
@XmlAttribute
protected Double zeroThreshold;
/**
* Gets the value of the extension property.
*
* <p>
* 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 <CODE>set</CODE> method for the extension property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getExtension().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Extension }
*
*
*/
public List<Extension> getExtension() {
if (extension == null) {
extension = new ArrayList<Extension>();
}
return this.extension;
}
/**
* Gets the value of the column property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getColumn() {
return column;
}
/**
* Sets the value of the column property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setColumn(String value) {
this.column = value;
}
/**
* Gets the value of the field property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getField() {
return field;
}
/**
* Sets the value of the field property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setField(String value) {
this.field = value;
}
/**
* Gets the value of the precision property.
*
* @return
* possible object is
* {@link Double }
*
*/
public double getPrecision() {
if (precision == null) {
return 1.0E-6D;
} else {
return precision;
}
}
/**
* Sets the value of the precision property.
*
* @param value
* allowed object is
* {@link Double }
*
*/
public void setPrecision(Double value) {
this.precision = value;
}
/**
* Gets the value of the zeroThreshold property.
*
* @return
* possible object is
* {@link Double }
*
*/
public double getZeroThreshold() {
if (zeroThreshold == null) {
return 1.0E-16D;
} else {
return zeroThreshold;
}
}
/**
* Sets the value of the zeroThreshold property.
*
* @param value
* allowed object is
* {@link Double }
*
*/
public void setZeroThreshold(Double value) {
this.zeroThreshold = value;
}
}
|
0
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml/jaxbbindings/VerificationFields.java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// 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.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for VerificationFields element declaration.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <element name="VerificationFields">
* <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}VerificationField" maxOccurs="unbounded"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"extension",
"verificationField"
})
@XmlRootElement(name = "VerificationFields")
public class VerificationFields {
@XmlElement(name = "Extension", namespace = "http://www.dmg.org/PMML-4_1", required = true)
protected List<Extension> extension;
@XmlElement(name = "VerificationField", namespace = "http://www.dmg.org/PMML-4_1", required = true)
protected List<VerificationField> verificationField;
/**
* Gets the value of the extension property.
*
* <p>
* 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 <CODE>set</CODE> method for the extension property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getExtension().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Extension }
*
*
*/
public List<Extension> getExtension() {
if (extension == null) {
extension = new ArrayList<Extension>();
}
return this.extension;
}
/**
* Gets the value of the verificationField property.
*
* <p>
* 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 <CODE>set</CODE> method for the verificationField property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getVerificationField().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link VerificationField }
*
*
*/
public List<VerificationField> getVerificationField() {
if (verificationField == null) {
verificationField = new ArrayList<VerificationField>();
}
return this.verificationField;
}
}
|
0
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml/jaxbbindings/XCoordinates.java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// 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.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for XCoordinates element declaration.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <element name="XCoordinates">
* <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"/>
* <group ref="{http://www.dmg.org/PMML-4_1}NUM-ARRAY"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"extension",
"array"
})
@XmlRootElement(name = "XCoordinates")
public class XCoordinates {
@XmlElement(name = "Extension", namespace = "http://www.dmg.org/PMML-4_1", required = true)
protected List<Extension> extension;
@XmlElement(name = "Array", namespace = "http://www.dmg.org/PMML-4_1")
protected ArrayType array;
/**
* Gets the value of the extension property.
*
* <p>
* 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 <CODE>set</CODE> method for the extension property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getExtension().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Extension }
*
*
*/
public List<Extension> getExtension() {
if (extension == null) {
extension = new ArrayList<Extension>();
}
return this.extension;
}
/**
* Gets the value of the array property.
*
* @return
* possible object is
* {@link ArrayType }
*
*/
public ArrayType getArray() {
return array;
}
/**
* Sets the value of the array property.
*
* @param value
* allowed object is
* {@link ArrayType }
*
*/
public void setArray(ArrayType value) {
this.array = value;
}
}
|
0
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml/jaxbbindings/YCoordinates.java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// 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.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for YCoordinates element declaration.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <element name="YCoordinates">
* <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"/>
* <group ref="{http://www.dmg.org/PMML-4_1}NUM-ARRAY"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"extension",
"array"
})
@XmlRootElement(name = "YCoordinates")
public class YCoordinates {
@XmlElement(name = "Extension", namespace = "http://www.dmg.org/PMML-4_1", required = true)
protected List<Extension> extension;
@XmlElement(name = "Array", namespace = "http://www.dmg.org/PMML-4_1")
protected ArrayType array;
/**
* Gets the value of the extension property.
*
* <p>
* 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 <CODE>set</CODE> method for the extension property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getExtension().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Extension }
*
*
*/
public List<Extension> getExtension() {
if (extension == null) {
extension = new ArrayList<Extension>();
}
return this.extension;
}
/**
* Gets the value of the array property.
*
* @return
* possible object is
* {@link ArrayType }
*
*/
public ArrayType getArray() {
return array;
}
/**
* Sets the value of the array property.
*
* @param value
* allowed object is
* {@link ArrayType }
*
*/
public void setArray(ArrayType value) {
this.array = value;
}
}
|
0
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/pmml/jaxbbindings/package-info.java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// 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
//
@javax.xml.bind.annotation.XmlSchema(namespace = "http://www.dmg.org/PMML-4_1")
package weka.core.pmml.jaxbbindings;
|
0
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/scripting/Groovy.java
|
/*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
* Groovy.java
* Copyright (C) 2009-2012 University of Waikato, Hamilton, New Zealand
*/
package weka.core.scripting;
import java.io.File;
import java.io.Serializable;
import java.lang.reflect.Constructor;
import java.lang.reflect.Method;
import weka.core.RevisionHandler;
import weka.core.RevisionUtils;
import weka.core.WekaPackageClassLoaderManager;
/**
* A helper class for <a href="http://groovy.codehaus.org/"
* target="_blank">Groovy</a>.
* <p/>
* In order to use Groovy, the jar containing all the classes must be present in
* the CLASSPATH. This jar is normally found in the <i>embeddable</i>
* sub-directory of the Groovy installation.
* <p/>
* Tested with Groovy 1.5.7.
*
* @author fracpete (fracpete at waikato dot ac dot nz)
* @version $Revision$
*/
public class Groovy implements Serializable, RevisionHandler {
/** for serialization. */
private static final long serialVersionUID = -2628766602043134673L;
/** the classname of the Groovy classloader. */
public final static String CLASS_GROOVYCLASSLOADER = "groovy.lang.GroovyClassLoader";
/** whether the Groovy classes are in the Classpath. */
protected static boolean m_Present = false;
static {
try {
// Class.forName(CLASS_GROOVYCLASSLOADER);
WekaPackageClassLoaderManager.forName(CLASS_GROOVYCLASSLOADER);
m_Present = true;
} catch (Exception e) {
m_Present = false;
}
}
/** the classloader. */
protected Object m_ClassLoader;
/**
* default constructor, tries to instantiate a Groovy classloader.
*/
public Groovy() {
m_ClassLoader = newClassLoader();
}
/**
* returns the currently used Groovy classloader.
*
* @return the classloader, can be null
*/
public Object getClassLoader() {
return m_ClassLoader;
}
/**
* executes the specified method on the current interpreter and returns the
* result, if any.
*
* @param methodName the name of the method
* @param paramClasses the classes of the parameters
* @param paramValues the values of the parameters
* @return the return value of the method, if any (in that case null)
*/
public Object invoke(String methodName, Class<?>[] paramClasses,
Object[] paramValues) {
Object result;
result = null;
if (getClassLoader() != null) {
result = invoke(getClassLoader(), methodName, paramClasses, paramValues);
}
return result;
}
/**
* returns whether the Groovy classes are present or not, i.e. whether the
* classes are in the classpath or not
*
* @return whether the Groovy classes are available
*/
public static boolean isPresent() {
return m_Present;
}
/**
* initializes and returns a Groovy Interpreter.
*
* @return the interpreter or null if Groovy classes not present
*/
public static Object newClassLoader() {
Object result;
Class<?> cls;
Constructor<?> constr;
result = null;
if (isPresent()) {
try {
// cls = Class.forName(CLASS_GROOVYCLASSLOADER);
cls = WekaPackageClassLoaderManager.forName(CLASS_GROOVYCLASSLOADER);
constr = cls.getConstructor(new Class[] { ClassLoader.class });
//result = constr.newInstance(Groovy.class.getClassLoader());
result = constr.newInstance(cls.getClassLoader());
} catch (Exception e) {
e.printStackTrace();
result = null;
}
}
return result;
}
/**
* loads the module and returns a new instance of it as instance of the
* provided Java class template.
*
* @param file the Groovy module file
* @param template the template for the returned Java object
* @return the Groovy object
*/
public static Object newInstance(File file, Class<?> template) {
Object result;
Object interpreter;
Class<?> cls;
result = null;
if (!isPresent()) {
return result;
}
interpreter = newClassLoader();
if (interpreter == null) {
return result;
}
try {
cls = (Class<?>) invoke(interpreter, "parseClass",
new Class[] { File.class }, new Object[] { file });
result = cls.newInstance();
} catch (Exception e) {
e.printStackTrace();
}
return result;
}
/**
* executes the specified method and returns the result, if any.
*
* @param o the object the method should be called from, e.g., a Groovy
* Interpreter
* @param methodName the name of the method
* @param paramClasses the classes of the parameters
* @param paramValues the values of the parameters
* @return the return value of the method, if any (in that case null)
*/
public static Object invoke(Object o, String methodName,
Class<?>[] paramClasses, Object[] paramValues) {
Method m;
Object result;
result = null;
try {
m = o.getClass().getMethod(methodName, paramClasses);
result = m.invoke(o, paramValues);
} catch (Exception e) {
e.printStackTrace();
result = null;
}
return result;
}
/**
* Returns the revision string.
*
* @return the revision
*/
@Override
public String getRevision() {
return RevisionUtils.extract("$Revision$");
}
/**
* If no arguments are given, it just prints the presence of the Groovy
* classes, otherwise it expects a Groovy filename to execute.
*
* @param args commandline arguments
*/
public static void main(String[] args) {
if (args.length == 0) {
System.out.println("Groovy present: " + isPresent());
} else {
Groovy groovy = new Groovy();
if (groovy.getClassLoader() == null) {
System.err.println("Cannot instantiate Groovy ClassLoader!");
} else {
Object groovyObject = Groovy.newInstance(new File(args[0]),
Object.class);
Groovy.invoke(groovyObject, "run", new Class[] {}, new Object[] {});
}
}
}
}
|
0
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/scripting/Jython.java
|
/*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
* Jython.java
* Copyright (C) 2007-2012 University of Waikato, Hamilton, New Zealand
*/
package weka.core.scripting;
import java.io.File;
import java.io.InputStream;
import java.io.Serializable;
import java.lang.reflect.Constructor;
import java.lang.reflect.Method;
import java.util.HashSet;
import weka.core.RevisionHandler;
import weka.core.RevisionUtils;
/**
* A helper class for <a href="http://www.jython.org/"
* target="_blank">Jython</a>.
*
* @author fracpete (fracpete at waikato dot ac dot nz)
* @version $Revision$
*/
public class Jython implements Serializable, RevisionHandler {
/** for serialization */
private static final long serialVersionUID = -6972298704460209252L;
/** the classname of the Python interpreter */
public final static String CLASS_PYTHONINERPRETER = "org.python.util.PythonInterpreter";
/** the classname of the Python ObjectInputStream */
public final static String CLASS_PYTHONOBJECTINPUTSTREAM = "org.python.util.PythonObjectInputStream";
/** whether the Jython classes are in the Classpath */
protected static boolean m_Present = false;
static {
try {
Class.forName(CLASS_PYTHONINERPRETER);
m_Present = true;
} catch (Exception e) {
m_Present = false;
}
}
/** the interpreter */
protected Object m_Interpreter;
/**
* default constructor, tries to instantiate a Python Interpreter
*/
public Jython() {
m_Interpreter = newInterpreter();
}
/**
* returns the currently used Python Interpreter
*
* @return the interpreter, can be null
*/
public Object getInterpreter() {
return m_Interpreter;
}
/**
* executes the specified method on the current interpreter and returns the
* result, if any.
*
* @param methodName the name of the method
* @param paramClasses the classes of the parameters
* @param paramValues the values of the parameters
* @return the return value of the method, if any (in that case null)
*/
public Object invoke(String methodName, Class<?>[] paramClasses,
Object[] paramValues) {
Object result;
result = null;
if (getInterpreter() != null) {
result = invoke(getInterpreter(), methodName, paramClasses, paramValues);
}
return result;
}
/**
* returns whether the Jython classes are present or not, i.e. whether the
* classes are in the classpath or not
*
* @return whether the Jython classes are available
*/
public static boolean isPresent() {
return m_Present;
}
/**
* initializes and returns a Python Interpreter
*
* @return the interpreter or null if Jython classes not present
*/
public static Object newInterpreter() {
Object result;
result = null;
if (isPresent()) {
try {
result = Class.forName(CLASS_PYTHONINERPRETER).newInstance();
} catch (Exception e) {
e.printStackTrace();
result = null;
}
}
return result;
}
/**
* loads the module and returns a new instance of it as instance of the
* provided Java class template.
*
* @param file the Jython module file
* @param template the template for the returned Java object
* @return the Jython object
*/
public static Object newInstance(File file, Class<?> template) {
return newInstance(file, template, new File[0]);
}
/**
* loads the module and returns a new instance of it as instance of the
* provided Java class template. The paths are added to 'sys.path' - can be
* used if the module depends on other Jython modules.
*
* @param file the Jython module file
* @param template the template for the returned Java object
* @param paths additional paths to add to "sys.path"
* @return the Jython object
*/
public static Object newInstance(File file, Class<?> template, File[] paths) {
Object result;
String tempName;
String instanceName;
String javaClassName;
String objectDef;
int i;
String[] tmpPaths;
HashSet<String> currentPaths;
String filename;
Object interpreter;
result = null;
if (!isPresent()) {
return result;
}
interpreter = newInterpreter();
if (interpreter == null) {
return result;
}
// add paths to sys.path
if (paths.length > 0) {
invoke(interpreter, "exec", new Class[] { String.class },
new Object[] { "import sys" });
// determine currently set paths
instanceName = "syspath";
invoke(interpreter, "exec", new Class[] { String.class },
new Object[] { instanceName + " = sys.path" });
currentPaths = new HashSet<String>();
try {
tmpPaths = (String[]) invoke(interpreter, "get", new Class[] {
String.class, Class.class }, new Object[] { instanceName,
String[].class });
for (i = 0; i < tmpPaths.length; i++) {
currentPaths.add(tmpPaths[i]);
}
} catch (Exception ex) {
ex.printStackTrace();
}
// add only new paths
for (i = 0; i < paths.length; i++) {
if (!currentPaths.contains(paths[i].getAbsolutePath())) {
invoke(interpreter, "exec", new Class[] { String.class },
new Object[] { "sys.path.append('" + paths[i].getAbsolutePath()
+ "')" });
}
}
}
// get object
filename = file.getAbsolutePath();
invoke(interpreter, "execfile", new Class[] { String.class },
new Object[] { filename });
tempName = filename.substring(filename.lastIndexOf("/") + 1);
tempName = tempName.substring(0, tempName.indexOf("."));
instanceName = tempName.toLowerCase();
javaClassName = tempName.substring(0, 1).toUpperCase()
+ tempName.substring(1);
objectDef = "=" + javaClassName + "()";
invoke(interpreter, "exec", new Class[] { String.class },
new Object[] { instanceName + objectDef });
try {
result = invoke(interpreter, "get", new Class[] { String.class,
Class.class }, new Object[] { instanceName, template });
} catch (Exception ex) {
ex.printStackTrace();
}
return result;
}
/**
* executes the specified method and returns the result, if any
*
* @param o the object the method should be called from, e.g., a Python
* Interpreter
* @param methodName the name of the method
* @param paramClasses the classes of the parameters
* @param paramValues the values of the parameters
* @return the return value of the method, if any (in that case null)
*/
public static Object invoke(Object o, String methodName,
Class<?>[] paramClasses, Object[] paramValues) {
Method m;
Object result;
result = null;
try {
m = o.getClass().getMethod(methodName, paramClasses);
result = m.invoke(o, paramValues);
} catch (Exception e) {
e.printStackTrace();
result = null;
}
return result;
}
/**
* deserializes the Python Object from the stream
*
* @param in the stream to use
* @return the deserialized object
*/
public static Object deserialize(InputStream in) {
Class<?> cls;
Class<?>[] paramTypes;
Constructor<?> constr;
Object[] arglist;
Object obj;
Object result;
result = null;
try {
cls = Class.forName(CLASS_PYTHONOBJECTINPUTSTREAM);
paramTypes = new Class[] { InputStream.class };
constr = cls.getConstructor(paramTypes);
arglist = new Object[] { in };
obj = constr.newInstance(arglist);
result = invoke(obj, "readObject", new Class[] {}, new Object[] {});
} catch (Exception e) {
e.printStackTrace();
}
return result;
}
/**
* Returns the revision string.
*
* @return the revision
*/
@Override
public String getRevision() {
return RevisionUtils.extract("$Revision$");
}
/**
* If no arguments are given, it just prints the presence of the Jython
* classes, otherwise it expects a Jython filename to execute.
*
* @param args commandline arguments
*/
public static void main(String[] args) {
if (args.length == 0) {
System.out.println("Jython present: " + isPresent());
} else {
Jython jython = new Jython();
if (jython.getInterpreter() == null) {
System.err.println("Cannot instantiate Python Interpreter!");
} else {
jython.invoke("execfile", new Class[] { String.class },
new Object[] { args[0] });
}
}
}
}
|
0
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/scripting/JythonObject.java
|
/*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
* JythonObject.java
* Copyright (C) 2007-2012 University of Waikato, Hamilton, New Zealand
*/
package weka.core.scripting;
/**
* An indicator interface for Jython objects.
*
* @author fracpete (fracpete at waikato dot ac dot nz)
* @version $Revision$
*/
public interface JythonObject {
}
|
0
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/scripting/JythonSerializableObject.java
|
/*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
* JythonSerializableObject.java
* Copyright (C) 2007-2012 University of Waikato, Hamilton, New Zealand
*/
package weka.core.scripting;
import java.io.Serializable;
/**
* An indicator interface for serializable Jython objects.
*
* @author fracpete (fracpete at waikato dot ac dot nz)
* @version $Revision$
*/
public interface JythonSerializableObject extends Serializable, JythonObject {
}
|
0
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/stemmers/IteratedLovinsStemmer.java
|
/*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
* IteratedLovinsStemmer.java
* Copyright (C) 2001-2012 University of Waikato, Hamilton, New Zealand
*
*/
package weka.core.stemmers;
import weka.core.RevisionUtils;
/**
<!-- globalinfo-start -->
* An iterated version of the Lovins stemmer. It stems the word (in case it's longer than 2 characters) until it no further changes.<br/>
* <br/>
* For more information about the Lovins stemmer see:<br/>
* <br/>
* Julie Beth Lovins (1968). Development of a stemming algorithm. Mechanical Translation and Computational Linguistics. 11:22-31.
* <p/>
<!-- globalinfo-end -->
*
<!-- technical-bibtex-start -->
* BibTeX:
* <pre>
* @article{Lovins1968,
* author = {Julie Beth Lovins},
* journal = {Mechanical Translation and Computational Linguistics},
* pages = {22-31},
* title = {Development of a stemming algorithm},
* volume = {11},
* year = {1968}
* }
* </pre>
* <p/>
<!-- technical-bibtex-end -->
*
* @author Eibe Frank (eibe at cs dot waikato dot ac dot nz)
* @version $Revision$
* @see LovinsStemmer
*/
public class IteratedLovinsStemmer
extends LovinsStemmer {
/** for serialization */
static final long serialVersionUID = 960689687163788264L;
/**
* Returns a string describing the stemmer
* @return a description suitable for
* displaying in the explorer/experimenter gui
*/
public String globalInfo() {
return
"An iterated version of the Lovins stemmer. It stems the word (in "
+ "case it's longer than 2 characters) until it no further changes.\n\n"
+ "For more information about the Lovins stemmer see:\n\n"
+ getTechnicalInformation().toString();
}
/**
* Iterated stemming of the given word.
* Word is converted to lower case.
*
* @param str the word to stem
* @return the stemmed word
*/
public String stem(String str) {
if (str.length() <= 2) {
return str;
}
String stemmed = super.stem(str);
while (!stemmed.equals(str)) {
str = stemmed;
stemmed = super.stem(stemmed);
}
return stemmed;
}
/**
* Returns the revision string.
*
* @return the revision
*/
public String getRevision() {
return RevisionUtils.extract("$Revision$");
}
/**
* Runs the stemmer with the given options
*
* @param args the options
*/
public static void main(String[] args) {
try {
Stemming.useStemmer(new IteratedLovinsStemmer(), args);
}
catch (Exception e) {
e.printStackTrace();
}
}
}
|
0
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/stemmers/LovinsStemmer.java
|
/*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
* LovinsStemmer.java
* Copyright (C) 2001-2012 University of Waikato, Hamilton, New Zealand
*
*/
package weka.core.stemmers;
import java.util.HashMap;
import weka.core.RevisionUtils;
import weka.core.TechnicalInformation;
import weka.core.TechnicalInformation.Field;
import weka.core.TechnicalInformation.Type;
import weka.core.TechnicalInformationHandler;
/**
<!-- globalinfo-start -->
* A stemmer based on the Lovins stemmer, described here:<br/>
* <br/>
* Julie Beth Lovins (1968). Development of a stemming algorithm. Mechanical Translation and Computational Linguistics. 11:22-31.
* <p/>
<!-- globalinfo-end -->
*
<!-- technical-bibtex-start -->
* BibTeX:
* <pre>
* @article{Lovins1968,
* author = {Julie Beth Lovins},
* journal = {Mechanical Translation and Computational Linguistics},
* pages = {22-31},
* title = {Development of a stemming algorithm},
* volume = {11},
* year = {1968}
* }
* </pre>
* <p/>
<!-- technical-bibtex-end -->
*
* @author Eibe Frank (eibe at cs dot waikato dot ac dot nz)
* @version $Revision$
*/
public class LovinsStemmer
implements Stemmer, TechnicalInformationHandler {
/** for serialization */
static final long serialVersionUID = -6113024782588197L;
/** Enters C version compatibility mode if set to true (emulates
features of the original C implementation that are inconsistent
with the algorithm as described in Lovins's paper) */
private static boolean m_CompMode = false;
/** The hash tables containing the list of endings. */
private static HashMap<String,String> m_l11 = null;
private static HashMap<String,String> m_l10 = null;
private static HashMap<String,String> m_l9 = null;
private static HashMap<String,String> m_l8 = null;
private static HashMap<String,String> m_l7 = null;
private static HashMap<String,String> m_l6 = null;
private static HashMap<String,String> m_l5 = null;
private static HashMap<String,String> m_l4 = null;
private static HashMap<String,String> m_l3 = null;
private static HashMap<String,String> m_l2 = null;
private static HashMap<String,String> m_l1 = null;
static {
m_l11 = new HashMap<String,String>();
m_l11.put("alistically", "B");
m_l11.put("arizability", "A");
m_l11.put("izationally", "B");
m_l10 = new HashMap<String,String>();
m_l10.put("antialness", "A");
m_l10.put("arisations", "A");
m_l10.put("arizations", "A");
m_l10.put("entialness", "A");
m_l9 = new HashMap<String,String>();
m_l9.put("allically", "C");
m_l9.put("antaneous", "A");
m_l9.put("antiality", "A");
m_l9.put("arisation", "A");
m_l9.put("arization", "A");
m_l9.put("ationally", "B");
m_l9.put("ativeness", "A");
m_l9.put("eableness", "E");
m_l9.put("entations", "A");
m_l9.put("entiality", "A");
m_l9.put("entialize", "A");
m_l9.put("entiation", "A");
m_l9.put("ionalness", "A");
m_l9.put("istically", "A");
m_l9.put("itousness", "A");
m_l9.put("izability", "A");
m_l9.put("izational", "A");
m_l8 = new HashMap<String,String>();
m_l8.put("ableness", "A");
m_l8.put("arizable", "A");
m_l8.put("entation", "A");
m_l8.put("entially", "A");
m_l8.put("eousness", "A");
m_l8.put("ibleness", "A");
m_l8.put("icalness", "A");
m_l8.put("ionalism", "A");
m_l8.put("ionality", "A");
m_l8.put("ionalize", "A");
m_l8.put("iousness", "A");
m_l8.put("izations", "A");
m_l8.put("lessness", "A");
m_l7 = new HashMap<String,String>();
m_l7.put("ability", "A");
m_l7.put("aically", "A");
m_l7.put("alistic", "B");
m_l7.put("alities", "A");
m_l7.put("ariness", "E");
m_l7.put("aristic", "A");
m_l7.put("arizing", "A");
m_l7.put("ateness", "A");
m_l7.put("atingly", "A");
m_l7.put("ational", "B");
m_l7.put("atively", "A");
m_l7.put("ativism", "A");
m_l7.put("elihood", "E");
m_l7.put("encible", "A");
m_l7.put("entally", "A");
m_l7.put("entials", "A");
m_l7.put("entiate", "A");
m_l7.put("entness", "A");
m_l7.put("fulness", "A");
m_l7.put("ibility", "A");
m_l7.put("icalism", "A");
m_l7.put("icalist", "A");
m_l7.put("icality", "A");
m_l7.put("icalize", "A");
m_l7.put("ication", "G");
m_l7.put("icianry", "A");
m_l7.put("ination", "A");
m_l7.put("ingness", "A");
m_l7.put("ionally", "A");
m_l7.put("isation", "A");
m_l7.put("ishness", "A");
m_l7.put("istical", "A");
m_l7.put("iteness", "A");
m_l7.put("iveness", "A");
m_l7.put("ivistic", "A");
m_l7.put("ivities", "A");
m_l7.put("ization", "F");
m_l7.put("izement", "A");
m_l7.put("oidally", "A");
m_l7.put("ousness", "A");
m_l6 = new HashMap<String,String>();
m_l6.put("aceous", "A");
m_l6.put("acious", "B");
m_l6.put("action", "G");
m_l6.put("alness", "A");
m_l6.put("ancial", "A");
m_l6.put("ancies", "A");
m_l6.put("ancing", "B");
m_l6.put("ariser", "A");
m_l6.put("arized", "A");
m_l6.put("arizer", "A");
m_l6.put("atable", "A");
m_l6.put("ations", "B");
m_l6.put("atives", "A");
m_l6.put("eature", "Z");
m_l6.put("efully", "A");
m_l6.put("encies", "A");
m_l6.put("encing", "A");
m_l6.put("ential", "A");
m_l6.put("enting", "C");
m_l6.put("entist", "A");
m_l6.put("eously", "A");
m_l6.put("ialist", "A");
m_l6.put("iality", "A");
m_l6.put("ialize", "A");
m_l6.put("ically", "A");
m_l6.put("icance", "A");
m_l6.put("icians", "A");
m_l6.put("icists", "A");
m_l6.put("ifully", "A");
m_l6.put("ionals", "A");
m_l6.put("ionate", "D");
m_l6.put("ioning", "A");
m_l6.put("ionist", "A");
m_l6.put("iously", "A");
m_l6.put("istics", "A");
m_l6.put("izable", "E");
m_l6.put("lessly", "A");
m_l6.put("nesses", "A");
m_l6.put("oidism", "A");
m_l5 = new HashMap<String,String>();
m_l5.put("acies", "A");
m_l5.put("acity", "A");
m_l5.put("aging", "B");
m_l5.put("aical", "A");
if (!m_CompMode) {
m_l5.put("alist", "A");
}
m_l5.put("alism", "B");
m_l5.put("ality", "A");
m_l5.put("alize", "A");
m_l5.put("allic", "b");
m_l5.put("anced", "B");
m_l5.put("ances", "B");
m_l5.put("antic", "C");
m_l5.put("arial", "A");
m_l5.put("aries", "A");
m_l5.put("arily", "A");
m_l5.put("arity", "B");
m_l5.put("arize", "A");
m_l5.put("aroid", "A");
m_l5.put("ately", "A");
m_l5.put("ating", "I");
m_l5.put("ation", "B");
m_l5.put("ative", "A");
m_l5.put("ators", "A");
m_l5.put("atory", "A");
m_l5.put("ature", "E");
m_l5.put("early", "Y");
m_l5.put("ehood", "A");
m_l5.put("eless", "A");
if (!m_CompMode) {
m_l5.put("elily", "A");
} else {
m_l5.put("elity", "A");
}
m_l5.put("ement", "A");
m_l5.put("enced", "A");
m_l5.put("ences", "A");
m_l5.put("eness", "E");
m_l5.put("ening", "E");
m_l5.put("ental", "A");
m_l5.put("ented", "C");
m_l5.put("ently", "A");
m_l5.put("fully", "A");
m_l5.put("ially", "A");
m_l5.put("icant", "A");
m_l5.put("ician", "A");
m_l5.put("icide", "A");
m_l5.put("icism", "A");
m_l5.put("icist", "A");
m_l5.put("icity", "A");
m_l5.put("idine", "I");
m_l5.put("iedly", "A");
m_l5.put("ihood", "A");
m_l5.put("inate", "A");
m_l5.put("iness", "A");
m_l5.put("ingly", "B");
m_l5.put("inism", "J");
m_l5.put("inity", "c");
m_l5.put("ional", "A");
m_l5.put("ioned", "A");
m_l5.put("ished", "A");
m_l5.put("istic", "A");
m_l5.put("ities", "A");
m_l5.put("itous", "A");
m_l5.put("ively", "A");
m_l5.put("ivity", "A");
m_l5.put("izers", "F");
m_l5.put("izing", "F");
m_l5.put("oidal", "A");
m_l5.put("oides", "A");
m_l5.put("otide", "A");
m_l5.put("ously", "A");
m_l4 = new HashMap<String,String>();
m_l4.put("able", "A");
m_l4.put("ably", "A");
m_l4.put("ages", "B");
m_l4.put("ally", "B");
m_l4.put("ance", "B");
m_l4.put("ancy", "B");
m_l4.put("ants", "B");
m_l4.put("aric", "A");
m_l4.put("arly", "K");
m_l4.put("ated", "I");
m_l4.put("ates", "A");
m_l4.put("atic", "B");
m_l4.put("ator", "A");
m_l4.put("ealy", "Y");
m_l4.put("edly", "E");
m_l4.put("eful", "A");
m_l4.put("eity", "A");
m_l4.put("ence", "A");
m_l4.put("ency", "A");
m_l4.put("ened", "E");
m_l4.put("enly", "E");
m_l4.put("eous", "A");
m_l4.put("hood", "A");
m_l4.put("ials", "A");
m_l4.put("ians", "A");
m_l4.put("ible", "A");
m_l4.put("ibly", "A");
m_l4.put("ical", "A");
m_l4.put("ides", "L");
m_l4.put("iers", "A");
m_l4.put("iful", "A");
m_l4.put("ines", "M");
m_l4.put("ings", "N");
m_l4.put("ions", "B");
m_l4.put("ious", "A");
m_l4.put("isms", "B");
m_l4.put("ists", "A");
m_l4.put("itic", "H");
m_l4.put("ized", "F");
m_l4.put("izer", "F");
m_l4.put("less", "A");
m_l4.put("lily", "A");
m_l4.put("ness", "A");
m_l4.put("ogen", "A");
m_l4.put("ward", "A");
m_l4.put("wise", "A");
m_l4.put("ying", "B");
m_l4.put("yish", "A");
m_l3 = new HashMap<String,String>();
m_l3.put("acy", "A");
m_l3.put("age", "B");
m_l3.put("aic", "A");
m_l3.put("als", "b");
m_l3.put("ant", "B");
m_l3.put("ars", "O");
m_l3.put("ary", "F");
m_l3.put("ata", "A");
m_l3.put("ate", "A");
m_l3.put("eal", "Y");
m_l3.put("ear", "Y");
m_l3.put("ely", "E");
m_l3.put("ene", "E");
m_l3.put("ent", "C");
m_l3.put("ery", "E");
m_l3.put("ese", "A");
m_l3.put("ful", "A");
m_l3.put("ial", "A");
m_l3.put("ian", "A");
m_l3.put("ics", "A");
m_l3.put("ide", "L");
m_l3.put("ied", "A");
m_l3.put("ier", "A");
m_l3.put("ies", "P");
m_l3.put("ily", "A");
m_l3.put("ine", "M");
m_l3.put("ing", "N");
m_l3.put("ion", "Q");
m_l3.put("ish", "C");
m_l3.put("ism", "B");
m_l3.put("ist", "A");
m_l3.put("ite", "a");
m_l3.put("ity", "A");
m_l3.put("ium", "A");
m_l3.put("ive", "A");
m_l3.put("ize", "F");
m_l3.put("oid", "A");
m_l3.put("one", "R");
m_l3.put("ous", "A");
m_l2 = new HashMap<String,String>();
m_l2.put("ae", "A");
m_l2.put("al", "b");
m_l2.put("ar", "X");
m_l2.put("as", "B");
m_l2.put("ed", "E");
m_l2.put("en", "F");
m_l2.put("es", "E");
m_l2.put("ia", "A");
m_l2.put("ic", "A");
m_l2.put("is", "A");
m_l2.put("ly", "B");
m_l2.put("on", "S");
m_l2.put("or", "T");
m_l2.put("um", "U");
m_l2.put("us", "V");
m_l2.put("yl", "R");
m_l2.put("s\'", "A");
m_l2.put("\'s", "A");
m_l1 = new HashMap<String,String>();
m_l1.put("a", "A");
m_l1.put("e", "A");
m_l1.put("i", "A");
m_l1.put("o", "A");
m_l1.put("s", "W");
m_l1.put("y", "B");
}
/**
* Returns a string describing the stemmer
* @return a description suitable for
* displaying in the explorer/experimenter gui
*/
public String globalInfo() {
return
"A stemmer based on the Lovins stemmer, described here:\n\n"
+ getTechnicalInformation().toString();
}
/**
* Returns an instance of a TechnicalInformation object, containing
* detailed information about the technical background of this class,
* e.g., paper reference or book this class is based on.
*
* @return the technical information about this class
*/
public TechnicalInformation getTechnicalInformation() {
TechnicalInformation result;
result = new TechnicalInformation(Type.ARTICLE);
result.setValue(Field.AUTHOR, "Julie Beth Lovins");
result.setValue(Field.YEAR, "1968");
result.setValue(Field.TITLE, "Development of a stemming algorithm");
result.setValue(Field.JOURNAL, "Mechanical Translation and Computational Linguistics");
result.setValue(Field.VOLUME, "11");
result.setValue(Field.PAGES, "22-31");
return result;
}
/**
* Finds and removes ending from given word.
*
* @param word the word to work on
* @return the processed word
*/
private String removeEnding(String word) {
int length = word.length();
int el = 11;
while (el > 0) {
if (length - el > 1) {
String ending = word.substring(length - el);
String conditionCode = null;
switch (el) {
case 11: conditionCode = (String)m_l11.get(ending);
break;
case 10: conditionCode = (String)m_l10.get(ending);
break;
case 9: conditionCode = (String)m_l9.get(ending);
break;
case 8: conditionCode = (String)m_l8.get(ending);
break;
case 7: conditionCode = (String)m_l7.get(ending);
break;
case 6: conditionCode = (String)m_l6.get(ending);
break;
case 5: conditionCode = (String)m_l5.get(ending);
break;
case 4: conditionCode = (String)m_l4.get(ending);
break;
case 3: conditionCode = (String)m_l3.get(ending);
break;
case 2: conditionCode = (String)m_l2.get(ending);
break;
case 1: conditionCode = (String)m_l1.get(ending);
break;
default:
}
if (conditionCode != null) {
switch (conditionCode.charAt(0)) {
case 'A':
return word.substring(0, length - el);
case 'B':
if (length - el > 2) {
return word.substring(0, length - el);
}
break;
case 'C':
if (length - el > 3) {
return word.substring(0, length - el);
}
break;
case 'D':
if (length - el > 4) {
return word.substring(0, length - el);
}
break;
case 'E':
if (word.charAt(length - el - 1) != 'e') {
return word.substring(0, length - el);
}
break;
case 'F':
if ((length - el > 2) &&
(word.charAt(length - el - 1) != 'e')) {
return word.substring(0, length - el);
}
break;
case 'G':
if ((length - el > 2) &&
(word.charAt(length - el - 1) == 'f')) {
return word.substring(0, length - el);
}
break;
case 'H':
if ((word.charAt(length - el - 1) == 't') ||
((word.charAt(length - el - 1) == 'l') &&
(word.charAt(length - el - 2) == 'l'))) {
return word.substring(0, length - el);
}
break;
case 'I':
if ((word.charAt(length - el - 1) != 'o') &&
(word.charAt(length - el - 1) != 'e')) {
return word.substring(0, length - el);
}
break;
case 'J':
if ((word.charAt(length - el - 1) != 'a') &&
(word.charAt(length - el - 1) != 'e')) {
return word.substring(0, length - el);
}
break;
case 'K':
if ((length - el > 2) &&
((word.charAt(length - el - 1) == 'l') ||
(word.charAt(length - el - 1) == 'i') ||
((word.charAt(length - el - 1) == 'e') &&
(word.charAt(length - el - 3) == 'u')))) {
return word.substring(0, length - el);
}
break;
case 'L':
if ((word.charAt(length - el - 1) != 'u') &&
(word.charAt(length - el - 1) != 'x') &&
((word.charAt(length - el - 1) != 's') ||
(word.charAt(length - el - 2) == 'o'))) {
return word.substring(0, length - el);
}
break;
case 'M':
if ((word.charAt(length - el - 1) != 'a') &&
(word.charAt(length - el - 1) != 'c') &&
(word.charAt(length - el - 1) != 'e') &&
(word.charAt(length - el - 1) != 'm')) {
return word.substring(0, length - el);
}
break;
case 'N':
if ((length - el > 3) ||
((length - el == 3) &&
((word.charAt(length - el - 3) != 's')))) {
return word.substring(0, length - el);
}
break;
case 'O':
if ((word.charAt(length - el - 1) == 'l') ||
(word.charAt(length - el - 1) == 'i')) {
return word.substring(0, length - el);
}
break;
case 'P':
if (word.charAt(length - el - 1) != 'c') {
return word.substring(0, length - el);
}
break;
case 'Q':
if ((length - el > 2) &&
(word.charAt(length - el - 1) != 'l') &&
(word.charAt(length - el - 1) != 'n')) {
return word.substring(0, length - el);
}
break;
case 'R':
if ((word.charAt(length - el - 1) == 'n') ||
(word.charAt(length - el - 1) == 'r')) {
return word.substring(0, length - el);
}
break;
case 'S':
if (((word.charAt(length - el - 1) == 'r') &&
(word.charAt(length - el - 2) == 'd')) ||
((word.charAt(length - el - 1) == 't') &&
(word.charAt(length - el - 2) != 't'))) {
return word.substring(0, length - el);
}
break;
case 'T':
if ((word.charAt(length - el - 1) == 's') ||
((word.charAt(length - el - 1) == 't') &&
(word.charAt(length - el - 2) != 'o'))) {
return word.substring(0, length - el);
}
break;
case 'U':
if ((word.charAt(length - el - 1) == 'l') ||
(word.charAt(length - el - 1) == 'm') ||
(word.charAt(length - el - 1) == 'n') ||
(word.charAt(length - el - 1) == 'r')) {
return word.substring(0, length - el);
}
break;
case 'V':
if (word.charAt(length - el - 1) == 'c') {
return word.substring(0, length - el);
}
break;
case 'W':
if ((word.charAt(length - el - 1) != 's') &&
(word.charAt(length - el - 1) != 'u')) {
return word.substring(0, length - el);
}
break;
case 'X':
if ((word.charAt(length - el - 1) == 'l') ||
(word.charAt(length - el - 1) == 'i') ||
((length - el > 2) &&
(word.charAt(length - el - 1) == 'e') &&
(word.charAt(length - el - 3) == 'u'))) {
return word.substring(0, length - el);
}
break;
case 'Y':
if ((word.charAt(length - el - 1) == 'n') &&
(word.charAt(length - el - 2) == 'i')) {
return word.substring(0, length - el);
}
break;
case 'Z':
if (word.charAt(length - el - 1) != 'f') {
return word.substring(0, length - el);
}
break;
case 'a':
if ((word.charAt(length - el - 1) == 'd') ||
(word.charAt(length - el - 1) == 'f') ||
(((word.charAt(length - el - 1) == 'h') &&
(word.charAt(length - el - 2) == 'p'))) ||
(((word.charAt(length - el - 1) == 'h') &&
(word.charAt(length - el - 2) == 't'))) ||
(word.charAt(length - el - 1) == 'l') ||
(((word.charAt(length - el - 1) == 'r') &&
(word.charAt(length - el - 2) == 'e'))) ||
(((word.charAt(length - el - 1) == 'r') &&
(word.charAt(length - el - 2) == 'o'))) ||
(((word.charAt(length - el - 1) == 's') &&
(word.charAt(length - el - 2) == 'e'))) ||
(word.charAt(length - el - 1) == 't')) {
return word.substring(0, length - el);
}
break;
case 'b':
if (m_CompMode) {
if (((length - el == 3 ) &&
(!((word.charAt(length - el - 1) == 't') &&
(word.charAt(length - el - 2) == 'e') &&
(word.charAt(length - el - 3) == 'm')))) ||
((length - el > 3) &&
(!((word.charAt(length - el - 1) == 't') &&
(word.charAt(length - el - 2) == 's') &&
(word.charAt(length - el - 3) == 'y') &&
(word.charAt(length - el - 4) == 'r'))))) {
return word.substring(0, length - el);
}
} else {
if ((length - el > 2) &&
(!((word.charAt(length - el - 1) == 't') &&
(word.charAt(length - el - 2) == 'e') &&
(word.charAt(length - el - 3) == 'm'))) &&
((length - el < 4) ||
(!((word.charAt(length - el - 1) == 't') &&
(word.charAt(length - el - 2) == 's') &&
(word.charAt(length - el - 3) == 'y') &&
(word.charAt(length - el - 4) == 'r'))))) {
return word.substring(0, length - el);
}
}
break;
case 'c':
if (word.charAt(length - el - 1) == 'l') {
return word.substring(0, length - el);
}
break;
default:
throw new IllegalArgumentException("Fatal error.");
}
}
}
el--;
}
return word;
}
/**
* Recodes ending of given word.
*
* @param word the word to work on
* @return the processed word
*/
private String recodeEnding(String word) {
int lastPos = word.length() - 1;
// Rule 1
if (word.endsWith("bb") ||
word.endsWith("dd") ||
word.endsWith("gg") ||
word.endsWith("ll") ||
word.endsWith("mm") ||
word.endsWith("nn") ||
word.endsWith("pp") ||
word.endsWith("rr") ||
word.endsWith("ss") ||
word.endsWith("tt")) {
word = word.substring(0, lastPos);
lastPos--;
}
// Rule 2
if (word.endsWith("iev")) {
word = word.substring(0, lastPos - 2).concat("ief");
}
// Rule 3
if (word.endsWith("uct")) {
word = word.substring(0, lastPos - 2).concat("uc");
lastPos--;
}
// Rule 4
if (word.endsWith("umpt")) {
word = word.substring(0, lastPos - 3).concat("um");
lastPos -= 2;
}
// Rule 5
if (word.endsWith("rpt")) {
word = word.substring(0, lastPos - 2).concat("rb");
lastPos--;
}
// Rule 6
if (word.endsWith("urs")) {
word = word.substring(0, lastPos - 2).concat("ur");
lastPos--;
}
// Rule 7
if (word.endsWith("istr")) {
word = word.substring(0, lastPos - 3).concat("ister");
lastPos++;
}
// Rule 7a
if (word.endsWith("metr")) {
word = word.substring(0, lastPos - 3).concat("meter");
lastPos++;
}
// Rule 8
if (word.endsWith("olv")) {
word = word.substring(0, lastPos - 2).concat("olut");
lastPos++;
}
// Rule 9
if (word.endsWith("ul")) {
if ((lastPos - 2 < 0) ||
((word.charAt(lastPos - 2) != 'a') &&
(word.charAt(lastPos - 2) != 'i') &&
(word.charAt(lastPos - 2) != 'o'))) {
word = word.substring(0, lastPos - 1).concat("l");
lastPos--;
}
}
// Rule 10
if (word.endsWith("bex")) {
word = word.substring(0, lastPos - 2).concat("bic");
}
// Rule 11
if (word.endsWith("dex")) {
word = word.substring(0, lastPos - 2).concat("dic");
}
// Rule 12
if (word.endsWith("pex")) {
word = word.substring(0, lastPos - 2).concat("pic");
}
// Rule 13
if (word.endsWith("tex")) {
word = word.substring(0, lastPos - 2).concat("tic");
}
// Rule 14
if (word.endsWith("ax")) {
word = word.substring(0, lastPos - 1).concat("ac");
}
// Rule 15
if (word.endsWith("ex")) {
word = word.substring(0, lastPos - 1).concat("ec");
}
// Rule 16
if (word.endsWith("ix")) {
word = word.substring(0, lastPos - 1).concat("ic");
}
// Rule 17
if (word.endsWith("lux")) {
word = word.substring(0, lastPos - 2).concat("luc");
}
// Rule 18
if (word.endsWith("uad")) {
word = word.substring(0, lastPos - 2).concat("uas");
}
// Rule 19
if (word.endsWith("vad")) {
word = word.substring(0, lastPos - 2).concat("vas");
}
// Rule 20
if (word.endsWith("cid")) {
word = word.substring(0, lastPos - 2).concat("cis");
}
// Rule 21
if (word.endsWith("lid")) {
word = word.substring(0, lastPos - 2).concat("lis");
}
// Rule 22
if (word.endsWith("erid")) {
word = word.substring(0, lastPos - 3).concat("eris");
}
// Rule 23
if (word.endsWith("pand")) {
word = word.substring(0, lastPos - 3).concat("pans");
}
// Rule 24
if (word.endsWith("end")) {
if ((lastPos - 3 < 0) ||
(word.charAt(lastPos - 3) != 's')) {
word = word.substring(0, lastPos - 2).concat("ens");
}
}
// Rule 25
if (word.endsWith("ond")) {
word = word.substring(0, lastPos - 2).concat("ons");
}
// Rule 26
if (word.endsWith("lud")) {
word = word.substring(0, lastPos - 2).concat("lus");
}
// Rule 27
if (word.endsWith("rud")) {
word = word.substring(0, lastPos - 2).concat("rus");
}
// Rule 28
if (word.endsWith("her")) {
if ((lastPos - 3 < 0) ||
((word.charAt(lastPos - 3) != 'p') &&
(word.charAt(lastPos - 3) != 't'))) {
word = word.substring(0, lastPos - 2).concat("hes");
}
}
// Rule 29
if (word.endsWith("mit")) {
word = word.substring(0, lastPos - 2).concat("mis");
}
// Rule 30
if (word.endsWith("end")) {
if ((lastPos - 3 < 0) ||
(word.charAt(lastPos - 3) != 'm')) {
word = word.substring(0, lastPos - 2).concat("ens");
}
}
// Rule 31
if (word.endsWith("ert")) {
word = word.substring(0, lastPos - 2).concat("ers");
}
// Rule 32
if (word.endsWith("et")) {
if ((lastPos - 2 < 0) ||
(word.charAt(lastPos - 2) != 'n')) {
word = word.substring(0, lastPos - 1).concat("es");
}
}
// Rule 33
if (word.endsWith("yt")) {
word = word.substring(0, lastPos - 1).concat("ys");
}
// Rule 34
if (word.endsWith("yz")) {
word = word.substring(0, lastPos - 1).concat("ys");
}
return word;
}
/**
* Returns the stemmed version of the given word.
* Word is converted to lower case before stemming.
*
* @param word a string consisting of a single word
* @return the stemmed word
*/
public String stem(String word) {
if (word.length() > 2) {
return recodeEnding(removeEnding(word.toLowerCase()));
} else {
return word.toLowerCase();
}
}
/**
* Stems everything in the given string. String
* is converted to lower case before stemming.
*
* @param str the string to stem
* @return the processed string
*/
public String stemString(String str) {
StringBuffer result = new StringBuffer();
int start = -1;
for (int j = 0; j < str.length(); j++) {
char c = str.charAt(j);
if (Character.isLetterOrDigit(c)) {
if (start == -1) {
start = j;
}
} else if (c == '\'') {
if (start == -1) {
result.append(c);
}
} else {
if (start != -1) {
result.append(stem(str.substring(start, j)));
start = -1;
}
result.append(c);
}
}
if (start != -1) {
result.append(stem(str.substring(start, str.length())));
}
return result.toString();
}
/**
* returns a string representation of the stemmer
*
* @return a string representation of the stemmer
*/
public String toString() {
return getClass().getName();
}
/**
* Returns the revision string.
*
* @return the revision
*/
public String getRevision() {
return RevisionUtils.extract("$Revision$");
}
/**
* Runs the stemmer with the given options
*
* @param args the options
*/
public static void main(String[] args) {
try {
Stemming.useStemmer(new LovinsStemmer(), args);
}
catch (Exception e) {
e.printStackTrace();
}
}
}
|
0
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/stemmers/NullStemmer.java
|
/*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
* NullStemmer.java
* Copyright (C) 2005-2012 University of Waikato, Hamilton, New Zealand
*
*/
package weka.core.stemmers;
import weka.core.RevisionUtils;
/**
<!-- globalinfo-start -->
* A dummy stemmer that performs no stemming at all.
* <p/>
<!-- globalinfo-end -->
*
* @author FracPete (fracpete at waikato dot ac dot nz)
* @version $Revision$
*/
public class NullStemmer
implements Stemmer {
/** for serialization */
static final long serialVersionUID = -3671261636532625496L;
/**
* Returns a string describing the stemmer
* @return a description suitable for
* displaying in the explorer/experimenter gui
*/
public String globalInfo() {
return
"A dummy stemmer that performs no stemming at all.";
}
/**
* Returns the word as it is.
*
* @param word the unstemmed word
* @return the unstemmed word, again
*/
public String stem(String word) {
return new String(word);
}
/**
* returns a string representation of the stemmer
*
* @return a string representation of the stemmer
*/
public String toString() {
return getClass().getName();
}
/**
* Returns the revision string.
*
* @return the revision
*/
public String getRevision() {
return RevisionUtils.extract("$Revision$");
}
/**
* Runs the stemmer with the given options
*
* @param args the options
*/
public static void main(String[] args) {
try {
Stemming.useStemmer(new NullStemmer(), args);
}
catch (Exception e) {
e.printStackTrace();
}
}
}
|
0
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/stemmers/SnowballStemmer.java
|
/*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
* SnowballStemmer.java
* Copyright (C) 2005-2012 University of Waikato, Hamilton, New Zealand
*
*/
package weka.core.stemmers;
import weka.core.ClassDiscovery;
import weka.core.Option;
import weka.core.OptionHandler;
import weka.core.PluginManager;
import weka.core.RevisionUtils;
import weka.core.Utils;
import weka.core.WekaPackageClassLoaderManager;
import java.lang.reflect.Method;
import java.util.Enumeration;
import java.util.List;
import java.util.Vector;
/**
* <!-- globalinfo-start --> A wrapper class for the Snowball stemmers. Only
* available if the Snowball classes are in the classpath.<br/>
* If the class discovery is not dynamic, i.e., the property 'UseDynamic' in the
* props file 'weka/gui/GenericPropertiesCreator.props' is 'false', then the
* property 'org.tartarus.snowball.SnowballProgram' in the
* 'weka/gui/GenericObjectEditor.props' file has to be uncommented as well. If
* necessary you have to discover and fill in the snowball stemmers manually.
* You can use the 'weka.core.ClassDiscovery' for this:<br/>
* java weka.core.ClassDiscovery org.tartarus.snowball.SnowballProgram
* org.tartarus.snowball.ext<br/>
* <br/>
* For more information visit these web sites:<br/>
* http://weka.wikispaces.com/Stemmers<br/>
* http://snowball.tartarus.org/<br/>
* <p/>
* <!-- globalinfo-end -->
*
* <!-- options-start --> Valid options are:
* <p/>
*
* <pre>
* -S <name>
* The name of the snowball stemmer (default 'porter').
* available stemmers:
* danish, dutch, english, finnish, french, german, italian,
* norwegian, porter, portuguese, russian, spanish, swedish
* </pre>
*
* <!-- options-end -->
*
* @author FracPete (fracpete at waikato dot ac dot nz)
* @version $Revision$
*/
public class SnowballStemmer implements Stemmer, OptionHandler {
/** for serialization. */
static final long serialVersionUID = -6111170431963015178L;
/** the package name for snowball. */
public final static String PACKAGE = "org.tartarus.snowball";
/** the package name where the stemmers are located. */
public final static String PACKAGE_EXT = PACKAGE + ".ext";
/** the snowball program, all stemmers are derived from. */
protected final static String SNOWBALL_PROGRAM = PACKAGE + ".SnowballProgram";
/** whether the snowball stemmers are in the Classpath. */
protected static boolean m_Present = false;
/** contains the all the found stemmers (language names). */
protected static Vector<String> m_Stemmers;
/** the current stemmer. */
protected Object m_Stemmer;
/** the stem method. */
protected transient Method m_StemMethod;
/** the setCurrent method. */
protected transient Method m_SetCurrentMethod;
/** the getCurrent method. */
protected transient Method m_GetCurrentMethod;
/** check for Snowball statically (needs only to be done once) */
static {
checkForSnowball();
}
/**
* initializes the stemmer ("porter").
*/
public SnowballStemmer() {
this("porter");
initStemmers();
}
/**
* initializes the stemmer with the given stemmer.
*
* @param name the name of the stemmer
*/
public SnowballStemmer(String name) {
super();
setStemmer(name);
}
/**
* checks whether Snowball is present in the classpath.
*/
private static void checkForSnowball() {
try {
WekaPackageClassLoaderManager.forName(SNOWBALL_PROGRAM);
m_Present = true;
} catch (Exception e) {
m_Present = false;
}
}
/**
* Returns a string describing the stemmer.
*
* @return a description suitable for displaying in the explorer/experimenter
* gui
*/
public String globalInfo() {
return "A wrapper class for the Snowball stemmers. Only available if the "
+ "Snowball classes are in the classpath.\n"
+ "If the class discovery is not dynamic, i.e., the property 'UseDynamic' "
+ "in the props file 'weka/gui/GenericPropertiesCreator.props' is 'false', "
+ "then the property 'org.tartarus.snowball.SnowballProgram' in the "
+ "'weka/gui/GenericObjectEditor.props' file has to be uncommented "
+ "as well. If necessary you have to discover and fill in the snowball "
+ "stemmers manually. You can use the 'weka.core.ClassDiscovery' for this:\n"
+ " java weka.core.ClassDiscovery org.tartarus.snowball.SnowballProgram org.tartarus.snowball.ext\n"
+ "\n" + "For more information visit these web sites:\n"
+ " http://weka.wikispaces.com/Stemmers\n"
+ " http://snowball.tartarus.org/\n";
}
/**
* Returns an enumeration describing the available options.
*
* @return an enumeration of all the available options.
*/
@Override
public Enumeration<Option> listOptions() {
Vector<Option> result = new Vector<Option>();
result.addElement(new Option(
"\tThe name of the snowball stemmer (default 'porter').\n"
+ "\tavailable stemmers:\n" + getStemmerList(65, "\t "), "S", 1,
"-S <name>"));
return result.elements();
}
/**
* Parses the options.
* <p/>
*
* <!-- options-start --> Valid options are:
* <p/>
*
* <pre>
* -S <name>
* The name of the snowball stemmer (default 'porter').
* available stemmers:
* danish, dutch, english, finnish, french, german, italian,
* norwegian, porter, portuguese, russian, spanish, swedish
* </pre>
*
* <!-- options-end -->
*
* @param options the options to parse
* @throws Exception if parsing fails
*/
@Override
public void setOptions(String[] options) throws Exception {
String tmpStr;
tmpStr = Utils.getOption('S', options);
if (tmpStr.length() != 0) {
setStemmer(tmpStr);
} else {
setStemmer("porter");
}
}
/**
* Gets the current settings of the classifier.
*
* @return an array of strings suitable for passing to setOptions
*/
@Override
public String[] getOptions() {
Vector<String> result;
result = new Vector<String>();
if (getStemmer() != null) {
result.add("-S");
result.add("" + getStemmer());
}
return result.toArray(new String[result.size()]);
}
/**
* extracts the stemmer name form the classname.
*
* @param classname the full classname of the stemmer
* @return the name of the stemmer
*/
private static String getStemmerName(String classname) {
return classname.replaceAll(".*\\.", "").replaceAll("Stemmer$", "");
}
/**
* returns the full classname of the stemmer.
*
* @param name the name of the stemmer
* @return the full classname of the stemmer
* @see #PACKAGE_EXT
*/
private static String getStemmerClassname(String name) {
return PACKAGE_EXT + "." + name + "Stemmer";
}
/**
* retrieves the language names of the availabel stemmers.
*/
private static void initStemmers() {
List<String> classnames;
int i;
if (m_Stemmers != null) {
return;
}
m_Stemmers = new Vector<String>();
if (!m_Present) {
return;
}
classnames = PluginManager.getPluginNamesOfTypeList(SNOWBALL_PROGRAM);
// try dynamic discovery if not in props file
if (classnames.size() == 0) {
classnames = ClassDiscovery.find(SNOWBALL_PROGRAM, PACKAGE_EXT);
}
for (i = 0; i < classnames.size(); i++) {
m_Stemmers.add(getStemmerName(classnames.get(i).toString()));
}
}
/**
* returns whether Snowball is present or not, i.e. whether the classes are in
* the classpath or not
*
* @return whether Snowball is available
*/
public static boolean isPresent() {
return m_Present;
}
/**
* returns an enumeration over all currently stored stemmer names.
*
* @return all available stemmers
*/
public static Enumeration<String> listStemmers() {
initStemmers();
return m_Stemmers.elements();
}
/**
* generates a comma list of the available stemmers.
*
* @param lineLength the max line length, before a linefeed is inserted (0 is
* unlimited)
* @param indention the indention of a line
* @return the generated list
*/
private static String getStemmerList(int lineLength, String indention) {
String result;
Enumeration<String> enm;
String name;
String line;
result = "";
line = "";
enm = listStemmers();
while (enm.hasMoreElements()) {
name = enm.nextElement().toString();
if (line.length() > 0) {
line += ", ";
}
if ((lineLength > 0) && (line.length() + name.length() > lineLength)) {
result += indention + line + "\n";
line = "";
}
line += name;
}
if (line.length() > 0) {
result += indention + line + "\n";
}
return result;
}
/**
* returns the name of the current stemmer, null if none is set.
*
* @return the name of the stemmer
*/
public String getStemmer() {
initStemmers();
if (m_Stemmer == null) {
return null;
} else {
return getStemmerName(m_Stemmer.getClass().getName());
}
}
/**
* sets the stemmer with the given name, e.g., "porter".
*
* @param name the name of the stemmer, e.g., "porter"
*/
public void setStemmer(String name) {
Class<?> snowballClass;
Class<?>[] argClasses;
initStemmers();
if (m_Stemmers.contains(name)) {
try {
// snowballClass = Class.forName(getStemmerClassname(name));
snowballClass = WekaPackageClassLoaderManager.forName(getStemmerClassname(name));
m_Stemmer = snowballClass.newInstance();
// methods
argClasses = new Class[0];
m_StemMethod = snowballClass.getMethod("stem", argClasses);
argClasses = new Class[1];
argClasses[0] = String.class;
m_SetCurrentMethod = snowballClass.getMethod("setCurrent", argClasses);
argClasses = new Class[0];
m_GetCurrentMethod = snowballClass.getMethod("getCurrent", argClasses);
} catch (Exception e) {
System.out.println("Error initializing stemmer '" + name + "'!"
+ e.getMessage());
m_Stemmer = null;
}
} else {
System.err.println("Stemmer '" + name + "' unknown!");
m_Stemmer = null;
}
}
/**
* Returns the tip text for this property.
*
* @return tip text for this property suitable for displaying in the
* explorer/experimenter gui
*/
public String stemmerTipText() {
return "The Snowball stemmer to use, available: " + getStemmerList(0, "");
}
/**
* Returns the word in its stemmed form.
*
* @param word the unstemmed word
* @return the stemmed word
*/
@Override
public String stem(String word) {
String result;
Object[] args;
if (m_Stemmer == null) {
result = new String(word);
} else {
// after de-serialization, the methods are null and need to be
// re-initialized
if (m_SetCurrentMethod == null) {
setStemmer(getStemmer());
}
try {
// set word
args = new Object[1];
args[0] = word;
m_SetCurrentMethod.invoke(m_Stemmer, args);
// stem word
args = new Object[0];
m_StemMethod.invoke(m_Stemmer, args);
// get word
args = new Object[0];
result = (String) m_GetCurrentMethod.invoke(m_Stemmer, args);
} catch (Exception e) {
e.printStackTrace();
result = word;
}
}
return result;
}
/**
* returns a string representation of the stemmer.
*
* @return a string representation of the stemmer
*/
@Override
public String toString() {
String result;
result = getClass().getName();
result += " " + Utils.joinOptions(getOptions());
return result.trim();
}
/**
* Returns the revision string.
*
* @return the revision
*/
@Override
public String getRevision() {
return RevisionUtils.extract("$Revision$");
}
/**
* Runs the stemmer with the given options.
*
* @param args the options
*/
public static void main(String[] args) {
try {
Stemming.useStemmer(new SnowballStemmer(), args);
} catch (Exception e) {
e.printStackTrace();
}
}
}
|
0
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/stemmers/Stemmer.java
|
/*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
* Stemmer.java
* Copyright (C) 2005-2012 University of Waikato, Hamilton, New Zealand
*
*/
package weka.core.stemmers;
import java.io.Serializable;
import weka.core.RevisionHandler;
/**
* Interface for all stemming algorithms.
*
* @author FracPete (fracpete at waikato dot ac dot nz)
* @version $Revision$
*/
public interface Stemmer
extends Serializable, RevisionHandler {
/**
* Stems the given word and returns the stemmed version
*
* @param word the unstemmed word
* @return the stemmed word
*/
public String stem(String word);
}
|
0
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/stemmers/Stemming.java
|
/*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
* Stemming.java
* Copyright (C) 2005-2012 University of Waikato, Hamilton, New Zealand
*
*/
package weka.core.stemmers;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.io.Reader;
import java.io.Writer;
import java.util.Collections;
import java.util.Enumeration;
import java.util.Vector;
import weka.core.Option;
import weka.core.OptionHandler;
import weka.core.RevisionHandler;
import weka.core.RevisionUtils;
import weka.core.Utils;
/**
* A helper class for using the stemmers. Run with option '-h' to list all the
* available options.
*
* @author FracPete (fracpete at waikato dot ac dot nz)
* @version $Revision$
*/
public class Stemming implements RevisionHandler {
/**
* lists all the options on the command line
*
* @param stemmer the stemmer to list the parameters for
* @return the option string
*/
protected static String makeOptionsString(Stemmer stemmer) {
Vector<Option> options = new Vector<Option>();
// general options
options.add(new Option("\tDisplays this help.", "h", 0, "-h"));
options
.add(new Option("\tThe file to process.", "i", 1, "-i <input-file>"));
options.add(new Option(
"\tThe file to output the processed data to (default stdout).", "o", 1,
"-o <output-file>"));
options.add(new Option("\tUses lowercase strings.", "l", 0, "-l"));
// stemmer options?
if (stemmer instanceof OptionHandler) {
options.addAll(Collections.list(((OptionHandler) stemmer).listOptions()));
}
// print options
StringBuffer result = new StringBuffer();
result.append("\nStemmer options:\n\n");
Enumeration<Option> enm = options.elements();
while (enm.hasMoreElements()) {
Option option = enm.nextElement();
result.append(option.synopsis() + "\n");
result.append(option.description() + "\n");
}
return result.toString();
}
/**
* Applies the given stemmer according to the given options. '-h' lists all
* the available options for the given stemmer.
*
* @param stemmer the stemmer to use
* @param options the options for the stemmer
* @throws Exception if something goes wrong
*/
public static void useStemmer(Stemmer stemmer, String[] options)
throws Exception {
Reader reader;
StringBuffer input;
Writer output;
String tmpStr;
boolean lowerCase;
// help?
if (Utils.getFlag('h', options)) {
System.out.println(makeOptionsString(stemmer));
return;
}
// input file
tmpStr = Utils.getOption('i', options);
if (tmpStr.length() == 0) {
throw new IllegalArgumentException("No input file defined!"
+ makeOptionsString(stemmer));
} else {
reader = new BufferedReader(new InputStreamReader(new FileInputStream(
tmpStr)));
}
input = new StringBuffer();
// output file?
tmpStr = Utils.getOption('o', options);
if (tmpStr.length() == 0) {
output = new BufferedWriter(new OutputStreamWriter(System.out));
} else {
output = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(
tmpStr)));
}
// lowercase?
lowerCase = Utils.getFlag('l', options);
// stemmer options
if (stemmer instanceof OptionHandler) {
((OptionHandler) stemmer).setOptions(options);
}
// unknown options?
try {
Utils.checkForRemainingOptions(options);
} catch (Exception e) {
System.out.println(e.getMessage());
System.out.println(makeOptionsString(stemmer));
reader.close();
return;
}
// process file
int character;
while ((character = reader.read()) != -1) {
char ch = (char) character;
if (Character.isWhitespace(ch)) {
if (input.length() > 0) {
output.write(stemmer.stem(input.toString()));
input = new StringBuffer();
}
output.write(ch);
} else {
if (lowerCase) {
input.append(Character.toLowerCase(ch));
} else {
input.append(ch);
}
}
}
output.flush();
reader.close();
}
/**
* Returns the revision string.
*
* @return the revision
*/
@Override
public String getRevision() {
return RevisionUtils.extract("$Revision$");
}
}
|
0
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/stopwords/AbstractFileBasedStopwords.java
|
/*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
* AbstractFileBasedStopwords.java
* Copyright (C) 2014 University of Waikato, Hamilton, New Zealand
*/
package weka.core.stopwords;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Enumeration;
import java.util.List;
import java.util.Vector;
import weka.core.Option;
import weka.core.Utils;
/**
* Ancestor for file-based stopword schemes.
*
* @author fracpete (fracpete at waikato dot ac dot nz)
* @version $Revision$
*/
public abstract class AbstractFileBasedStopwords
extends AbstractStopwords {
/** for serialization. */
private static final long serialVersionUID = -8568762652879773063L;
/** a file containing stopwords. */
protected File m_Stopwords = new File(System.getProperty("user.dir"));
/**
* Returns an enumeration describing the available options.
*
* @return an enumeration of all the available options.
*/
@Override
public Enumeration<Option> listOptions() {
Vector<Option> result = new Vector<Option>();
Enumeration<Option> enm = super.listOptions();
while (enm.hasMoreElements())
result.add(enm.nextElement());
result.addElement(new Option(
"\t" + stopwordsTipText() + "\n"
+ "\t(default: .)",
"stopwords", 1, "-stopwords <file>"));
return result.elements();
}
/**
* Parses a given list of options.
*
* @param options the list of options as an array of strings
* @throws Exception if an option is not supported
*/
@Override
public void setOptions(String[] options) throws Exception {
String tmpStr;
tmpStr = Utils.getOption("stopwords", options);
if (tmpStr.isEmpty())
setStopwords(new File("."));
else
setStopwords(new File(tmpStr));
super.setOptions(options);
}
/**
* Gets the current settings of the Classifier.
*
* @return an array of strings suitable for passing to setOptions
*/
@Override
public String[] getOptions() {
List<String> options = new ArrayList<String>(Arrays.asList(super.getOptions()));
options.add("-stopwords");
options.add(getStopwords().toString());
return options.toArray(new String[options.size()]);
}
/**
* Sets the file containing the stopwords, null or a directory unset the
* stopwords.
*
* @param value the file containing the stopwords
*/
public void setStopwords(File value) {
if (value == null) {
value = new File(System.getProperty("user.dir"));
}
m_Stopwords = value;
reset();
}
/**
* returns the file used for obtaining the stopwords, if the file represents a
* directory then the default ones are used.
*
* @return the file containing the stopwords
*/
public File getStopwords() {
return m_Stopwords;
}
/**
* Returns the tip text for this property.
*
* @return tip text for this property suitable for displaying in the
* explorer/experimenter gui
*/
public abstract String stopwordsTipText();
/**
* Reads in the stopwords file, line by line (trimmed).
* Returns an empty list if not existing or a directory.
*
* @return the content of the file
*/
protected List<String> read() {
List<String> result;
String line;
BufferedReader reader;
result = new ArrayList<String>();
if (m_Stopwords.exists() && !m_Stopwords.isDirectory()) {
reader = null;
try {
reader = new BufferedReader(new FileReader(m_Stopwords));
while ((line = reader.readLine()) != null)
result.add(line.trim());
}
catch (Exception e) {
error("Failed to read stopwords file '" + m_Stopwords + "'!");
e.printStackTrace();
}
finally {
if (reader != null) {
try {
reader.close();
}
catch (Exception ex) {
// ignored
}
}
}
}
return result;
}
}
|
0
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/stopwords/AbstractStopwords.java
|
/*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
* AbstractStopwords.java
* Copyright (C) 2014 University of Waikato, Hamilton, New Zealand
*/
package weka.core.stopwords;
import weka.core.Option;
import weka.core.OptionHandler;
import weka.core.Utils;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Enumeration;
import java.util.List;
import java.util.Vector;
/**
* Ancestor for stopwords classes.
*
* @author fracpete (fracpete at waikato dot ac dot nz)
* @version $Revision$
*/
public abstract class AbstractStopwords
implements OptionHandler, StopwordsHandler, Serializable {
/** for serialization. */
private static final long serialVersionUID = -1975256329586388142L;
/** whether the scheme has been initialized. */
protected boolean m_Initialized;
/** debugging flag. */
protected boolean m_Debug;
/**
* Returns a string describing the stopwords scheme.
*
* @return a description suitable for displaying in the gui
*/
public abstract String globalInfo();
/**
* Resets the scheme and the initialized state.
*/
protected void reset() {
m_Initialized = false;
}
/**
* Returns an enumeration describing the available options.
*
* @return an enumeration of all the available options.
*/
@Override
public Enumeration<Option> listOptions() {
Vector<Option> result = new Vector<Option>();
result.addElement(new Option(
"\tIf set, stopword scheme is run in debug mode and\n"
+ "\tmay output additional info to the console",
"D", 0, "-D"));
return result.elements();
}
/**
* Parses a given list of options.
*
* @param options the list of options as an array of strings
* @throws Exception if an option is not supported
*/
@Override
public void setOptions(String[] options) throws Exception {
setDebug(Utils.getFlag("D", options));
}
/**
* Gets the current settings of the Classifier.
*
* @return an array of strings suitable for passing to setOptions
*/
@Override
public String[] getOptions() {
List<String> options = new ArrayList<String>();
if (getDebug()) {
options.add("-D");
}
return options.toArray(new String[options.size()]);
}
/**
* Set debugging mode.
*
* @param debug true if debug output should be printed
*/
public void setDebug(boolean debug) {
m_Debug = debug;
reset();
}
/**
* Get whether debugging is turned on.
*
* @return true if debugging output is on
*/
public boolean getDebug() {
return m_Debug;
}
/**
* Returns the tip text for this property
*
* @return tip text for this property suitable for displaying in the
* explorer/experimenter gui
*/
public String debugTipText() {
return "If set to true, stopwords scheme may output additional info to "
+ "the console.";
}
/**
* Outputs the error message, prefixed with classname.
*
* @param msg the message to output
*/
protected void error(String msg) {
System.err.println(getClass().getName() + "-ERROR: " + msg);
}
/**
* Outputs the debug message, prefixed with classname.
*
* @param msg the message to output
*/
protected void debug(String msg) {
System.err.println(getClass().getName() + "-DEBUG: " + msg);
}
/**
* Performs intialization of the scheme.
* <p/>
* Default implementation does nothing.
*/
protected void initialize() {
}
/**
* Returns true if the given string is a stop word.
*
* @param word the word to test
* @return true if the word is a stopword
*/
protected abstract boolean is(String word);
/**
* Returns true if the given string is a stop word.
*
* @param word the word to test
* @return true if the word is a stopword
*/
@Override
public boolean isStopword(String word) {
boolean result;
if (!m_Initialized) {
if (m_Debug)
debug("Initializing stopwords");
initialize();
m_Initialized = true;
}
result = is(word);
if (m_Debug)
debug(word + " --> " + result);
return result;
}
}
|
0
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/stopwords/MultiStopwords.java
|
/*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
* MultiStopwords.java
* Copyright (C) 2014 University of Waikato, Hamilton, New Zealand
*/
package weka.core.stopwords;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Enumeration;
import java.util.List;
import java.util.Vector;
import weka.core.Option;
import weka.core.Utils;
/**
<!-- globalinfo-start -->
* Applies the specified stopwords algorithms one after other.<br/>
* As soon as a word has been identified as stopword, the loop is exited.
* <p/>
<!-- globalinfo-end -->
*
<!-- options-start -->
* Valid options are: <p/>
*
* <pre> -D
* If set, stopword scheme is run in debug mode and
* may output additional info to the console</pre>
*
* <pre> -stopwords <classname + options>
* The stopwords algorithms to apply sequentially.
* (default: none)</pre>
*
<!-- options-end -->
*
* @author fracpete (fracpete at waikato dot ac dot nz)
* @version $Revision: 10978 $
*/
public class MultiStopwords
extends AbstractStopwords {
/** for serialization. */
private static final long serialVersionUID = -8568762652879773063L;
/** the stopwords algorithms to use. */
protected StopwordsHandler[] m_Stopwords = new StopwordsHandler[0];
/* (non-Javadoc)
* @see weka.core.stopwords.AbstractStopwords#globalInfo()
*/
@Override
public String globalInfo() {
return
"Applies the specified stopwords algorithms one after other.\n"
+ "As soon as a word has been identified as stopword, the loop is "
+ "exited.";
}
/**
* Returns an enumeration describing the available options.
*
* @return an enumeration of all the available options.
*/
@Override
public Enumeration<Option> listOptions() {
Vector<Option> result = new Vector<Option>();
Enumeration<Option> enm = super.listOptions();
while (enm.hasMoreElements())
result.add(enm.nextElement());
result.addElement(new Option(
"\t" + stopwordsTipText() + "\n"
+ "\t(default: none)",
"stopwords", 1, "-stopwords <classname + options>"));
return result.elements();
}
/**
* Parses a given list of options.
*
* @param options the list of options as an array of strings
* @throws Exception if an option is not supported
*/
@Override
public void setOptions(String[] options) throws Exception {
String tmpStr;
String[] tmpOptions;
List<StopwordsHandler> handlers;
handlers = new ArrayList<StopwordsHandler>();
do {
tmpStr = Utils.getOption("stopwords", options);
if (!tmpStr.isEmpty()) {
tmpOptions = Utils.splitOptions(tmpStr);
tmpStr = tmpOptions[0];
tmpOptions[0] = "";
handlers.add((StopwordsHandler) Utils.forName(StopwordsHandler.class, tmpStr, tmpOptions));
}
}
while (!tmpStr.isEmpty());
setStopwords(handlers.toArray(new StopwordsHandler[handlers.size()]));
super.setOptions(options);
}
/**
* Gets the current settings of the Classifier.
*
* @return an array of strings suitable for passing to setOptions
*/
@Override
public String[] getOptions() {
List<String> options = new ArrayList<String>(Arrays.asList(super.getOptions()));
for (StopwordsHandler handler: m_Stopwords) {
options.add("-stopwords");
options.add(Utils.toCommandLine(handler));
}
return options.toArray(new String[options.size()]);
}
/**
* Sets the stopwords algorithms.
*
* @param value the algorithms
*/
public void setStopwords(StopwordsHandler[] value) {
m_Stopwords = value;
reset();
}
/**
* Returns the stopwords algorithms.
*
* @return the algorithms
*/
public StopwordsHandler[] getStopwords() {
return m_Stopwords;
}
/**
* Returns the tip text for this property.
*
* @return tip text for this property suitable for displaying in the
* explorer/experimenter gui
*/
public String stopwordsTipText() {
return "The stopwords algorithms to apply sequentially.";
}
/**
* Returns true if the given string is a stop word.
*
* @param word the word to test
* @return true if the word is a stopword
*/
@Override
protected boolean is(String word) {
boolean result;
result = false;
for (StopwordsHandler handler: m_Stopwords) {
if (handler.isStopword(word)) {
result = true;
break;
}
}
return result;
}
}
|
0
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/stopwords/Null.java
|
/*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
* Null.java
* Copyright (C) 2014 University of Waikato, Hamilton, New Zealand
*/
package weka.core.stopwords;
/**
<!-- globalinfo-start -->
* Dummy stopwords scheme, always returns false.
* <p/>
<!-- globalinfo-end -->
*
<!-- options-start -->
* Valid options are: <p/>
*
* <pre> -D
* If set, stopword scheme is run in debug mode and
* may output additional info to the console</pre>
*
<!-- options-end -->
*
* @author fracpete (fracpete at waikato dot ac dot nz)
* @version $Revision$
*/
public class Null
extends AbstractStopwords {
/** for serialization. */
private static final long serialVersionUID = -3319681866579617385L;
/**
* Returns a string describing the stopwords scheme.
*
* @return a description suitable for displaying in the gui
*/
@Override
public String globalInfo() {
return
"Dummy stopwords scheme, always returns false.";
}
/**
* Returns true if the given string is a stop word.
*
* @param word the word to test
* @return always false
*/
@Override
protected boolean is(String word) {
return false;
}
}
|
0
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/stopwords/Rainbow.java
|
/*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
* Rainbow.java
* Copyright (C) 2014 University of Waikato, Hamilton, New Zealand
*/
package weka.core.stopwords;
import java.util.HashSet;
/**
<!-- globalinfo-start -->
* Stopwords list based on Rainbow:<br/>
* http://www.cs.cmu.edu/~mccallum/bow/rainbow/
* <p/>
<!-- globalinfo-end -->
*
<!-- options-start -->
* Valid options are: <p/>
*
* <pre> -D
* If set, stopword scheme is run in debug mode and
* may output additional info to the console</pre>
*
<!-- options-end -->
*
* @author fracpete (fracpete at waikato dot ac dot nz)
* @version $Revision$
*/
public class Rainbow
extends AbstractStopwords {
/** for serialization. */
private static final long serialVersionUID = -722795295494945193L;
/** The hash set containing the list of stopwords. */
protected HashSet<String> m_Words;
/**
* Returns a string describing the stopwords scheme.
*
* @return a description suitable for displaying in the gui
*/
@Override
public String globalInfo() {
return
"Stopwords list based on Rainbow:\n"
+ "http://www.cs.cmu.edu/~mccallum/bow/rainbow/";
}
/**
* Performs intialization of the scheme.
*/
@Override
protected void initialize() {
super.initialize();
m_Words = new HashSet<String>();
m_Words.add("a");
m_Words.add("able");
m_Words.add("about");
m_Words.add("above");
m_Words.add("according");
m_Words.add("accordingly");
m_Words.add("across");
m_Words.add("actually");
m_Words.add("after");
m_Words.add("afterwards");
m_Words.add("again");
m_Words.add("against");
m_Words.add("all");
m_Words.add("allow");
m_Words.add("allows");
m_Words.add("almost");
m_Words.add("alone");
m_Words.add("along");
m_Words.add("already");
m_Words.add("also");
m_Words.add("although");
m_Words.add("always");
m_Words.add("am");
m_Words.add("among");
m_Words.add("amongst");
m_Words.add("an");
m_Words.add("and");
m_Words.add("another");
m_Words.add("any");
m_Words.add("anybody");
m_Words.add("anyhow");
m_Words.add("anyone");
m_Words.add("anything");
m_Words.add("anyway");
m_Words.add("anyways");
m_Words.add("anywhere");
m_Words.add("apart");
m_Words.add("appear");
m_Words.add("appreciate");
m_Words.add("appropriate");
m_Words.add("are");
m_Words.add("around");
m_Words.add("as");
m_Words.add("aside");
m_Words.add("ask");
m_Words.add("asking");
m_Words.add("associated");
m_Words.add("at");
m_Words.add("available");
m_Words.add("away");
m_Words.add("awfully");
m_Words.add("b");
m_Words.add("be");
m_Words.add("became");
m_Words.add("because");
m_Words.add("become");
m_Words.add("becomes");
m_Words.add("becoming");
m_Words.add("been");
m_Words.add("before");
m_Words.add("beforehand");
m_Words.add("behind");
m_Words.add("being");
m_Words.add("believe");
m_Words.add("below");
m_Words.add("beside");
m_Words.add("besides");
m_Words.add("best");
m_Words.add("better");
m_Words.add("between");
m_Words.add("beyond");
m_Words.add("both");
m_Words.add("brief");
m_Words.add("but");
m_Words.add("by");
m_Words.add("c");
m_Words.add("came");
m_Words.add("can");
m_Words.add("cannot");
m_Words.add("cant");
m_Words.add("cause");
m_Words.add("causes");
m_Words.add("certain");
m_Words.add("certainly");
m_Words.add("changes");
m_Words.add("clearly");
m_Words.add("co");
m_Words.add("com");
m_Words.add("come");
m_Words.add("comes");
m_Words.add("concerning");
m_Words.add("consequently");
m_Words.add("consider");
m_Words.add("considering");
m_Words.add("contain");
m_Words.add("containing");
m_Words.add("contains");
m_Words.add("corresponding");
m_Words.add("could");
m_Words.add("course");
m_Words.add("currently");
m_Words.add("d");
m_Words.add("definitely");
m_Words.add("described");
m_Words.add("despite");
m_Words.add("did");
m_Words.add("different");
m_Words.add("do");
m_Words.add("does");
m_Words.add("doing");
m_Words.add("done");
m_Words.add("down");
m_Words.add("downwards");
m_Words.add("during");
m_Words.add("e");
m_Words.add("each");
m_Words.add("edu");
m_Words.add("eg");
m_Words.add("eight");
m_Words.add("either");
m_Words.add("else");
m_Words.add("elsewhere");
m_Words.add("enough");
m_Words.add("entirely");
m_Words.add("especially");
m_Words.add("et");
m_Words.add("etc");
m_Words.add("even");
m_Words.add("ever");
m_Words.add("every");
m_Words.add("everybody");
m_Words.add("everyone");
m_Words.add("everything");
m_Words.add("everywhere");
m_Words.add("ex");
m_Words.add("exactly");
m_Words.add("example");
m_Words.add("except");
m_Words.add("f");
m_Words.add("far");
m_Words.add("few");
m_Words.add("fifth");
m_Words.add("first");
m_Words.add("five");
m_Words.add("followed");
m_Words.add("following");
m_Words.add("follows");
m_Words.add("for");
m_Words.add("former");
m_Words.add("formerly");
m_Words.add("forth");
m_Words.add("four");
m_Words.add("from");
m_Words.add("further");
m_Words.add("furthermore");
m_Words.add("g");
m_Words.add("get");
m_Words.add("gets");
m_Words.add("getting");
m_Words.add("given");
m_Words.add("gives");
m_Words.add("go");
m_Words.add("goes");
m_Words.add("going");
m_Words.add("gone");
m_Words.add("got");
m_Words.add("gotten");
m_Words.add("greetings");
m_Words.add("h");
m_Words.add("had");
m_Words.add("happens");
m_Words.add("hardly");
m_Words.add("has");
m_Words.add("have");
m_Words.add("having");
m_Words.add("he");
m_Words.add("hello");
m_Words.add("help");
m_Words.add("hence");
m_Words.add("her");
m_Words.add("here");
m_Words.add("hereafter");
m_Words.add("hereby");
m_Words.add("herein");
m_Words.add("hereupon");
m_Words.add("hers");
m_Words.add("herself");
m_Words.add("hi");
m_Words.add("him");
m_Words.add("himself");
m_Words.add("his");
m_Words.add("hither");
m_Words.add("hopefully");
m_Words.add("how");
m_Words.add("howbeit");
m_Words.add("however");
m_Words.add("i");
m_Words.add("ie");
m_Words.add("if");
m_Words.add("ignored");
m_Words.add("immediate");
m_Words.add("in");
m_Words.add("inasmuch");
m_Words.add("inc");
m_Words.add("indeed");
m_Words.add("indicate");
m_Words.add("indicated");
m_Words.add("indicates");
m_Words.add("inner");
m_Words.add("insofar");
m_Words.add("instead");
m_Words.add("into");
m_Words.add("inward");
m_Words.add("is");
m_Words.add("it");
m_Words.add("its");
m_Words.add("itself");
m_Words.add("j");
m_Words.add("just");
m_Words.add("k");
m_Words.add("keep");
m_Words.add("keeps");
m_Words.add("kept");
m_Words.add("know");
m_Words.add("knows");
m_Words.add("known");
m_Words.add("l");
m_Words.add("last");
m_Words.add("lately");
m_Words.add("later");
m_Words.add("latter");
m_Words.add("latterly");
m_Words.add("least");
m_Words.add("less");
m_Words.add("lest");
m_Words.add("let");
m_Words.add("like");
m_Words.add("liked");
m_Words.add("likely");
m_Words.add("little");
m_Words.add("ll"); // added to avoid words like you'll,I'll etc.
m_Words.add("look");
m_Words.add("looking");
m_Words.add("looks");
m_Words.add("ltd");
m_Words.add("m");
m_Words.add("mainly");
m_Words.add("many");
m_Words.add("may");
m_Words.add("maybe");
m_Words.add("me");
m_Words.add("mean");
m_Words.add("meanwhile");
m_Words.add("merely");
m_Words.add("might");
m_Words.add("more");
m_Words.add("moreover");
m_Words.add("most");
m_Words.add("mostly");
m_Words.add("much");
m_Words.add("must");
m_Words.add("my");
m_Words.add("myself");
m_Words.add("n");
m_Words.add("name");
m_Words.add("namely");
m_Words.add("nd");
m_Words.add("near");
m_Words.add("nearly");
m_Words.add("necessary");
m_Words.add("need");
m_Words.add("needs");
m_Words.add("neither");
m_Words.add("never");
m_Words.add("nevertheless");
m_Words.add("new");
m_Words.add("next");
m_Words.add("nine");
m_Words.add("no");
m_Words.add("nobody");
m_Words.add("non");
m_Words.add("none");
m_Words.add("noone");
m_Words.add("nor");
m_Words.add("normally");
m_Words.add("not");
m_Words.add("nothing");
m_Words.add("novel");
m_Words.add("now");
m_Words.add("nowhere");
m_Words.add("o");
m_Words.add("obviously");
m_Words.add("of");
m_Words.add("off");
m_Words.add("often");
m_Words.add("oh");
m_Words.add("ok");
m_Words.add("okay");
m_Words.add("old");
m_Words.add("on");
m_Words.add("once");
m_Words.add("one");
m_Words.add("ones");
m_Words.add("only");
m_Words.add("onto");
m_Words.add("or");
m_Words.add("other");
m_Words.add("others");
m_Words.add("otherwise");
m_Words.add("ought");
m_Words.add("our");
m_Words.add("ours");
m_Words.add("ourselves");
m_Words.add("out");
m_Words.add("outside");
m_Words.add("over");
m_Words.add("overall");
m_Words.add("own");
m_Words.add("p");
m_Words.add("particular");
m_Words.add("particularly");
m_Words.add("per");
m_Words.add("perhaps");
m_Words.add("placed");
m_Words.add("please");
m_Words.add("plus");
m_Words.add("possible");
m_Words.add("presumably");
m_Words.add("probably");
m_Words.add("provides");
m_Words.add("q");
m_Words.add("que");
m_Words.add("quite");
m_Words.add("qv");
m_Words.add("r");
m_Words.add("rather");
m_Words.add("rd");
m_Words.add("re");
m_Words.add("really");
m_Words.add("reasonably");
m_Words.add("regarding");
m_Words.add("regardless");
m_Words.add("regards");
m_Words.add("relatively");
m_Words.add("respectively");
m_Words.add("right");
m_Words.add("s");
m_Words.add("said");
m_Words.add("same");
m_Words.add("saw");
m_Words.add("say");
m_Words.add("saying");
m_Words.add("says");
m_Words.add("second");
m_Words.add("secondly");
m_Words.add("see");
m_Words.add("seeing");
m_Words.add("seem");
m_Words.add("seemed");
m_Words.add("seeming");
m_Words.add("seems");
m_Words.add("seen");
m_Words.add("self");
m_Words.add("selves");
m_Words.add("sensible");
m_Words.add("sent");
m_Words.add("serious");
m_Words.add("seriously");
m_Words.add("seven");
m_Words.add("several");
m_Words.add("shall");
m_Words.add("she");
m_Words.add("should");
m_Words.add("since");
m_Words.add("six");
m_Words.add("so");
m_Words.add("some");
m_Words.add("somebody");
m_Words.add("somehow");
m_Words.add("someone");
m_Words.add("something");
m_Words.add("sometime");
m_Words.add("sometimes");
m_Words.add("somewhat");
m_Words.add("somewhere");
m_Words.add("soon");
m_Words.add("sorry");
m_Words.add("specified");
m_Words.add("specify");
m_Words.add("specifying");
m_Words.add("still");
m_Words.add("sub");
m_Words.add("such");
m_Words.add("sup");
m_Words.add("sure");
m_Words.add("t");
m_Words.add("take");
m_Words.add("taken");
m_Words.add("tell");
m_Words.add("tends");
m_Words.add("th");
m_Words.add("than");
m_Words.add("thank");
m_Words.add("thanks");
m_Words.add("thanx");
m_Words.add("that");
m_Words.add("thats");
m_Words.add("the");
m_Words.add("their");
m_Words.add("theirs");
m_Words.add("them");
m_Words.add("themselves");
m_Words.add("then");
m_Words.add("thence");
m_Words.add("there");
m_Words.add("thereafter");
m_Words.add("thereby");
m_Words.add("therefore");
m_Words.add("therein");
m_Words.add("theres");
m_Words.add("thereupon");
m_Words.add("these");
m_Words.add("they");
m_Words.add("think");
m_Words.add("third");
m_Words.add("this");
m_Words.add("thorough");
m_Words.add("thoroughly");
m_Words.add("those");
m_Words.add("though");
m_Words.add("three");
m_Words.add("through");
m_Words.add("throughout");
m_Words.add("thru");
m_Words.add("thus");
m_Words.add("to");
m_Words.add("together");
m_Words.add("too");
m_Words.add("took");
m_Words.add("toward");
m_Words.add("towards");
m_Words.add("tried");
m_Words.add("tries");
m_Words.add("truly");
m_Words.add("try");
m_Words.add("trying");
m_Words.add("twice");
m_Words.add("two");
m_Words.add("u");
m_Words.add("un");
m_Words.add("under");
m_Words.add("unfortunately");
m_Words.add("unless");
m_Words.add("unlikely");
m_Words.add("until");
m_Words.add("unto");
m_Words.add("up");
m_Words.add("upon");
m_Words.add("us");
m_Words.add("use");
m_Words.add("used");
m_Words.add("useful");
m_Words.add("uses");
m_Words.add("using");
m_Words.add("usually");
m_Words.add("uucp");
m_Words.add("v");
m_Words.add("value");
m_Words.add("various");
m_Words.add("ve"); // added to avoid words like I've,you've etc.
m_Words.add("very");
m_Words.add("via");
m_Words.add("viz");
m_Words.add("vs");
m_Words.add("w");
m_Words.add("want");
m_Words.add("wants");
m_Words.add("was");
m_Words.add("way");
m_Words.add("we");
m_Words.add("welcome");
m_Words.add("well");
m_Words.add("went");
m_Words.add("were");
m_Words.add("what");
m_Words.add("whatever");
m_Words.add("when");
m_Words.add("whence");
m_Words.add("whenever");
m_Words.add("where");
m_Words.add("whereafter");
m_Words.add("whereas");
m_Words.add("whereby");
m_Words.add("wherein");
m_Words.add("whereupon");
m_Words.add("wherever");
m_Words.add("whether");
m_Words.add("which");
m_Words.add("while");
m_Words.add("whither");
m_Words.add("who");
m_Words.add("whoever");
m_Words.add("whole");
m_Words.add("whom");
m_Words.add("whose");
m_Words.add("why");
m_Words.add("will");
m_Words.add("willing");
m_Words.add("wish");
m_Words.add("with");
m_Words.add("within");
m_Words.add("without");
m_Words.add("wonder");
m_Words.add("would");
m_Words.add("would");
m_Words.add("x");
m_Words.add("y");
m_Words.add("yes");
m_Words.add("yet");
m_Words.add("you");
m_Words.add("your");
m_Words.add("yours");
m_Words.add("yourself");
m_Words.add("yourselves");
m_Words.add("z");
m_Words.add("zero");
}
/**
* Returns true if the given string is a stop word.
*
* @param word the word to test
* @return true if the word is a stopword
*/
@Override
protected boolean is(String word) {
return m_Words.contains(word.trim().toLowerCase());
}
}
|
0
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/stopwords/RegExpFromFile.java
|
/*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
* RegExpFromFile.java
* Copyright (C) 2014 University of Waikato, Hamilton, New Zealand
*/
package weka.core.stopwords;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Pattern;
/**
<!-- globalinfo-start -->
* Uses the regular expressions stored in the file for determining whether a word is a stopword (ignored if pointing to a directory). One expression per line.
* <p/>
<!-- globalinfo-end -->
*
<!-- options-start -->
* Valid options are: <p/>
*
* <pre> -D
* If set, stopword scheme is run in debug mode and
* may output additional info to the console</pre>
*
* <pre> -stopwords <file>
* The file containing the stopwords (ignored if directory)
* (default: .)</pre>
*
<!-- options-end -->
*
* @author fracpete (fracpete at waikato dot ac dot nz)
* @version $Revision$
*/
public class RegExpFromFile
extends AbstractFileBasedStopwords {
/** for serialization. */
private static final long serialVersionUID = -722795295494945193L;
/** The list of regular expressions. */
protected List<Pattern> m_Patterns;
/**
* Returns a string describing the stopwords scheme.
*
* @return a description suitable for displaying in the gui
*/
@Override
public String globalInfo() {
return
"Uses the regular expressions stored in the file for determining "
+ "whether a word is a stopword (ignored if "
+ "pointing to a directory). One expression per line.\n"
+ "More information on regular expressions:\n"
+ "http://docs.oracle.com/javase/7/docs/api/java/util/regex/Pattern.html";
}
/**
* Returns the tip text for this property.
*
* @return tip text for this property suitable for displaying in the
* explorer/experimenter gui
*/
@Override
public String stopwordsTipText() {
return "The file containing the regular expressions.";
}
/**
* Performs intialization of the scheme.
*/
@Override
protected void initialize() {
List<String> patterns;
super.initialize();
m_Patterns = new ArrayList<Pattern>();
patterns = read();
for (String pattern: patterns) {
m_Patterns.add(Pattern.compile(pattern));
}
}
/**
* Returns true if the given string is a stop word.
*
* @param word the word to test
* @return true if the word is a stopword
*/
@Override
protected synchronized boolean is(String word) {
for (Pattern pattern: m_Patterns) {
if (pattern.matcher(word.trim().toLowerCase()).matches()) {
if (m_Debug)
debug(pattern.pattern() + " --> true");
return true;
}
else {
if (m_Debug)
debug(pattern.pattern() + " --> false");
}
}
return false;
}
}
|
0
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/stopwords/StopwordsHandler.java
|
/*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
* StopwordsHandler.java
* Copyright (C) 2014 University of Waikato, Hamilton, New Zealand
*/
package weka.core.stopwords;
/**
* Interface for classes that support stopword handling.
*
* @author fracpete (fracpete at waikato dot ac dot nz)
* @version $Revision$
*/
public interface StopwordsHandler {
/**
* Returns true if the given string is a stop word.
*
* @param word the word to test
* @return true if the word is a stopword
*/
public boolean isStopword(String word);
}
|
0
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core
|
java-sources/ai/libs/thirdparty/interruptible-weka/0.1.6/weka/core/stopwords/WordsFromFile.java
|
/*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
* WordsFromFile.java
* Copyright (C) 2014 University of Waikato, Hamilton, New Zealand
*/
package weka.core.stopwords;
import java.util.HashSet;
import java.util.List;
/**
<!-- globalinfo-start -->
* Uses the stopwords located in the specified file (ignored _if pointing to a directory). One stopword per line. Lines starting with '#' are considered comments and ignored.
* <p/>
<!-- globalinfo-end -->
*
<!-- options-start -->
* Valid options are: <p/>
*
* <pre> -D
* If set, stopword scheme is run in debug mode and
* may output additional info to the console</pre>
*
* <pre> -stopwords <file>
* The file containing the stopwords.
* (default: .)</pre>
*
<!-- options-end -->
*
* @author fracpete (fracpete at waikato dot ac dot nz)
* @version $Revision$
*/
public class WordsFromFile
extends AbstractFileBasedStopwords {
/** for serialization. */
private static final long serialVersionUID = -722795295494945193L;
/** The hash set containing the list of stopwords. */
protected HashSet<String> m_Words;
/**
* Returns a string describing the stopwords scheme.
*
* @return a description suitable for displaying in the gui
*/
@Override
public String globalInfo() {
return
"Uses the stopwords located in the specified file (ignored _if "
+ "pointing to a directory). One stopword per line. Lines "
+ "starting with '#' are considered comments and ignored.";
}
/**
* Returns the tip text for this property.
*
* @return tip text for this property suitable for displaying in the
* explorer/experimenter gui
*/
@Override
public String stopwordsTipText() {
return "The file containing the stopwords.";
}
/**
* Performs intialization of the scheme.
*/
@Override
protected void initialize() {
List<String> words;
super.initialize();
m_Words = new HashSet<String>();
words = read();
for (String word: words) {
// comment?
if (!word.startsWith("#"))
m_Words.add(word);
}
}
/**
* Returns true if the given string is a stop word.
*
* @param word the word to test
* @return true if the word is a stopword
*/
@Override
protected synchronized boolean is(String word) {
return m_Words.contains(word.trim().toLowerCase());
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.