Changeset 57


Ignore:
Timestamp:
Mar 22, 2004, 2:56:16 PM (18 years ago)
Author:
Jari Häkkinen
Message:

Moved test data to sub-directory data.

Location:
trunk/test
Files:
6 added
5 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/test_kernel.cc

    r52 r57  
    2626 
    2727  cout << "testing the linear kernel" << endl;   
    28   ifstream is("nm_data_centralized.txt");
     28  ifstream is("data/nm_data_centralized.txt");
    2929  theplu::gslapi::matrix transposed_data(is);
    3030  is.close();
     
    3232  theplu::gslapi::matrix data=transposed_data.transpose();
    3333 
    34   is.open("nm_kernel.txt");
     34  is.open("data/nm_kernel.txt");
    3535  theplu::gslapi::matrix kernel_matlab(is);
    3636  is.close();
     
    4848 
    4949  cout << "testing the polynomial kernel of degree 2" << endl;   
    50   is.open("nm_kernel2.txt");
     50  is.open("data/nm_kernel2.txt");
    5151  theplu::gslapi::matrix kernel_matlab2(is);
    5252  is.close();
  • trunk/test/test_svm.cc

    r50 r57  
    1818
    1919
    20   cout << "reading nm_kernel.txt" << endl;   
     20  cout << "reading data/nm_kernel.txt" << endl;   
    2121  //ifstream is("k.txt");
    22   ifstream is("nm_kernel.txt");
     22  ifstream is("data/nm_kernel.txt");
    2323  theplu::gslapi::matrix kernel(is);
    2424  is.close();
     
    2626  theplu::gslapi::matrix k(kernel);
    2727 
    28   cout << "reading nm_target_bin.txt" << endl;   
    29   is.open("nm_target_bin.txt");
     28  cout << "reading data/nm_target_bin.txt" << endl;   
     29  is.open("data/nm_target_bin.txt");
    3030 
    3131  theplu::gslapi::vector target(is);
    3232  is.close();
    3333
    34   cout << "nm_alpha_linear_matlab.txt" << endl;   
    35   is.open("nm_alpha_linear_matlab.txt");
     34  cout << "data/nm_alpha_linear_matlab.txt" << endl;   
     35  is.open("data/nm_alpha_linear_matlab.txt");
    3636  theplu::gslapi::vector alpha_matlab(is);
    3737  is.close();
Note: See TracChangeset for help on using the changeset viewer.