[mlpack-git] [mlpack] segmentation fault with LogisticRegression API (#428)

Ryan Curtin notifications at github.com
Mon Mar 30 18:43:34 EDT 2015


Hi there,

Just to be completely sure that the matrices are the same size, can you add the following line to `logisticTest()` and see what the output is?

```
std::cout << "x: " << x_train.n_rows << "x" << x_train.n_cols << "; y: " << y_train.n_rows << "x" << y_train.n_cols << ".\n";
```

If you've compiled mlpack from source, you can set the CMake option `-DDEBUG=ON` to get debugging symbols; that will probably shed a bit more light on what's going on here.  To me it looks like you are using the API correctly, but without the context of the rest of the code / an easy way to reproduce the error, I'm not 100% sure when I say that (I may also have overlooked something simple).

---
Reply to this email directly or view it on GitHub:
https://github.com/mlpack/mlpack/issues/428#issuecomment-87863043
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20150330/cc66224e/attachment.html>


More information about the mlpack-git mailing list