goupdown
goupdown
I have the same issue. I use Java program which calls c_api.h functions via JNI. Trying to call XGBoosterPredict function from multiple Java threads causes program crash. But this is...
I'm thinking to do the same. How did you clone the boosters? Load from file several times?
Bulk prediction code is in the original message above right before the line: printf("Bulk predict: %dms\n", time() - st);
> Aren't you calling XGBoosterPredict once in one case and 883567 times in the other? I don't think it's surprising that making a single prediction on one million rows of...
> I guessed that C++ compiler have done the opimisation Yes it could. But this optimization will not change the performance significantly. Why did not compiler do the same optimization...
> After jumping through several hoops, you end up running a loop over the rows in the matrix. The extra time comes from the overhead of getting to that point...
I'm using XGBoosterSetParam(h_booster, "nthread", "1"). This is to narrow the issue to the code and algorithm. Multi-threading increases performance, really. But this is not the reason to write code that...
Good guess. Should be confirmed by XGBoost developers. But this is related to 2x predict() method slowdown. Also I see that one row matrix creation takes time and gives 2x...
Removed weights from train.csv. Nothing changed.