class NTVFeatureFormatMapper extends AbstractFeatureFormatMapper[Map[String, Float]]
A FeatureFormatMapper that converts in and out of NTV representation, using Feathr's legacy rules for representing types like NUMERIC, BOOLEAN, and DENSE_VECTOR as term vectors.
- Alphabetic
- By Inheritance
- NTVFeatureFormatMapper
- AbstractFeatureFormatMapper
- FeatureFormatMapper
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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
cannotConvertToFeatureValue(featureType: FeatureType, externalValue: Map[String, Float]): RuntimeException
- Attributes
- protected[value]
- Definition Classes
- AbstractFeatureFormatMapper
-
def
cannotConvertToFeatureValue(featureType: FeatureType, externalValue: Map[String, Float], cause: Exception): RuntimeException
- Attributes
- protected[value]
- Definition Classes
- AbstractFeatureFormatMapper
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
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] )
-
def
fromBooleanFeatureValue(featureValue: BooleanFeatureValue): Map[String, Float]
- Attributes
- protected[value]
- Definition Classes
- NTVFeatureFormatMapper → AbstractFeatureFormatMapper
- Annotations
- @Override()
-
def
fromCategoricalFeatureValue(featureValue: CategoricalFeatureValue): Map[String, Float]
- Attributes
- protected[value]
- Definition Classes
- NTVFeatureFormatMapper → AbstractFeatureFormatMapper
- Annotations
- @Override()
-
def
fromCategoricalSetFeatureValue(featureValue: CategoricalSetFeatureValue): Map[String, Float]
- Attributes
- protected[value]
- Definition Classes
- NTVFeatureFormatMapper → AbstractFeatureFormatMapper
- Annotations
- @Override()
-
def
fromDenseVectorFeatureValue(featureValue: DenseVectorFeatureValue): Map[String, Float]
- Attributes
- protected[value]
- Definition Classes
- NTVFeatureFormatMapper → AbstractFeatureFormatMapper
- Annotations
- @Override()
-
def
fromFeatureValue(featureValue: FeatureValue): Map[String, Float]
Converts a feature value into the external representation
Converts a feature value into the external representation
- featureValue
the FeatureValue
- returns
the datum in the external representation
- Definition Classes
- AbstractFeatureFormatMapper → FeatureFormatMapper
- Annotations
- @Override()
-
def
fromNumericFeatureValue(featureValue: NumericFeatureValue): Map[String, Float]
- Attributes
- protected[value]
- Definition Classes
- NTVFeatureFormatMapper → AbstractFeatureFormatMapper
- Annotations
- @Override()
-
def
fromTensorFeatureValue(featureValue: TensorFeatureValue): Map[String, Float]
- Attributes
- protected[value]
- Definition Classes
- NTVFeatureFormatMapper → AbstractFeatureFormatMapper
- Annotations
- @Override()
-
def
fromTermVectorFeatureValue(featureValue: TermVectorFeatureValue): Map[String, Float]
- Attributes
- protected[value]
- Definition Classes
- NTVFeatureFormatMapper → AbstractFeatureFormatMapper
- Annotations
- @Override()
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
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()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toBooleanFeatureValue(featureType: BooleanFeatureType, ntv: Map[String, Float]): BooleanFeatureValue
- Attributes
- protected[value]
- Definition Classes
- NTVFeatureFormatMapper → AbstractFeatureFormatMapper
- Annotations
- @Override()
-
def
toCategoricalFeatureValue(featureType: CategoricalFeatureType, ntv: Map[String, Float]): CategoricalFeatureValue
- Attributes
- protected[value]
- Definition Classes
- NTVFeatureFormatMapper → AbstractFeatureFormatMapper
- Annotations
- @Override()
-
def
toCategoricalSetFeatureValue(featureType: CategoricalSetFeatureType, ntv: Map[String, Float]): CategoricalSetFeatureValue
- Attributes
- protected[value]
- Definition Classes
- NTVFeatureFormatMapper → AbstractFeatureFormatMapper
- Annotations
- @Override()
-
def
toDenseVectorFeatureValue(featureType: DenseVectorFeatureType, ntv: Map[String, Float]): DenseVectorFeatureValue
- Attributes
- protected[value]
- Definition Classes
- NTVFeatureFormatMapper → AbstractFeatureFormatMapper
- Annotations
- @Override()
-
def
toFeatureValue(featureType: FeatureType, externalValue: Map[String, Float]): FeatureValue
Converts a datum in the external representation into the FeatureValue format.
Converts a datum in the external representation into the FeatureValue format. The FeatureType of the feature must be known.
- featureType
type of this feature
- externalValue
datum in the external representation
- returns
datum represented as a FeatureValue
- Definition Classes
- AbstractFeatureFormatMapper → FeatureFormatMapper
- Annotations
- @Override()
-
def
toNumericFeatureValue(featureType: NumericFeatureType, ntv: Map[String, Float]): NumericFeatureValue
- Attributes
- protected[value]
- Definition Classes
- NTVFeatureFormatMapper → AbstractFeatureFormatMapper
- Annotations
- @Override()
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
toTensorFeatureValue(featureType: TensorFeatureType, ntv: Map[String, Float]): TensorFeatureValue
- Attributes
- protected[value]
- Definition Classes
- NTVFeatureFormatMapper → AbstractFeatureFormatMapper
- Annotations
- @Override()
-
def
toTermVectorFeatureValue(featureType: TermVectorFeatureType, ntv: Map[String, Float]): TermVectorFeatureValue
- Attributes
- protected[value]
- Definition Classes
- NTVFeatureFormatMapper → AbstractFeatureFormatMapper
- Annotations
- @Override()
-
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()