Function calc_weight

Synopsis

#include <include/thundergbm/tree.h>

HOST_DEVICE void calc_weight(float_type lambda)

Description

No description yet.

Source

Lines 34-36 in include/thundergbm/tree.h.

HOST_DEVICE void calc_weight(float_type lambda) {
    this->base_weight = -sum_gh_pair.g / (sum_gh_pair.h + lambda);
}





Add Discussion as Guest

Log in