class NumericAttribute extends Attribute
- Alphabetic
- By Inheritance
- NumericAttribute
- Attribute
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- def attrType: AttributeType
Attribute type.
Attribute type.
- Definition Classes
- NumericAttribute → Attribute
- def equals(other: Any): Boolean
- Definition Classes
- NumericAttribute → AnyRef → Any
- def hashCode(): Int
- Definition Classes
- NumericAttribute → AnyRef → Any
- val index: Option[Int]
Index of the attribute.
Index of the attribute. None if it is not set.
- Definition Classes
- NumericAttribute → Attribute
- def isNominal: Boolean
Tests whether this attribute is nominal, true for NominalAttribute and BinaryAttribute.
Tests whether this attribute is nominal, true for NominalAttribute and BinaryAttribute.
- Definition Classes
- NumericAttribute → Attribute
- def isNumeric: Boolean
Tests whether this attribute is numeric, true for NumericAttribute and BinaryAttribute.
Tests whether this attribute is numeric, true for NumericAttribute and BinaryAttribute.
- Definition Classes
- NumericAttribute → Attribute
- val max: Option[Double]
- val min: Option[Double]
- val name: Option[String]
Name of the attribute.
Name of the attribute. None if it is not set.
- Definition Classes
- NumericAttribute → Attribute
- val sparsity: Option[Double]
- val std: Option[Double]
- def toMetadata(): Metadata
Converts to ML metadata
Converts to ML metadata
- Definition Classes
- Attribute
- def toMetadata(existingMetadata: Metadata): Metadata
Converts to ML metadata with some existing metadata.
Converts to ML metadata with some existing metadata.
- Definition Classes
- Attribute
- def toString(): String
- Definition Classes
- Attribute → AnyRef → Any
- def toStructField(): StructField
Converts to a
StructField
.Converts to a
StructField
.- Definition Classes
- Attribute
- def toStructField(existingMetadata: Metadata): StructField
Converts to a
StructField
with some existing metadata.Converts to a
StructField
with some existing metadata.- existingMetadata
existing metadata to carry over
- Definition Classes
- Attribute
- def withIndex(index: Int): NumericAttribute
Copy with a new index.
Copy with a new index.
- Definition Classes
- NumericAttribute → Attribute
- def withMax(max: Double): NumericAttribute
Copy with a new max value.
- def withMin(min: Double): NumericAttribute
Copy with a new min value.
- def withName(name: String): NumericAttribute
Copy with a new name.
Copy with a new name.
- Definition Classes
- NumericAttribute → Attribute
- def withSparsity(sparsity: Double): NumericAttribute
Copy with a new sparsity.
- def withStd(std: Double): NumericAttribute
Copy with a new standard deviation.
- def withoutIndex: NumericAttribute
Copy without the index.
Copy without the index.
- Definition Classes
- NumericAttribute → Attribute
- def withoutMax: NumericAttribute
Copy without the max value.
- def withoutMin: NumericAttribute
Copy without the min value.
- def withoutName: NumericAttribute
Copy without the name.
Copy without the name.
- Definition Classes
- NumericAttribute → Attribute
- def withoutSparsity: NumericAttribute
Copy without the sparsity.
- def withoutStd: NumericAttribute
Copy without the standard deviation.
- def withoutSummary: NumericAttribute
Copy without summary statistics.