私はScikit-learnの初心者です。私はRandomForestと協力していますSkleanランダムフォレストOOBサンプルを入手
森林の各樹木に対してどのようにOOB Sambleを取得できますか?
RANDOM_STATE = 1708
clf = RandomForestClassifier(warm_start=True, oob_score=True,
max_features=None,
random_state=RANDOM_STATE)
clf.fit(KDD_data, y)
# Loop through the list of tree of the forest
for tree in clf.estimators_:
# Get sample used to build the tree
# Get the OOB sample for that tree
私は、森林の各ツリーと残りの袋のサンプルを作るために使用されたサンプルを入手したいと思います。
どうすればいいですか?