Advertisement
Guest User

example_mlpack

a guest
Aug 17th, 2016
474
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.67 KB | None | 0 0
  1. #include "stdafx.h"
  2. #include <iostream>
  3.  
  4. #include "mlpack\core.hpp"
  5.  
  6. int main(int argc, char** argv)
  7. {
  8.     //pass main's arguments..
  9.     mlpack::CLI::ParseCommandLine(argc, argv);
  10.  
  11.     //some_timer starts ticking..
  12.     mlpack::Timer::Start("some_timer");
  13.  
  14.     //some outputs..
  15.     mlpack::Log::Debug << "Compiled with debugging symbols." << std::endl;
  16.     mlpack::Log::Info << "Some test informational output." << std::endl;
  17.     mlpack::Log::Warn << "A warning!" << std::endl;
  18.  
  19.     //better comment it or..
  20.     //mlpack::Log::Fatal << "Program has crashed." << std::endl;
  21.     mlpack::Log::Warn << "Made it!" << std::endl;
  22.  
  23.     //some_timer stops..
  24.     mlpack::Timer::Stop("some_timer");
  25.  
  26.     return 0;
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement