java.lang.Object
com.pervasive.datarush.analytics.svm.VectorDictionary
Object representation of the
VectorDictionary PMML element.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the fields that correspond to vectors in this dictionary.final Map<String,DoubleTokenSequence> Returns the mapping from vector id to vector.final voidsetVectorFields(List<String> vectorFields) Sets the fields that correspond to vectors in this dictionary.final voidsetVectorsByID(Map<String, DoubleTokenSequence> vectorsByID) Sets the mapping from vector id to vector.
-
Constructor Details
-
VectorDictionary
public VectorDictionary()Creates an emptyVectorDictionary
-
-
Method Details
-
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
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
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
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
-