org.dmg.pmml.sequence.SequenceRule Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pmml-model-gwt Show documentation
Show all versions of pmml-model-gwt Show documentation
JPMML GWT compatible class model
package org.dmg.pmml.sequence;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonRootName;
import jakarta.xml.bind.annotation.XmlAnyElement;
import jakarta.xml.bind.annotation.XmlAttribute;
import jakarta.xml.bind.annotation.XmlElementRef;
import jakarta.xml.bind.annotation.XmlElementRefs;
import jakarta.xml.bind.annotation.XmlRootElement;
import jakarta.xml.bind.annotation.XmlSchemaType;
import jakarta.xml.bind.annotation.XmlType;
import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import org.dmg.pmml.Entity;
import org.dmg.pmml.Extension;
import org.dmg.pmml.PMMLObject;
import org.dmg.pmml.Visitor;
import org.dmg.pmml.VisitorAction;
import org.dmg.pmml.adapters.IntegerAdapter;
import org.dmg.pmml.adapters.NonNegativeIntegerAdapter;
import org.dmg.pmml.adapters.RealNumberAdapter;
import org.jpmml.model.MissingAttributeException;
import org.jpmml.model.annotations.Added;
import org.jpmml.model.annotations.ValueConstructor;
@XmlRootElement(name = "SequenceRule", namespace = "http://www.dmg.org/PMML-4_4")
@XmlType(name = "", propOrder = {
"content"
})
@JsonRootName("SequenceRule")
@JsonPropertyOrder({
"id",
"numberOfSets",
"occurrence",
"support",
"confidence",
"lift",
"content"
})
public class SequenceRule
extends Entity
{
@XmlAttribute(name = "id", required = true)
@JsonProperty("id")
private String id;
@XmlAttribute(name = "numberOfSets", required = true)
@XmlJavaTypeAdapter(NonNegativeIntegerAdapter.class)
@XmlSchemaType(name = "nonNegativeInteger")
@JsonProperty("numberOfSets")
private Integer numberOfSets;
@XmlAttribute(name = "occurrence", required = true)
@XmlJavaTypeAdapter(IntegerAdapter.class)
@JsonProperty("occurrence")
private Integer occurrence;
@XmlAttribute(name = "support", required = true)
@XmlJavaTypeAdapter(RealNumberAdapter.class)
@JsonProperty("support")
private Number support;
@XmlAttribute(name = "confidence", required = true)
@XmlJavaTypeAdapter(RealNumberAdapter.class)
@JsonProperty("confidence")
private Number confidence;
@XmlAttribute(name = "lift")
@XmlJavaTypeAdapter(RealNumberAdapter.class)
@JsonProperty("lift")
@Added((org.dmg.pmml.Version.PMML_3_1))
private Number lift;
@XmlElementRefs({
@XmlElementRef(name = "Extension", namespace = "http://www.dmg.org/PMML-4_4", type = Extension.class, required = false),
@XmlElementRef(name = "AntecedentSequence", namespace = "http://www.dmg.org/PMML-4_4", type = AntecedentSequence.class, required = false),
@XmlElementRef(name = "Delimiter", namespace = "http://www.dmg.org/PMML-4_4", type = Delimiter.class, required = false),
@XmlElementRef(name = "Time", namespace = "http://www.dmg.org/PMML-4_4", type = Time.class, required = false),
@XmlElementRef(name = "ConsequentSequence", namespace = "http://www.dmg.org/PMML-4_4", type = ConsequentSequence.class, required = false)
})
@XmlAnyElement(lax = true)
@JsonProperty("content")
private List