[mlpack-git] [mlpack/mlpack] Modeling LSH For Performance Tuning (#749)
Ryan Curtin
notifications at github.com
Sat Aug 13 12:23:35 EDT 2016
> + // Vector of k values.
> + Timer::Start("neighbor_statistic_regression");
> + arma::Col<size_t> kValues = arma::linspace<arma::Col<size_t>>(1, k, k);
> + ApproximateKNNStatistics(referenceSizes, kValues, Ek, Gk);
> + Timer::Stop("neighbor_statistic_regression");
> +}
> +
> +
> +// Predict parameters for LSH that will have acceptable recall.
> +template <typename SortPolicy, typename ObjectiveFunction>
> +void LSHModel<SortPolicy, ObjectiveFunction>::Predict(const size_t datasetSize,
> + const size_t k,
> + const double minRecall)
> +{
> + // Sanity check. Recall can't be greater/equal to 1, or negative.
> + if (minRecall < 0 || minRecall >=1)
Missing space after the `>=` :)
--
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/749/files/cdcb575826bfb3bd0ef4cafacf465435b3d6d144#r74688897
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160813/edd19741/attachment.html>
More information about the mlpack-git
mailing list