Changeset 223


Ignore:
Timestamp:
Jan 28, 2005, 1:19:58 AM (18 years ago)
Author:
Peter
Message:

* empty log message *

Location:
trunk/test
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/test_regression_linear.cc

    r217 r223  
    3737
    3838  theplu::statistics::RegressionLinear r;
    39   r.fit_weighted(x,w,y);
    40   printf("# best fit: Y = %g + %g X\n", r.m(), r.k());
    41 
    42   r.fit(x,y);
    43   printf("# best fit: Y = %g + %g X\n", r.m(), r.k());
     39  r.fit(x,w,y);
    4440
    4541  if (ok)
  • trunk/test/test_regression_local.cc

    r217 r223  
    2828  }
    2929 
    30   gslapi::vector x_est(11);
    31   for (size_t i=0; i<11; i++)
    32     x_est(i)=i;
    33 
    3430  statistics::RegressionLinear r;
    3531  statistics::RegressionKernelBox k;
    36   statistics::RegressionLocal rl(x,y,r,k,x_est);
     32  statistics::RegressionLocal rl(x,y,r,k,100);
    3733  rl.fit(0.1);
    3834   
  • trunk/test/test_svm.cc

    r209 r223  
    2121
    2222
    23   std::cout << ULLONG_MAX << endl;
    2423
    2524//  ifstream is("data/nm_kernel.txt");
     
    7271    new theplu::cpptools::PolynomialKernelFunction();
    7372  theplu::cpptools::Kernel kernel(data,*kf);
    74   theplu::gslapi::matrix m=kernel.get();
    75   std::cout << "kernel:\n" << m << "\n";
    76   theplu::cpptools::SVM svm(kernel.get(),target);
     73  //theplu::gslapi::matrix m=kernel.get();
     74  //std::cout << "kernel:\n" << m << "\n";
     75  theplu::cpptools::SVM svm(kernel,target);
    7776  //  svm.set_c(1);
    78   svm.train();
     77  //svm.train();
    7978 
    8079  return 0;
Note: See TracChangeset for help on using the changeset viewer.