- java.lang.Object
-
- com.pervasive.datarush.analytics.svm.VectorDictionary
-
public final class VectorDictionary extends Object
Object representation of theVectorDictionaryPMML 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.voidsetVectorFields(List<String> vectorFields)Sets the fields that correspond to vectors in this dictionary.voidsetVectorsByID(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 thefieldattributes of theFieldRefsub-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 thefieldattributes of theFieldRefsub-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 theidattribute of theVectorInstancesub-elements. The values in the map are the values of the body of theVectorInstancesub-elements (which can either beReal-SparseArrayorREAL-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 theidattribute of theVectorInstancesub-elements. The values in the map are the values of the body of theVectorInstancesub-elements (which can either beReal-SparseArrayorREAL-ARRAY).- Parameters:
vectorsByID- the mapping from vector id to vector
-
-