New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CCARTree::CARTtrain crashes on certain data input #4282
Comments
@rayrapetyan ok i can reproduce this error on linux... interesting enough the same is not true on OSX :( i'll get back to you ASAP when i figured out what's going wrong. |
Thanks! Mine was FreeBSD. It could be on OSX allocator just returns max avail memory instead of a crash or something like that... I've also noticed that on another data sets training can take incredibly high amount of time (e.g. about 4 seconds for < 100 rows of data, or hours for few thousands of rows). It could be the same issue as described here. Let's see. |
@rayrapetyan i've already found out what's the root cause of the error.... there's a buffer overflow, so whatever osx returns is garbage, or it should be. currently i'm figuring out where's the logic error with the buffer overflow. |
@rayrapetyan note that row = feature in case of shogun, i.e. that's it column oriented (each column is an example) |
Yeah, I've struggled with that already. But in my example there are 3 "vectors of features" with 25 features in each. I've double-checked cycle:
It fills 3 values as it should, so no overflow there... |
@rayrapetyan ah yeah, no the overflow is in CARTree itself. your code is fine. |
@rayrapetyan btw regarding the runtime: do you have categoricals? i.e. where you set in case your problem is a binary classification or regression, today i'll push a patch that'll speed-up things significantly... if it's multiclass i am afraid that you'll have to wait longer for a speedup heuristics. |
convert whatever is possible to const and use linalg wherever possible optimize set_const for Eigen backend CMath::argsort use lambda instead of compartor class optimize CMath::pow(2,n) in case of integer fix shogun-toolbox#4282: segfault in CARTree
Tested on 6.1.3 branch. With attached data process crashes on:
SGVector<index_t> subsetr(num_vecs-count_left);
trying to allocate -1401 bytes of memory.
There is some logical error before this point which I'm not able to determine.
Note:
The text was updated successfully, but these errors were encountered: