• codingforfun's avatar
    #11143 [FIX] Normalize node risk with sample weight sum · 24e2e0d3
    codingforfun authored
    In case of regression trees, node risk is computed as sum of squared
    error. To get a meaningfull value to compare with it needs to be
    normalized to the number of samples in the node (or more generally to
    the sum of sample weights in this node). Otherwise the sum of squared
    error is highly dependend on the number of samples in the node and
    comparision with `regressionAccuracy` parameter is not very meaningful.
    
    After normalization `node_risk` means in fact sample variance for all
    samples in the node, which makes much more sence and seams to be what
    was originaly intended by the code given that node risk is later used as
    a split termination criteria by
    ```
    sqrt(node.node_risk) < params.getRegressionAccuracy()
    ```
    24e2e0d3
Name
Last commit
Last update
..
calib3d Loading commit data...
core Loading commit data...
cudaarithm Loading commit data...
cudabgsegm Loading commit data...
cudacodec Loading commit data...
cudafeatures2d Loading commit data...
cudafilters Loading commit data...
cudaimgproc Loading commit data...
cudalegacy Loading commit data...
cudaobjdetect Loading commit data...
cudaoptflow Loading commit data...
cudastereo Loading commit data...
cudawarping Loading commit data...
cudev Loading commit data...
features2d Loading commit data...
flann Loading commit data...
highgui Loading commit data...
imgcodecs Loading commit data...
imgproc Loading commit data...
java Loading commit data...
ml Loading commit data...
objdetect Loading commit data...
photo Loading commit data...
python Loading commit data...
shape Loading commit data...
stitching Loading commit data...
superres Loading commit data...
ts Loading commit data...
video Loading commit data...
videoio Loading commit data...
videostab Loading commit data...
viz Loading commit data...
world Loading commit data...
CMakeLists.txt Loading commit data...