trait Builder[T <: Model] extends TransformationsBuilder
Base class of model builder
- Alphabetic
- By Inheritance
- Builder
- TransformationsBuilder
- FunctionProvider
- HasFieldScope
- FieldScope
- HasField
- CommonBuilder
- UnknownElemHandler
- ExtensionHandler
- XmlUtils
- XmlBase
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract def attributes: ModelAttributes
- Attributes
- protected
- abstract def build(reader: XMLEventReader, attrs: XmlAttrs, parent: Model): T
Builds a PMML model from a specified XML reader.
- abstract def name: String
Name of the builder.
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def ??????: Nothing
??????can be used for marking methods that never invoked??????can be used for marking methods that never invoked- Definition Classes
- CommonBuilder
- Exceptions thrown
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- def defaultFieldScope: FieldScope
- Attributes
- protected
- val derivedFieldScope: MutableFieldScope[DerivedField]
- Attributes
- protected
- Definition Classes
- TransformationsBuilder
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def extHandler: (XMLEventReader, XmlAttrs) => Option[Extension]
- Definition Classes
- ExtensionHandler
- val extensions: ArrayBuffer[Extension]
- Attributes
- protected
- def extractArray(text: String): Array[String]
- Attributes
- protected
- def extractText(reader: XMLEventReader, parent: String): String
- Definition Classes
- XmlUtils
- def field(name: String): Field
Returns the field of a given name.
Returns the field of a given name.
- Definition Classes
- TransformationsBuilder → HasField
- Exceptions thrown
FieldNotFoundExceptionif a field with the given name does not exist
- def function(name: String): Function
- Definition Classes
- FunctionProvider
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def getField(name: String): Option[Field]
Returns the field of a given name, None if a field with the given name does not exist
Returns the field of a given name, None if a field with the given name does not exist
- Definition Classes
- Builder → TransformationsBuilder → HasField
- def getFunction(name: String): Option[Function]
- Definition Classes
- Builder → TransformationsBuilder → FunctionProvider
- def getTarget: Option[Field]
- def handleElem(reader: XMLEventReader, event: EvElemStart): Unit
- Definition Classes
- UnknownElemHandler
- def handleElem(reader: XMLEventReader, label: String, attrs: XmlAttrs = XmlAttrs()): Unit
- Definition Classes
- UnknownElemHandler
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def inferDataType(feature: ResultFeature, targetField: Option[String]): DataType
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val localTransformations: Option[LocalTransformations]
- Attributes
- protected
- def makeArray(reader: XMLEventReader, attrs: XmlAttrs): Array[_]
- def makeAttributes(attrs: XmlAttrs): ModelAttributes
Extracts these common attributes from a model
Extracts these common attributes from a model
- Attributes
- protected
- def makeCategoricalPredictor(reader: XMLEventReader, attrs: XmlAttrs): CategoricalPredictor
- Definition Classes
- TransformationsBuilder
- def makeComparisonMeasure(reader: XMLEventReader, attrs: XmlAttrs): ComparisonMeasure
- def makeContinuousDistribution(reader: XMLEventReader, event: EvElemStart): ContinuousDistribution
- Attributes
- protected
- def makeDefineFunction(reader: XMLEventReader, attrs: XmlAttrs): DefineFunction
- Definition Classes
- TransformationsBuilder
- def makeDerivedField(reader: XMLEventReader, attrs: XmlAttrs): DerivedField
- Definition Classes
- TransformationsBuilder
- def makeElem[T](reader: XMLEventReader, event: EvElemStart, builder: GroupElemBuilder[T]): T
- Definition Classes
- XmlUtils
- def makeElem[A, B](reader: XMLEventReader, parent: String, child1: String, builder1: ElemBuilder[A], child2: String, builder2: ElemBuilder[B]): (Option[A], Option[B])
- Definition Classes
- XmlUtils
- def makeElem[T](reader: XMLEventReader, parent: String, child: String, builder: ElemBuilder[T]): Option[T]
- Definition Classes
- XmlUtils
- def makeElem[T](reader: XMLEventReader, event: EvElemStart, builder: ElemBuilder[T]): T
- Definition Classes
- XmlUtils
- def makeElem[T](reader: XMLEventReader, attrs: XmlAttrs, builder: ElemBuilder[T]): T
- Definition Classes
- XmlUtils
- def makeElems[T](reader: XMLEventReader, parent: String, children: Set[String], builder: GroupElemBuilder[T])(implicit arg0: ClassTag[T]): Array[T]
- Definition Classes
- XmlUtils
- def makeElems[A, B](reader: XMLEventReader, parent: String, child1: String, builder1: ElemBuilder[A], child2: String, builder2: ElemBuilder[B])(implicit arg0: ClassTag[A], arg1: ClassTag[B]): (Array[A], Array[B])
- Definition Classes
- XmlUtils
- def makeElems[T](reader: XMLEventReader, parent: String, child: String, builder: ElemBuilder[T], sizeHint: Option[Int] = None)(implicit arg0: ClassTag[T]): Array[T]
- Definition Classes
- XmlUtils
- def makeExpression(reader: XMLEventReader, event: EvElemStart, scope: FieldScope): Expression
- Definition Classes
- TransformationsBuilder
- def makeFieldRef(reader: XMLEventReader, attrs: XmlAttrs, scope: FieldScope): FieldRef
- Definition Classes
- TransformationsBuilder
- def makeIntArray(reader: XMLEventReader, attrs: XmlAttrs): Array[Int]
- def makeIntSparseArray(reader: XMLEventReader, attrs: XmlAttrs): SparseVector[Int]
- def makeInterval(reader: XMLEventReader, attrs: XmlAttrs): Interval
- Definition Classes
- CommonBuilder
- def makeLocalTransformations(reader: XMLEventReader): LocalTransformations
Parses the local transformations
Parses the local transformations
- Definition Classes
- TransformationsBuilder
- def makeMatrix(reader: XMLEventReader, attrs: XmlAttrs): Matrix
- def makeMiningSchema(reader: XMLEventReader): MiningSchema
Parses the mining fields under MiningSchema
Parses the mining fields under MiningSchema
- Attributes
- protected
- def makeModelExplanation(reader: XMLEventReader): Option[ModelExplanation]
- Attributes
- protected
- def makeModelStats(reader: XMLEventReader): Option[ModelStats]
- Attributes
- protected
- def makeModelVerification(reader: XMLEventReader, attrs: XmlAttrs): Option[ModelVerification]
- Attributes
- protected
- def makeOutput(reader: XMLEventReader): Option[Output]
Parses the output fields
Parses the output fields
- Attributes
- protected
- def makePartition(reader: XMLEventReader, attrs: XmlAttrs): Partition
- def makePredicate(reader: XMLEventReader, event: EvElemStart): Predicate
Parses one of predicates: SimplePredicate, CompoundPredicate, SimpleSetPredicate, True, or False
Parses one of predicates: SimplePredicate, CompoundPredicate, SimpleSetPredicate, True, or False
- Attributes
- protected
- def makeRealArray(reader: XMLEventReader, attrs: XmlAttrs): Array[Double]
- def makeRealSparseArray(reader: XMLEventReader, attrs: XmlAttrs): SparseVector[Double]
- def makeScoreDistribution(reader: XMLEventReader, attrs: XmlAttrs): ScoreDistribution
- Attributes
- protected
- def makeStringArray(reader: XMLEventReader, attrs: XmlAttrs): Array[String]
- def makeTable(reader: XMLEventReader, event: EvElemStart, dataTypes: Map[String, DataType] = Map.empty): Table
- Definition Classes
- TransformationsBuilder
- def makeTargets(reader: XMLEventReader): Option[Targets]
Parses the targets
Parses the targets
- Attributes
- protected
- def makeTransformationDictionary(reader: XMLEventReader): TransformationDictionary
Parses the transformation dictionary.
Parses the transformation dictionary.
- Definition Classes
- TransformationsBuilder
- def makeValue(reader: XMLEventReader, attrs: XmlAttrs): Value
- Definition Classes
- CommonBuilder
- val miningSchema: MiningSchema
- Attributes
- protected
- val modelExplanation: Option[ModelExplanation]
- Attributes
- protected
- val modelStats: Option[ModelStats]
- Attributes
- protected
- val modelVerification: Option[ModelVerification]
- Attributes
- protected
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def nextLabel(reader: XMLEventReader): XMLEvent
- Definition Classes
- XmlBase
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- val output: Option[Output]
- Attributes
- protected
- val outputFieldScope: MutableFieldScope[OutputField]
OutputField with feature="transformedValue" in a PMML model can refer to some field after it
OutputField with feature="transformedValue" in a PMML model can refer to some field after it
- Attributes
- protected
- val parent: Model
- Attributes
- protected
- def postBuild(): Unit
- val provider: MutableFunctionProvider
- Attributes
- protected
- Definition Classes
- TransformationsBuilder
- def scope: FieldScope
- Definition Classes
- TransformationsBuilder → HasFieldScope
- def skipLabel(reader: XMLEventReader): Unit
- Definition Classes
- XmlBase
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def target: Field
- val targets: Option[Targets]
- Attributes
- protected
- def toString(): String
- Definition Classes
- AnyRef → Any
- def toVal(s: String, dataType: DataType): Any
- Definition Classes
- CommonBuilder
- def traverseElems(reader: XMLEventReader, parent: String, f: PartialFunction[XMLEvent, Any], handleText: Boolean = false, handleEnd: Boolean = false, handleEntityRef: Boolean = false, handleExtension: Boolean = false): Any
- Definition Classes
- XmlUtils
- def traverseModel(reader: XMLEventReader, parent: String, f: PartialFunction[XMLEvent, Any]): Any
- def verifyScore(s: String): Any
- def verifyValue(s: String, f: Field): Any
Verifies if the input sting values is valid for the specified field, here, we need to check if the field is null, because this method is always called to verify the target field that could be absent for any model, for example the child model under the Mining Model.
Verifies if the input sting values is valid for the specified field, here, we need to check if the field is null, because this method is always called to verify the target field that could be absent for any model, for example the child model under the Mining Model.
- Definition Classes
- CommonBuilder
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- lazy val wrappedFields: ArrayBuffer[WrappedField]
- Attributes
- protected
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated