Package com.linkedin.feathr.common.value
Class DenseVectorFeatureValue
java.lang.Object
com.linkedin.feathr.common.value.DenseVectorFeatureValue
- All Implemented Interfaces:
FeatureValue
A specific FeatureValue class for DENSE_VECTOR features. Underlying representation is an array of float.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic DenseVectorFeatureValuefromFloatArray(float[] floatArray) static DenseVectorFeatureValuefromNumberList(Collection<? extends Number> numbers) float[]inthashCode()toString()
-
Method Details
-
fromFloatArray
- Returns:
- a DenseVectorFeatureValue of unknown/dynamic size for the provided array of floats
-
fromNumberList
- Returns:
- a DenseVectorFeatureValue of unknown/dynamic size for the provided collection of numbers
-
getFloatArray
public float[] getFloatArray()- Returns:
- the float array backing this dense-vector
-
getFeatureType
- Specified by:
getFeatureTypein interfaceFeatureValue- Returns:
- the
FeatureTypeof this feature
-
equals
-
hashCode
public int hashCode() -
toString
-