change method to calc confusion matrix
fix weight vector