[mlpack-git] [mlpack/mlpack] Modeling LSH For Performance Tuning (#749)
Ryan Curtin
notifications at github.com
Tue Aug 23 15:03:17 EDT 2016
> + //! Data points for y-axis.
> + const arma::mat* yData;
> +};
> +
> +/**
> + * Returns the value of the objective function for some coordinates (alpha,
> + * beta, gamma).
> + * This is the mean squared error for the current parameters or coordinates.
> + */
> +double DefaultObjectiveFunction::Evaluate(const arma::mat& coordinates) const
> +{
> + // Use extra variables to make code readable.
> + double alpha = coordinates(0, 0);
> + double beta = coordinates(1, 0);
> + double gamma = coordinates(2, 0);
> + double M = (double) NumFunctions();
You can mark these const.
--
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#r75930415
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160823/da4c2887/attachment.html>
More information about the mlpack-git
mailing list