<p>In <a href="https://github.com/mlpack/mlpack/pull/691#discussion_r68644749">src/mlpack/methods/lsh/lsh_search_impl.hpp</a>:</p>
<pre style='color:#555'>> +
> + // Calculate scores. score = distance^2.
> + arma::vec scores(2 * numProj);
> + scores.rows(0, numProj - 1) = arma::pow(limLow, 2);
> + scores.rows(numProj, (2 * numProj) - 1) = arma::pow(limHigh, 2);
> +
> + // Actions vector describes what perturbation (-1/+1) corresponds to a score.
> + arma::Col<short int> actions(2 * numProj); // will be [-1 ... 1 ...]
> + actions.rows(0, numProj - 1) = // first numProj rows
> + -1 * arma::ones< arma::Col<short int> > (numProj); // -1s
> + actions.rows(numProj, (2 * numProj) - 1) = // last numProj rows
> + arma::ones< arma::Col<short int> > (numProj); // 1s
> +
> +
> + // Acting dimension vector shows which coordinate to transform according to
> + // actions described by actions vector
</pre>
<p>I always feel so pedantic writing this, but can you finish the sentence with a period? I think it's important to have complete sentences in documentation for clarity, so that people for whom English isn't the first language can have a better understanding.</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/mlpack/mlpack/pull/691/files/71eda99e207a9b91581504e11a9e14d38838bc9f#r68644749">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/AJ4bFF97yvLilzPFwH0_H6RdHMTXA9Fmks5qQCtKgaJpZM4IxQW5">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFJU2onH3mB75iTdJJkRhn1HqM_Pdks5qQCtKgaJpZM4IxQW5.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
<link itemprop="url" href="https://github.com/mlpack/mlpack/pull/691/files/71eda99e207a9b91581504e11a9e14d38838bc9f#r68644749"></link>
<meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>