|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectweka.core.pmml.VectorDictionary
public class VectorDictionary
Class encapsulating the PMML VectorDictionary construct.
| Constructor Summary | |
|---|---|
VectorDictionary(Element vectNode,
MiningSchema ms)
Constructor. |
|
| Method Summary | |
|---|---|
VectorInstance |
getVector(String ID)
Gets a vector from the dictionary corresponding to the supplied ID |
static VectorDictionary |
getVectorDictionary(Element container,
MiningSchema ms)
Returns a new VectorDictionary constructed from the supplied XML container |
double[] |
incomingInstanceToVectorFieldVals(double[] incoming)
Convert an incoming instance to an array of values that corresponds to the fields referenced by the support vectors in the vector dictionary |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public VectorDictionary(Element vectNode,
MiningSchema ms)
throws Exception
vectNode - the XML containing the VectorDictionaryms - the mining schema
Exception - if something goes wrong| Method Detail |
|---|
public static VectorDictionary getVectorDictionary(Element container,
MiningSchema ms)
throws Exception
container - the containing XMLms - the mining schema
Exception - if the VectorDictionary can't be read from the XML container
public double[] incomingInstanceToVectorFieldVals(double[] incoming)
throws Exception
incoming - an incoming instance
Exception - if this array cant be constructed for some reasonpublic VectorInstance getVector(String ID)
ID - the ID of the vector to retrieve
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||