Item

class Item(val id: String, val value: Any, @Since("4.3") val field: Option[Field], @Since("4.3") val category: Option[String], val mappedValue: Option[String], val weight: Option[Double]) extends PmmlElement

Obviously the id of an Item must be unique. Furthermore the Item values must be unique, or if they are not unique then attributes field and category must distiguish them. That is, an AssocationModel must not have different instances of Item where the values of the value, field, and category attribute are all the same. The entries in mappedValue may be the same, though. Here are some examples of Items:

Value parameters:
id

An identification to uniquely identify an item.

mappedValue

Optional, a value to which the original item value is mapped. For instance, this could be a product name if the original value is an EAN code.

value

The value of the item as in the input data.

weight

The weight of the item. For example, the price or value of an item.

trait Serializable
class Object
trait Matchable
class Any

Value members

Concrete methods

def getName: Option[String]
override def toString: String
Definition Classes
Any

Inherited methods

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

Concrete fields

@Since("4.3")
val category: Option[String]
@Since("4.3")
val field: Option[Field]
val id: String
val mappedValue: Option[String]
val value: Any
val weight: Option[Double]