K - Type of key.public final class BinaryObjectVectorizer<K> extends ExtractionUtils.StringCoordVectorizer<K,BinaryObject> implements DeployableObject
| Modifier and Type | Class and Description |
|---|---|
static class |
BinaryObjectVectorizer.Mapping
Feature values mapping for non-number features.
|
Vectorizer.LabelCoordinate, Vectorizer.VectorizerAdapter<K,V,C extends Serializable,L>| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_VALUE
Object for denoting default value of feature mapping.
|
| Constructor and Description |
|---|
BinaryObjectVectorizer(String... coords)
Creates an instance of Vectorizer.
|
| Modifier and Type | Method and Description |
|---|---|
protected List<String> |
allCoords(K key,
BinaryObject value)
Returns list of all coordinate with feature values.
|
protected Vector |
createVector(int size)
Create an instance of vector.
|
protected Double |
feature(String coord,
K key,
BinaryObject value)
Extracts feature value by given coordinate.
|
List<Object> |
getDependencies()
Returns dependencies of this object that can be object with class defined by client side and unknown for server.
|
BinaryObjectVectorizer |
withFeature(String coord,
BinaryObjectVectorizer.Mapping valuesMapping)
Sets values mapping for feature.
|
label, zeroapply, exclude, extract, labeled, labeledclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitextractFeatures, extractLabelmapandThenandThenpublic static final String DEFAULT_VALUE
public BinaryObjectVectorizer(String... coords)
coords - Coordinates.public BinaryObjectVectorizer withFeature(String coord, BinaryObjectVectorizer.Mapping valuesMapping)
coord - Feature coordinate.valuesMapping - Mapping.protected Double feature(String coord, K key, BinaryObject value)
feature in class Vectorizer<K,BinaryObject,String,Double>coord - Coordinate.key - Key.value - Value.protected List<String> allCoords(K key, BinaryObject value)
allCoords in class Vectorizer<K,BinaryObject,String,Double>key - Key.value - Value.protected Vector createVector(int size)
createVector in class Vectorizer<K,BinaryObject,String,Double>size - Vector size.public List<Object> getDependencies()
getDependencies in interface DeployableObject
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.14.0 Release Date : September 29 2022