def calcEk(oS, k):
    fXk = float(multiply(oS.alphas, oS.labelMat).T * oS.K[:, k] + oS.b)
    Ek = fXk - float(oS.labelMat[k])
    return Ek
dataset/ETHPy150Open Yaoshicn/decaptcha/svmMLiA.py/calcEk/original