<p>Thanks for the quick response!</p>
<p>Looks like the size is ok:<br>
x: 3069x1; y: 3069x1.</p>
<p>Rerunning with the debugging symbols gives:<br>
==9284== Process terminating with default action of signal 11 (SIGSEGV)<br>
==9284== Access not within mapped region at address 0xFFF001000<br>
==9284== at 0x5017C82: mlpack::regression::LogisticRegressionFunction::Evaluate(arma::Mat const&) const (logistic_regression_function.cpp:80)</p>
<p>Line 80 is:<br>
77 for (size_t i = 0; i < responses.n_elem; ++i)<br>
78 {<br>
79 if (responses[i] == 1)<br>
80 result += log(sigmoid[i]);<br>
81 else<br>
82 result += log(1.0 - sigmoid[i]);<br>
83 }</p>
<p>so it seems sigmoid, defined earlier in the function, is a different length to responses?</p>
<p>If that doesn't help, I can provide a minimal working example?</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/mlpack/mlpack/issues/428#issuecomment-87874493">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFGZmFL-W6jy_nQQ1HKDsFtcvzd1-ks5n6dGFgaJpZM4D3Y7n.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/issues/428#issuecomment-87874493"></link>
<meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>