[mlpack-git] [mlpack/mlpack] DatasetMapper & Imputer (#694)

Keon Kim notifications at github.com
Tue Jun 14 08:23:55 EDT 2016


> +  const size_t feature = (size_t) CLI::GetParam<int>("feature");
> +  string imputeStrategy = CLI::GetParam<string>("impute_strategy");
> +
> +  // missing value should be specified
> +  if (!CLI::HasParam("missing_value"))
> +    Log::Fatal << "--missing_value must be specified in order to perform "
> +               << "any imputation strategies." << endl;
> +
> +  // warn if user did not specify output_file
> +  if (!CLI::HasParam("output_file"))
> +    Log::Warn << "--output_file is not specified, no "
> +              << "results from this program will be saved!" << endl;
> +
> +  // if custom value is specified, and imputation strategy is not,
> +  // set imputation strategy to "custom"
> +  if (CLI::HasParam("custom_value") && !(imputeStrategy == "custom"))

@stereomatchingkiss you are right, it is now updated :)

---
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/694/files/5a517c25ef55de1f4814dc3605190d17f868ff82#r66958936
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160614/a40c56fc/attachment.html>


More information about the mlpack-git mailing list