/** * Computes the dot product of the specified example vector and the weight vector associated * with the supplied class. * * @param example The example object. * @param label The class label * @return The score for the given example vector. **/ public double score(Object example, int label) { Object[] exampleArray = getExampleArray(example, false); return score((int[]) exampleArray[0], (double[]) exampleArray[1], label); }
public java.lang.Object[] getExampleArray(java.lang.Object a0) { if (isClone) { loadInstance(); return instance.getExampleArray(a0); } return super.getExampleArray(a0); }
public java.lang.Object[] getExampleArray(java.lang.Object a0, boolean a1) { if (isClone) { loadInstance(); return instance.getExampleArray(a0, a1); } return super.getExampleArray(a0, a1); }
public java.lang.Object[] getExampleArray(java.lang.Object a0, boolean a1) { if (isClone) { loadInstance(); return instance.getExampleArray(a0, a1); } return super.getExampleArray(a0, a1); }
public java.lang.Object[] getExampleArray(java.lang.Object a0, boolean a1) { if (isClone) { loadInstance(); return instance.getExampleArray(a0, a1); } return super.getExampleArray(a0, a1); }
public java.lang.Object[] getExampleArray(java.lang.Object a0) { if (isClone) { loadInstance(); return instance.getExampleArray(a0); } return super.getExampleArray(a0); }
public java.lang.Object[] getExampleArray(java.lang.Object a0) { if (isClone) { loadInstance(); return instance.getExampleArray(a0); } return super.getExampleArray(a0); }
public java.lang.Object[] getExampleArray(java.lang.Object a0, boolean a1) { if (isClone) { loadInstance(); return instance.getExampleArray(a0, a1); } return super.getExampleArray(a0, a1); }
public java.lang.Object[] getExampleArray(java.lang.Object a0) { if (isClone) { loadInstance(); return instance.getExampleArray(a0); } return super.getExampleArray(a0); }
public java.lang.Object[] getExampleArray(java.lang.Object a0) { if (isClone) { loadInstance(); return instance.getExampleArray(a0); } return super.getExampleArray(a0); }
public java.lang.Object[] getExampleArray(java.lang.Object a0, boolean a1) { if (isClone) { loadInstance(); return instance.getExampleArray(a0, a1); } return super.getExampleArray(a0, a1); }
public java.lang.Object[] getExampleArray(java.lang.Object a0, boolean a1) { if (isClone) { loadInstance(); return instance.getExampleArray(a0, a1); } return super.getExampleArray(a0, a1); }
public java.lang.Object[] getExampleArray(java.lang.Object a0, boolean a1) { if (isClone) { loadInstance(); return instance.getExampleArray(a0, a1); } return super.getExampleArray(a0, a1); }
public java.lang.Object[] getExampleArray(java.lang.Object a0, boolean a1) { if (isClone) { loadInstance(); return instance.getExampleArray(a0, a1); } return super.getExampleArray(a0, a1); }
public java.lang.Object[] getExampleArray(java.lang.Object a0, boolean a1) { if (isClone) { loadInstance(); return instance.getExampleArray(a0, a1); } return super.getExampleArray(a0, a1); }
public java.lang.Object[] getExampleArray(java.lang.Object a0, boolean a1) { if (isClone) { loadInstance(); return instance.getExampleArray(a0, a1); } return super.getExampleArray(a0, a1); }
public java.lang.Object[] getExampleArray(java.lang.Object a0) { if (isClone) { loadInstance(); return instance.getExampleArray(a0); } return super.getExampleArray(a0); }
public java.lang.Object[] getExampleArray(java.lang.Object a0, boolean a1) { if (isClone) { loadInstance(); return instance.getExampleArray(a0, a1); } return super.getExampleArray(a0, a1); }
public java.lang.Object[] getExampleArray(java.lang.Object a0) { if (isClone) { loadInstance(); return instance.getExampleArray(a0); } return super.getExampleArray(a0); }
public java.lang.Object[] getExampleArray(java.lang.Object a0, boolean a1) { if (isClone) { loadInstance(); return instance.getExampleArray(a0, a1); } return super.getExampleArray(a0, a1); }