[mlpack-git] [mlpack/mlpack] Binarize Function + Test (#666)

Keon Kim notifications at github.com
Sat Jun 18 22:32:02 EDT 2016


> +int main(int argc, char** argv)
> +{
> +  // Parse command line options.
> +  CLI::ParseCommandLine(argc, argv);
> +  const string inputFile = CLI::GetParam<string>("input_file");
> +  const string outputFile = CLI::GetParam<string>("output_file");
> +  const size_t dimension = (size_t) CLI::GetParam<int>("dimension");
> +  const double threshold = CLI::GetParam<double>("threshold");
> +
> +  // Check on data parameters.
> +  if (!CLI::HasParam("dimension"))
> +    Log::Warn << "You did not specify --dimension, so the program will perform "
> +        << "binarize on every dimensions." << endl;
> +
> +  if (!CLI::HasParam("threshold"))
> +    Log::Warn << "You did not specify --threshold, so the threhold "

@rcurtin  oops, it is now fixed thanks 

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/mlpack/mlpack/pull/666/files/b54902e75ba9c88ab6f25660acde424db805ec3f#r67609292
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160618/1abf7ed9/attachment.html>


More information about the mlpack-git mailing list