class CategoricalMap[T] extends Serializable
A wrapper around level maps: Map[T -> Int] and Map[Int -> T] that converts the data to/from Spark Metadata in both MLib and AzureML formats.
- T
Input levels could be String, Double, Int, Long, Boolean
- Alphabetic
- By Inheritance
- CategoricalMap
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
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
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
val
dataType: DataType
Spark DataType corresponding to type T
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
getIndex(level: T): Int
Returns the index of the given level, can throw
-
def
getIndexOption(level: T): Option[Int]
Returns the index of a given level as Option; does not throw
-
def
getLevel(index: Int): T
Returns the level of the given index; can throw
-
def
getLevelOption(index: Int): Option[T]
Returns the level of the given index as Option; does not throw
-
def
hasLevel(level: T): Boolean
Checks if the given level exists
- val hasNullLevel: Boolean
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val isOrdinal: Boolean
- val levels: Array[T]
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
val
numLevels: Int
Total number of levels
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toMetadata(mmlStyle: Boolean): Metadata
Add categorical levels and in either MML or MLlib style metadata
Add categorical levels and in either MML or MLlib style metadata
- mmlStyle
MML (true) or MLlib metadata (false)
-
def
toMetadata(existingMetadata: Metadata, mmlStyle: Boolean): Metadata
Add categorical levels to existing Spark Metadata
Add categorical levels to existing Spark Metadata
- existingMetadata
[tag, categorical metadata] pair is added to existingMetadata, where tag is either MLlib or MML
- mmlStyle
MML (true) or MLlib metadata (false)
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()