- java.lang.Object
-
- com.pervasive.datarush.analytics.svm.VectorDictionary
-
public final class VectorDictionary extends Object
Object representation of theVectorDictionary
PMML element.
-
-
Constructor Summary
Constructors Constructor Description VectorDictionary()
Creates an emptyVectorDictionary
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>
getVectorFields()
Returns the fields that correspond to vectors in this dictionary.Map<String,DoubleTokenSequence>
getVectorsByID()
Returns the mapping from vector id to vector.void
setVectorFields(List<String> vectorFields)
Sets the fields that correspond to vectors in this dictionary.void
setVectorsByID(Map<String,DoubleTokenSequence> vectorsByID)
Sets the mapping from vector id to vector.
-
-
-
Method Detail
-
getVectorFields
public final List<String> getVectorFields()
Returns the fields that correspond to vectors in this dictionary. The elements in this list contain the values of thefield
attributes of theFieldRef
sub-elements.- Returns:
- the fields that correspond to vectors in this dictionary
-
setVectorFields
public final void setVectorFields(List<String> vectorFields)
Sets the fields that correspond to vectors in this dictionary. The elements in this list contain the values of thefield
attributes of theFieldRef
sub-elements.- Parameters:
vectorFields
- the fields that correspond to vectors in this dictionary
-
getVectorsByID
public final Map<String,DoubleTokenSequence> getVectorsByID()
Returns the mapping from vector id to vector. The keys in the map are the values of theid
attribute of theVectorInstance
sub-elements. The values in the map are the values of the body of theVectorInstance
sub-elements (which can either beReal-SparseArray
orREAL-ARRAY
).- Returns:
- the mapping from vector id to vector
-
setVectorsByID
public final void setVectorsByID(Map<String,DoubleTokenSequence> vectorsByID)
Sets the mapping from vector id to vector. The keys in the map are the values of theid
attribute of theVectorInstance
sub-elements. The values in the map are the values of the body of theVectorInstance
sub-elements (which can either beReal-SparseArray
orREAL-ARRAY
).- Parameters:
vectorsByID
- the mapping from vector id to vector
-
-