[mlpack-git] [mlpack] Mean shift clustering (#388)
Ryan Curtin
notifications at github.com
Mon Jan 26 21:49: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);
Why not just use the constructor to set the bandwidth?
---
Reply to this email directly or view it on GitHub:
https://github.com/mlpack/mlpack/pull/388/files#r23584056
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20150126/78357d29/attachment.html>
More information about the mlpack-git
mailing list