필터 지우기
필터 지우기

'MinParentSize' and 'MinLeafSize' -- regression tree

조회 수: 4 (최근 30일)
Salad Box
Salad Box 2019년 1월 15일
편집: Salad Box 2019년 1월 15일
It introduces the MinParentSize below as:
Minimum number of branch node observations, specified as the comma-separated pair consisting of 'MinParentSize' and a positive integer value. Each branch node in the tree has at least MinParentSize observations. If you supply both MinParentSize and MinLeafSize, fitrtree uses the setting that gives larger leaves: MinParentSize = max(MinParentSize,2*MinLeafSize).
Example: 'MinParentSize',8
Data Types: single | double
My question is about this line: MinParentSize = max(MinParentSize,2*MinLeafSize). Why there is a 2*? And could you give me an example in this case?

답변 (0개)

카테고리

Help CenterFile Exchange에서 Financial Data에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by