added a clearWeights() method to LogisticRegression