[mlpack-git] [mlpack] segmentation fault with LogisticRegression API (#428)
John Lees
notifications at github.com
Mon Mar 30 19:19:33 EDT 2015
Thanks for the quick response!
Looks like the size is ok:
x: 3069x1; y: 3069x1.
Rerunning with the debugging symbols gives:
==9284== Process terminating with default action of signal 11 (SIGSEGV)
==9284== Access not within mapped region at address 0xFFF001000
==9284== at 0x5017C82: mlpack::regression::LogisticRegressionFunction::Evaluate(arma::Mat<double> const&) const (logistic_regression_function.cpp:80)
Line 80 is:
77 for (size_t i = 0; i < responses.n_elem; ++i)
78 {
79 if (responses[i] == 1)
80 result += log(sigmoid[i]);
81 else
82 result += log(1.0 - sigmoid[i]);
83 }
so it seems sigmoid, defined earlier in the function, is a different length to responses?
If that doesn't help, I can provide a minimal working example?
---
Reply to this email directly or view it on GitHub:
https://github.com/mlpack/mlpack/issues/428#issuecomment-87874493
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20150330/6e61f4fd/attachment.html>
More information about the mlpack-git
mailing list