Show
Ignore:
Timestamp:
07/09/07 18:30:55 (5 years ago)
Author:
leo
Message:
 
Location:
sandbox/trunk/AdaBoost/test/org/xerial/mining/adaboost
Files:
1 modified
2 moved

Legend:

Unmodified
Added
Removed
  • sandbox/trunk/AdaBoost/test/org/xerial/mining/adaboost/AdaBoostTest.java

    r1259 r1260  
    2929    public void tearDown() throws Exception 
    3030    {} 
     31 
     32    private String getFile(String fileNameInTestPackage) 
     33    { 
     34        return FileResource.find(AdaBoostTest.class, "sampledata.tab").getFile(); 
     35    } 
    3136     
    3237    @Test 
     
    3439    { 
    3540        AdaBoost adaBoost = new AdaBoost(); 
    36          
    37         String sampleFile = FileResource.find(AdaBoostTest.class, "sampledata.tab").getFile(); 
    38          
    39         adaBoost.runPrediction(sampleFile, sampleFile); 
    40          
     41        adaBoost.runPrediction(getFile("sampledata.tab"), getFile("sampledata.tab")); 
     42    } 
     43     
     44    @Test 
     45    public void testdata() throws IOException 
     46    { 
     47        AdaBoost adaBoost = new AdaBoost(); 
     48        adaBoost.runPrediction(getFile("boolean-test8.txt"), getFile("boolean-test8.txt")); 
    4149    } 
    4250