Skip to content

Commit

Permalink
simple update to classifier name
Browse files Browse the repository at this point in the history
  • Loading branch information
elhaj committed Jul 7, 2016
1 parent ba3e649 commit 34e72a3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions MachineLearning/src/classifier/MyFilteredClassifier.java
Original file line number Diff line number Diff line change
Expand Up @@ -129,11 +129,11 @@ public void classify() {
*/
public static void main (String[] args) {

classifierName = "SMO";//SMO
classifierName = "NaiveBayes";//SMO

MyFilteredClassifier classifier;
String testFile = "Gov";//Chair, Gov
String model = "TwoClassesSMO";
String model = "TwoClasses"+classifierName;
for(int i=1 ; i<7; i++){
classifier = new MyFilteredClassifier();
classifier.load("MachineLearning/test/"+testFile+"_"+i+".txt");
Expand Down
2 changes: 1 addition & 1 deletion MachineLearning/src/classifier/MyFilteredLearner.java
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ public void saveModel(String fileName) {
*/
public static void main (String[] args) throws Exception {
//classifier name (either NaiveBayes or SMO for this summer school experiment)
classifierName = "SMO";//SMO
classifierName = "NaiveBayes";//SMO

System.out.println("Present Project Directory : "+ System.getProperty("user.dir"));
MyFilteredLearner learner;
Expand Down
2 changes: 1 addition & 1 deletion MachineLearning/src/classifier/ReducedFilteredLearner.java
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ public void saveModel(String fileName) {
*/
public static void main (String[] args) throws Exception {

classifierName = "SMO";//SMO
classifierName = "NaiveBayes";//SMO


System.out.println("Present Project Directory : "+ System.getProperty("user.dir"));
Expand Down

0 comments on commit 34e72a3

Please sign in to comment.