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
Parallel RF #3322
Parallel RF #3322
Conversation
CFeatures* shallow_copy_features=nullptr; | ||
|
||
SG_SDEBUG("Using underlying feature matrix with %d dimensions and %d feature vectors!\n", num_features, num_vectors); | ||
SGMatrix<ST> shallow_copy_matrix = SGMatrix<ST>(feature_matrix.matrix, num_features, num_vectors, false); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can use the copy constructor of SGMatrix
So this works? |
Yes, it works. outputs: https://gist.github.com/Saurabh7/40889d51c856f73c33337408eb3a7fd1 |
I guess you can force a single thread for the result tests. |
Ok so few things for this: Regarding If objects are safe to use in other algorithms, |
Also I found the changes in oob error were because, randomly generated indices in multithreaded version keep chaning even thought I set seed in sg_rand. |
And merge :) |
ah crap, it wasnt squashed ;) |
@karlnapf ah ok sorry :) Next time I will put an explicit comment when final. |
WIP