[mlpack-git] [mlpack] Mean shift clustering (#388)

Ryan Curtin notifications at github.com
Tue Jan 27 08:50:34 EST 2015


> +  }
> +  
> +  // Make sure we have an output file if we're not doing the work in-place.
> +  if (!CLI::HasParam("in_place") && !CLI::HasParam("output_file") &&
> +      !CLI::HasParam("centroid_file")) {
> +    Log::Warn << "--output_file, --in_place, and --centroid_file are not set; "
> +    << "no results will be saved." << std::endl;
> +  }
> +  
> +  arma::mat dataset;
> +  data::Load(inputFile, dataset, true); // Fatal upon failure.
> +  arma::mat centroids;
> +  arma::Col<size_t> assignments;
> +  
> +  kernel::GaussianKernel kernel;
> +  kernel.Bandwidth(bandwidth);

Yeah, I meant `kernel::GaussianKernel kernel(bandwidth);`. :)

---
Reply to this email directly or view it on GitHub:
https://github.com/mlpack/mlpack/pull/388/files#r23608287
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20150127/2a19fa06/attachment.html>


More information about the mlpack-git mailing list