TrainingInstances

class TrainingInstances(val instanceFields: InstanceFields, val table: Table, val isTransformed: Boolean, val recordCount: Option[Int], val fieldCount: Option[Int]) extends PmmlElement

Encapsulates the definition of the fields included in the training instances as well as their values.

Value parameters:
fieldCount

Defines the number of fields (features + targets). This number needs to match the number of InstanceField elements defined under InstanceFields.

instanceFields

Defines all the fields included in the training instances.

isTransformed

Used as a flag to determine whether or not the training instances have already been transformed. If isTransformed is "false", it indicates that the training data has not been transformed yet. If "true", it indicates that it has already been transformed.

recordCount

Defines the number of training instances or records. This number needs to match the number of instances defined in the element InlineTable or in the external data if TableLocator is used.

table

Representing the training data (feature vectors and class labels)

trait Serializable
class Object
trait Matchable
class Any

Value members

Concrete methods

def apply(i: Int, columns: Array[String]): Array[Any]
def column(name: String): String
def columns(names: Array[String]): Array[String]
def init(scope: FieldScope): Unit
def nbCols: Int
def nbRows: Int
def row(i: Int): Row
def series(i: Int): Series

Inherited methods

Inherited from:
HasExtensions
def hasExtensions: Boolean
Inherited from:
HasExtensions

Concrete fields

val columns: Array[String]
val fieldCount: Option[Int]
val isTransformed: Boolean
val names: Array[String]
val recordCount: Option[Int]