Skip to content

Commit

Permalink
removed build step
Browse files Browse the repository at this point in the history
  • Loading branch information
fracpete committed Oct 6, 2024
1 parent 64413f1 commit d79dd84
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions src/main/java/mekaexamples/classifiers/TrainTestSet.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
* Note: The datasets must have been prepared for Meka already and compatible.
*
* @author FracPete (fracpete at waikato dot ac dot nz)
* @version $Revision$
*/
public class TrainTestSet {

Expand All @@ -56,11 +55,10 @@ public static void main(String[] args) throws Exception {
if (msg != null)
throw new IllegalStateException(msg);

System.out.println("Build BR classifier on " + args[0]);
BR classifier = new BR();
// further configuration of classifier
classifier.buildClassifier(train);

System.out.println("Build BR classifier on " + args[0]);
System.out.println("Evaluate BR classifier on " + args[1]);
String top = "PCut1";
String vop = "3";
Expand Down
4 changes: 1 addition & 3 deletions src/main/java/mekaexamples/classifiers/TrainTestSplit.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
* And the percentage must be between 0 and 100.
*
* @author FracPete (fracpete at waikato dot ac dot nz)
* @version $Revision$
*/
public class TrainTestSplit {

Expand All @@ -53,11 +52,10 @@ public static void main(String[] args) throws Exception {
Instances train = new Instances(data, 0, trainSize);
Instances test = new Instances(data, trainSize, data.numInstances() - trainSize);

System.out.println("Build BR classifier on " + percentage + "%");
BR classifier = new BR();
// further configuration of classifier
classifier.buildClassifier(train);

System.out.println("Build BR classifier on " + percentage + "%");
System.out.println("Evaluate BR classifier on " + (100.0 - percentage) + "%");
String top = "PCut1";
String vop = "3";
Expand Down

0 comments on commit d79dd84

Please sign in to comment.