Skip to content

Commit 57f018f

Browse files
omp schedule
1 parent ae7d590 commit 57f018f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/APLRRegressor.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1133,7 +1133,7 @@ std::vector<size_t> APLRRegressor::find_terms_eligible_current_indexes_for_a_bas
11331133
void APLRRegressor::estimate_split_point_for_each_term(std::vector<Term> &terms, std::vector<size_t> &terms_indexes)
11341134
{
11351135
bool multithreading{n_jobs != 1 && terms_indexes.size() > 1};
1136-
#pragma omp parallel for schedule(auto) if (multithreading)
1136+
#pragma omp parallel for schedule(guided) if (multithreading)
11371137
for (size_t i = 0; i < terms_indexes.size(); ++i)
11381138
{
11391139
terms[terms_indexes[i]].estimate_split_point(X_train, neg_gradient_current, sample_weight_train, bins, v, min_observations_in_split);

0 commit comments

Comments
 (0)