public class DenseVectorFeatureType extends FeatureType
FeatureType.BasicType| Modifier and Type | Field and Description |
|---|---|
static int |
UNKNOWN_SIZE |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
int |
getSize() |
int |
hashCode() |
java.lang.String |
toString() |
static DenseVectorFeatureType |
withSize(int size)
Returns a DenseVectorType for a vector of known fixed size.
|
static DenseVectorFeatureType |
withUnknownSize()
Returns a DenseVectorType for a vector of unknown/dynamic size.
|
getBasicTypepublic static final int UNKNOWN_SIZE
public static DenseVectorFeatureType withSize(int size)
size - The fixed vector size for features of this type. If a feature's type is DenseVectorFeatureType with
size 100, then for all instances of this feature (in all examples/observations) the feature value
will always be represented as an array of length 100.public static DenseVectorFeatureType withUnknownSize()
public int getSize()
UNKNOWN_SIZEpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object