[mlpack-git] [mlpack/mlpack] Modeling LSH For Performance Tuning (#749)

Ryan Curtin notifications at github.com
Tue Aug 23 15:02:35 EDT 2016


> +
> +    /**
> +     * Parameterized constructor.
> +     *
> +     * @param xData Vector of x - the sizes of the reference set when performing
> +     *    kNN.
> +     * @param kData Vector of k - the kth nearest neighbor for which we
> +     *    calculated the statistic.
> +     * @param yData Matrix of y, one for each (x, k) value.
> +     */
> +    DefaultObjectiveFunction(const arma::Col<size_t>& xData, 
> +                             const arma::Col<size_t>& kData, 
> +                             const arma::mat& yData)
> +      : xData(&xData), kData(&kData), yData(&yData)  { };
> +
> +    //! Return the number of functions

If you are only using L-BFGS, you should be able to remove this function. It should only be needed by SGD-like optimizers.

-- 
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/57c9d5e634d7d3d7e2ca1618353fe37d9e23b34a#r75930277
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160823/9c067b39/attachment.html>


More information about the mlpack-git mailing list