AI Wiki中文/EN

Random forests: change which features each tree gets to use

随机森林

Build a small exact forest with node-wise feature sampling, then distinguish vote diversity, impurity credit and permutation diagnostics.

On this pageIntuitionMathematics & methodImplementationLimitationsExercisesResearch connections

Let a strong feature sit out a few decisions

Suppose two sensors report the same binary switch state, and that state determines a device’s label. A third column is a varying nuisance reading. A greedy tree that sees all columns can keep choosing the first sensor. Drawing different training samples does not necessarily change that choice.

A random forest adds another random decision: at each eligible node, show the tree only a subset of the features. Sometimes the first sensor is unavailable, so another feature must compete. The threshold is still chosen by a split criterion; it is not simply drawn at random.

The small forest below uses bootstrap samples and a fresh feature subset at each node. It records those subsets and the original sampled row indices, so a reader can inspect exactly what each tree saw. In our constructed example, feature sampling spreads the splits across both sensors and sometimes the nuisance column. The forest’s error on the chosen evaluation grid remains zero. More diverse trees are visible; better accuracy is not established.

Breiman’s January 2001 author manuscript gives a broad randomized-tree definition, then studies random input selection at each node with bootstrap sampling. The journal paper appeared in October 2001; those are different dates for the manuscript and publication, not competing invention dates. Author manuscript, definition 1.1 and §§3.1–4; journal record.

Randomize the candidates, then optimize within them

Assume n labeled observations, d numerical features and binary labels 0 or 1. For each tree, draw n row indices with replacement. An index drawn three times contributes three observations to the tree; it must not be silently deduplicated. The bagging topic explains bootstrap averaging and out-of-bag evaluation in detail.

At a node, choose m distinct feature indices uniformly from the d available indices. Repeat this selection at the next eligible node, rather than choosing one feature subset for the entire tree. If q of the d features belong to a particular useful set, simple counting gives:

Pr⁡(none of the q features is offered)=(d−qm)(dm),(ab)=0 when b>a.\Pr(\text{none of the }q\text{ features is offered})=\frac{\binom{d-q}{m}}{\binom dm},\qquad \binom ab=0\text{ when }b>a.

This counts opportunities, not accuracy. With one designated signal among three features, m=1 offers it with probability 1/3, while m=3 always offers it. More candidates can improve an individual split, but may also let the same dominant signal determine many trees. No choice of m universally optimizes the resulting forest.

For each offered feature, our program tests exact midpoints between its distinct values in the node. Both children must meet min_leaf. If pₜ is the fraction of label-one observations at node t, its binary Gini impurity and a candidate’s decrease are:

Gt=2pt(1−pt),Δt=Gt−nLntGL−nRntGR.G_t=2p_t(1-p_t),\qquad \Delta_t=G_t-\frac{n_L}{n_t}G_L-\frac{n_R}{n_t}G_R.

The largest strictly positive decrease wins. Ties use the smaller feature index, then the smaller threshold. Repeated feature values stay together. A maximum depth bounds the teaching trees. If none of the sampled features permits an improving split, the node becomes a leaf; this program does not inspect additional features outside the sampled subset. Its behavior is explicitly defined here, without claiming identical stopping rules to a particular library.

Each leaf votes for its bootstrap majority class, choosing zero on a tie. For B trees, the forest also chooses zero on a tied vote:

y^(x)=1 ⁣[∑b=1Bhb(x)>B2].\widehat y(x)=\mathbf1\!\left[\sum_{b=1}^{B}h_b(x)>\frac B2\right].

This hard-vote convention matters. The fixed scikit-learn 1.7.2 guide says its classifier averages tree probability predictions instead. For example, three leaf probabilities 0.51, 0.51 and 0 for class one produce two hard votes for one, but their average is 0.34. The two aggregation rules can disagree. Official guide, §1.11.2.1.

Independence has to name what is held fixed

Independently randomized trees can still make the same errors across cases. Holding the training set and one input x fixed, ideal independent randomizations give independent tree votes. Holding two fitted trees fixed and varying the case instead can reveal shared error patterns. These are different probability experiments.

Breiman’s analysis uses expected vote margin, called strength, and correlations of raw margins across cases. It does not identify those quantities with correlation between input columns. Our printed pair disagreement is a simpler descriptive count, not the paper’s correlation statistic or a bound on future error. Decreasing m can deny trees useful splits as well as diversify them. Author manuscript, §2.2.

For a fixed training set and input, vote frequencies converge under ideal IID tree randomization by the law of large numbers. If the limiting winning class has a strict vote advantage, the prediction eventually stabilizes. A tied limiting vote needs separate care. None of this says that every added finite tree improves accuracy, or that a forest cannot fit misleading training structure.

A small forest with an audit trail

fit_forest accepts a nonempty rectangular feature matrix with at least one column, using integers or Fraction values. Labels must be integer zero or one; Booleans and floats are rejected. The number of trees, feature-subset size and minimum leaf size are positive integers; depth and seed are nonnegative integers. The subset size cannot exceed the matrix width.

The returned nodes retain their sample count, impurity, sampled feature tuple and selected split. Counts include bootstrap repetitions. Separate pseudorandom streams generate bags and feature choices: changing max_features with the same seed preserves the bags. These seeded runs are reproducible in the tested Python runtime, not a proof that finite pseudorandom streams are mathematically independent or stable across all Python versions.

Prediction and evaluation require nonempty matrices of the fitted width. They do not train again. Internal tree helpers expect the fitted node structure; arbitrary edited model dictionaries are outside their contract. The model uses exact rational scores and thresholds, with no numerical tolerance. Only the displayed MDI values are rounded to six decimal places.

from collections import Counter, namedtuple
from fractions import Fraction as F
from random import Random

Node = namedtuple('Node', 'prediction size impurity features feature threshold gain left right')


def seq(value):
    if type(value) not in (list, tuple):
        raise ValueError('expected list or tuple')
    return value


def rational(value):
    if type(value) is int or isinstance(value, F):
        return F(value)
    raise ValueError('use integers or Fraction, not bool or float')


def matrix(rows, width=None):
    rows = tuple(tuple(rational(x) for x in seq(row)) for row in seq(rows))
    if not rows:
        raise ValueError('nonempty matrix required')
    d = len(rows[0]) if width is None else width
    if d == 0 or any(len(row) != d for row in rows):
        raise ValueError('positive, consistent feature width required')
    return rows


def binary(labels, n):
    labels = tuple(seq(labels))
    if len(labels) != n or any(type(y) is not int or y not in (0, 1) for y in labels):
        raise ValueError('matching integer labels 0 or 1 required')
    return labels


def integer(value, minimum):
    if type(value) is not int or value < minimum:
        raise ValueError('invalid integer parameter')
    return value


def fit_forest(X, y, trees=13, max_features=1, max_depth=3, min_leaf=1, seed=17):
    X = matrix(X); y = binary(y, len(X))
    n, d = len(X), len(X[0])
    trees = integer(trees, 1); max_features = integer(max_features, 1)
    max_depth = integer(max_depth, 0); min_leaf = integer(min_leaf, 1)
    seed = integer(seed, 0)
    if max_features > d:
        raise ValueError('max_features exceeds feature count')
    bag_rng, feature_rng = Random(seed), Random(seed + 1)
    bags = tuple(tuple(bag_rng.randrange(n) for _ in range(n)) for _ in range(trees))
    totals = [F()] * d

    def impurity(ids):
        p = F(sum(y[i] for i in ids), len(ids))
        return 2 * p * (1 - p)

    def build(ids, depth):
        g = impurity(ids)
        pred = int(2 * sum(y[i] for i in ids) > len(ids))
        node = Node(pred, len(ids), g, (), None, None, F(), None, None)
        if not g or depth == max_depth or len(ids) < 2 * min_leaf:
            return node
        features = tuple(sorted(feature_rng.sample(range(d), max_features)))
        node = node._replace(features=features)
        best, best_gain = None, F()
        for j in features:
            values = sorted(set(X[i][j] for i in ids))
            for lo, hi in zip(values, values[1:]):
                t = (lo + hi) / 2
                left = tuple(i for i in ids if X[i][j] <= t)
                right = tuple(i for i in ids if X[i][j] > t)
                if min(len(left), len(right)) < min_leaf:
                    continue
                gain = g - F(len(left), len(ids)) * impurity(left) - F(len(right), len(ids)) * impurity(right)
                if gain > best_gain:
                    best, best_gain = (j, t, left, right), gain
        if best is None:
            return node
        j, t, left, right = best
        totals[j] += F(len(ids), n) * best_gain
        return node._replace(feature=j, threshold=t, gain=best_gain,
                             left=build(left, depth+1), right=build(right, depth+1))

    roots = tuple(build(bag, 0) for bag in bags)
    return {'width': d, 'roots': roots, 'bags': bags,
            'mdi_raw': tuple(value / trees for value in totals)}


def tree_vote(node, row):
    # Internal helper: fitted node and already validated row.
    while node.feature is not None:
        node = node.left if row[node.feature] <= node.threshold else node.right
    return node.prediction


def vote_matrix(forest, X):
    X = matrix(X, forest['width'])
    return tuple(tuple(tree_vote(root, row) for root in forest['roots']) for row in X)


def predict(forest, X):
    votes = vote_matrix(forest, X)
    return tuple(int(2 * sum(row) > len(row)) for row in votes)


def error(forest, X, y):
    predictions = predict(forest, X)
    y = binary(y, len(predictions))
    return F(sum(a != b for a, b in zip(predictions, y)), len(y))


def permutation_change(forest, X, y, seed=31):
    X = matrix(X, forest['width']); y = binary(y, len(X))
    rng = Random(integer(seed, 0)); baseline = error(forest, X, y)
    changes = []
    for j in range(forest['width']):
        order = list(range(len(X))); rng.shuffle(order)
        shuffled = tuple(tuple(X[order[i]][k] if k == j else X[i][k]
                               for k in range(forest['width'])) for i in range(len(X)))
        changes.append(error(forest, shuffled, y) - baseline)
    return tuple(changes)


if __name__ == '__main__':
    X = tuple((i % 2, i % 2, (7*i) % 17) for i in range(16))
    y = tuple(i % 2 for i in range(16))
    test = tuple((label, label, noise) for label in (0, 1) for noise in (1, 4, 8, 12, 16))
    truth = tuple(row[0] for row in test)
    for m in (3, 1):
        forest = fit_forest(X, y, max_features=m)
        votes = vote_matrix(forest, test)
        disagree = sum(a != b for row in votes for i,a in enumerate(row) for b in row[i+1:])
        pairs = len(test) * 13 * 12 // 2
        print('m:', m, 'root features:', tuple(sorted(Counter(t.feature for t in forest['roots']).items())))
        print('error:', error(forest, test, truth), 'pair disagreement:', F(disagree, pairs))
        print('raw MDI:', tuple('%.6f' % value for value in forest['mdi_raw']))
        print('permuted error changes:', tuple(str(v) for v in permutation_change(forest, test, truth)))

Actual output:

m: 3 root features: ((0, 13),)
error: 0 pair disagreement: 0
raw MDI: ('0.481971', '0.000000', '0.000000')
permuted error changes: ('3/5', '0', '0')
m: 1 root features: ((0, 5), (1, 6), (2, 2))
error: 0 pair disagreement: 3/65
raw MDI: ('0.184495', '0.282813', '0.014663')
permuted error changes: ('0', '3/5', '0')

The two signal columns are exact duplicates, both equal to the label. The nuisance values in training are a fixed permutation-like sequence. Evaluation crosses both labels with the same five nuisance values, giving ten explicitly constructed cases; it is not a random estimate of population performance.

With all three features available, all thirteen roots choose feature zero. The identical signal in feature one receives no split credit because the tie rule always prefers zero. With m=1, five roots choose zero, six choose one and two choose the nuisance feature. Pair disagreement on the grid rises from zero to 3/65, while forest error stays at zero. Disagreement counts unordered tree pairs that predict differently, divided by the number of grid cases times the number of pairs. It is not Pearson correlation and does not require inventing a value for a constant error vector.

What the two importance reports measure

The code reports the mean unnormalized decrease in impurity for each feature:

Ij=1B∑b=1B∑t∈b: feature⁡(t)=jntnΔt.I_j=\frac1B\sum_{b=1}^{B}\sum_{t\in b:\,\operatorname{feature}(t)=j}\frac{n_t}{n}\Delta_t.

This gives credit for decreasing training impurity, weighting a split by its bootstrap sample fraction. It is neither a count of split occurrences nor a value normalized to sum to one. The sum telescopes over each tree:

∑jIj=1B∑b(Gb,root−∑ℓ∈leaves(b)nℓnGℓ).\sum_j I_j=\frac1B\sum_b\left(G_{b,\mathrm{root}}-\sum_{\ell\in\mathrm{leaves}(b)}\frac{n_\ell}{n}G_\ell\right).

The tests check this identity. A forest containing only unsplit roots has all-zero importance. In our m=1 run, the nuisance column earns positive training credit, about 0.014663, although shuffling it on this grid changes no forest predictions enough to change the error rate.

permutation_change evaluates the fixed forest, shuffles one evaluation column at a time, and evaluates again. Its sign is defined using error, rather than an accuracy score:

Δjperm=error⁡(f,Dπj)−error⁡(f,D).\Delta_j^{\mathrm{perm}}=\operatorname{error}(f,D_{\pi_j})-\operatorname{error}(f,D).

A positive value means error increased after that permutation; negative values are possible. The function performs one seeded permutation per column, with labels unchanged and no refitting. It is an individual randomized diagnostic, not the expectation over permutations or an uncertainty interval.

For m=3, shuffling feature zero raises error by 3/5; shuffling the unused duplicate changes nothing. For m=1, this particular forest and permutation instead show a 3/5 increase for feature one and zero for feature zero. Both columns contain the same information on the unmodified grid. The result measures the fitted ensemble’s response to a particular intervention on its inputs, not each sensor’s intrinsic information or causal effect.

Costs of this deliberately direct implementation

At a node with k bootstrap observations, the direct split scans take O(mk²) rational operations, plus feature sampling and sorting bounded by O(d log(d+1)). Across B maximally unbalanced trees, a conservative bound is O(nd+B(mn³+nd log(d+1))). Peak storage is O(nd+Bn(m+1)+n²): it includes copied training features, sampled bags, retained feature tuples at nodes and recursive temporary index lists. Rational bit lengths, Python recursion limits and pseudorandom-generator costs beyond unit operations require separate accounting.

For Q evaluation rows and maximum fitted depth h, prediction takes O(Q(d+B(h+1))) operations and O(Q(d+B)) temporary slots, including the copied matrix and vote matrix. One permutation per feature takes O(Qd(d+B(h+1))) operations with the same order of temporary storage. These are bounds for this small implementation, not claims about optimized or parallel forest libraries.

More trees do not repair every source of error

A forest can still fit leakage, an accidental identifier or a distorted sample. More trees reduce variability from the finite ensemble relative to its own randomized construction; they do not remove an inappropriate training distribution or guarantee a better model family. Finite voting errors can also increase and decrease as trees are added. In an executed depth-zero example with constant input and labels (0,1,1), seed six yields the first three votes (1,0,1). For a label-one case, the first prefix is correct, the two-tree tie is wrong under our zero-tie rule, and the third prefix is correct again.

Importance bias. Impurity importance uses training statistics and can reward overfitting. Features with many possible split locations receive more chances to produce an apparent decrease. The fixed official guide warns about high-cardinality preference. Averaging such credits does not automatically remove their bias. Guide, §1.11.2.5.

Correlated features. A redundant predictor can have low permutation importance because another predictor remains available. Shuffling one column can also create combinations absent from the original joint distribution; our two identical sensors become inconsistent after a single-column shuffle. A model-specific error change on those inputs is not a causal estimate. Repeat permutations and use an evaluation split suited to the deployment question. Permutation-importance guide, §§5.2.1–5.2.3.

Evaluation. Out-of-bag predictions must use only trees whose saved bag excludes that original row index; some rows may have no eligible trees in a small forest. Our stored bags make that audit possible, but this chapter does not calculate an OOB score. Keep a final test set for the chosen development procedure; repeated OOB or validation tuning can itself select optimistic results. The bagging chapter supplies the explicit OOB calculation.

Scope. There is no missing-value handling, categorical subset search, multiclass probability model or pruning here. The depth cap and strict-improvement stop are part of the example. Extra Trees, randomizes candidate thresholds as well; that is a different operation from randomly selecting which features receive an optimized threshold search.

Read the randomness and the score separately

  1. There are five features, two in a designated useful set, and a node samples two without replacement. What is the chance that neither useful feature is offered? Does this determine the node’s accuracy?

    Answer: It is C(3,2)/C(5,2)=3/10. This only describes feature availability. Labels, useful split locations, other predictors and stopping conditions still determine what the node can learn.

  2. Three trees assign class-one probabilities 0.51, 0.51 and 0. What do hard voting and probability averaging predict? What does this implementation do with two votes (1,0)?

    Answer: Hard voting predicts one; probability averaging gives 0.34 and predicts zero. This implementation only uses hard class votes and returns zero for the tied pair (1,0). It does not report calibrated probabilities.

  3. Why can the unused duplicate sensor have zero MDI and zero permutation error change even though its unmodified value determines the label? What does positive nuisance MDI establish?

    Answer: The fitted tree can rely on the other duplicate, and deterministic split ties can give all credit to that column. Importance describes use by the fitted model under its chosen evaluation, not intrinsic information. Positive nuisance MDI establishes a training-impurity decrease, not future predictive value.

  4. If a sampled feature subset contains only constant columns at an impure node, will this program search the remaining features? How can all raw importance values be zero?

    Answer: No. It records the sampled subset and stops at a majority leaf. A depth limit of zero, pure bootstrap roots or the absence of admissible positive-gain splits can leave every tree unsplit, making every importance zero. That is a defined program outcome, not a claim that the original labels contain no structure.

Follow the assumptions behind the forest

Breiman’s broad randomized-tree definition encompasses several ways of constructing an ensemble. The node-wise input-selection method studied later in the paper is more specific. Keeping those levels separate helps explain why “random forest” can denote a general framework in the theoretical analysis but a particular bootstrap-and-feature-sampling recipe in software. The margin discussion asks how often trees are right and whether they fail on the same cases; it acknowledges earlier randomized-tree work rather than beginning the history at 2001.

The versioned ensemble guide provides a useful comparison: probability averaging can change predictions relative to hard voting, while training impurity and held-out permutation answer different importance questions. For deeper study, derive the forest margin for a multiclass problem, then check how the strongest competing class enters the definition. For an applied study, compare repeated permutation results on ordinary data and on plausible grouped perturbations of redundant predictors; state which evaluation distribution each result describes.

Make a prediction, then check

With all three features offered, every root selects sensor zero and its identical duplicate receives zero importance. Does the duplicate lack label information?

Choose one answer

Learning objectives

  • Distinguish per-node feature sampling from bootstrapping, per-tree subspaces and random thresholds.
  • Replay a small exact forest, its hard votes and unnormalized impurity-credit decomposition.
  • Explain how conditioning, redundant predictors and evaluation distributions limit diversity and importance interpretations.

Prerequisites & connections

Explore related knowledge →

References

  1. Random Forests — January 2001 author manuscript
    Leo Breiman · 2001
  2. scikit-learn 1.7 — Ensembles: gradient boosting, random forests, bagging, voting, stacking
    scikit-learn developers
  3. scikit-learn 1.7 — Permutation feature importance
    scikit-learn developers

Version1 · Editorial status: Recorded technical checks completed

View technical check record (AI)

Codex · 2026-09-05 · Codex technical check: primary-source locations, original runnable models, independent mathematical and computational references, bilingual review and second-agent cross-checks; not independent human peer review.

  • Eight tests pass on Python 3.12.4. An independent ordered-pair disagreement impurity and prefix-partition audit checks saved nodes in six small forests (24 trees), including their exact best offered-feature split, count multiplicity and per-feature credits. Complete path-predicate leaf matching checks 384 tree/query votes and 96 forest predictions without tree_vote.
  • The 13-tree main runs use identical bootstrap bags for m=3 and m=1, roots (13,0,0) versus (5,6,2), zero error on the fixed ten-case grid and pair disagreement 0 versus 3/65. Raw MDI telescoping holds. Permutations show (3/5,0,0) versus (0,3/5,0) error increases; nuisance raw MDI is positive only in the feature-randomized run. These are fixed constructed cases, not population or benchmark estimates.
  • Checked all 31 nonempty feature subsets of five features against the combinatorial omission probability, selected-constant-feature stopping, pure/depth/minimum leaves, feature/threshold ties, exact threshold routing, repeated-seed identity and copied inputs. A depth-zero fitted prefix counterexample at seed 6 gives votes (1,0,1) and errors (0,1,0). Permutation evaluation rejects refitting through an injected failure stub; a targeted wrong-label case produces negative change -1 and a singleton produces zero.
  • Rejects nine invalid training-data forms, nine invalid parameter settings, four invalid query forms and a Boolean permutation seed. Complete bilingual articles have six identical displays, six stable anchors, four answered exercises, the same full program and eight stdout lines. Strict MDX/KaTeX and actual React HTML passed, all six math annotations match. Complexity includes bootstrap bags, saved candidate tuples and vote matrices, with rational bit costs and recursion limits qualified.
  • Reread under pinned Humanizer technical prose guidance. Research section discusses methodological contributions and contrasts; source-access details remain in metadata. Distinguishes ideal conditional independence from cross-case dependence, hard votes from probability averaging, raw MDI from normalized library output, single permutations from expectations, and finite vote convergence from monotonically improving error. AI author checks only; review remains written pending independent technical cross-review.
  • Reread both full articles, six displays, complexity and four answers; eight author tests and strict MDX/KaTeX/React HTML pass with no substantive revision. Raw MDI versus normalized library values, original-row membership versus bag multiplicity, conditioning and vote/probability aggregation are explicit.
  • Independent between-child class-proportion identity 2nLnR/n² times squared difference reconstructs gains without Gini: nine forests,45 trees,171 nodes and63 splits agree including stopping. All56 vote patterns for3/4/5 trees match binomial errors5/32,67/256,53/512, illustrating that one added tree can increase error under the stated tie convention.
  • Source IDs/URLs match metadata and five SHA values bind frozen files. Publication may only upgrade now-existing Bagging/Extra Trees directory links and remove pending wording, then bind final article hashes; mathematics, program and exercises stay unchanged.
  • Promoted the full prose, equations, code and exercises. Tests read formal MDX only; removed temporary fallbacks/draft skips and updated review assertion to checked. Algorithm and independent references are unchanged; final record binds both locale hashes.
  • Publication navigation points published topics to complete articles and removes corresponding pending wording, retaining directory entries for unwritten targets. Principles, equations, programs and exercises are unchanged; final article SHA values rebound.

Source locations checked:

  • Random Forests — January 2001 author manuscript · Actually opened the 33-page university PDF. Cover lines 0–25 gives January 2001; definition 1.1 and introduction, pp. 2–3 (26–99), define IID tree randomization and acknowledge prior work. Read §2.2, pp. 4–7 (120–208), for strength/raw-margin correlation and its conditioning; §3.1 pp. 8–9 (233–277) explicitly uses sampling with replacement, retained original-row OOB membership and per-node random input selection. The earlier introductory wording about bagging is not used to override the explicit with-replacement recipe. The publisher DOI search result independently states October 2001, Machine Learning 45, pp. 5–32; a later direct DOI open failed after redirect. No visual full-document audit, original experiments or generalization-bound reproduction claimed.
  • scikit-learn 1.7 — Ensembles: gradient boosting, random forests, bagging, voting, stacking · Actually opened fixed https://scikit-learn.org/1.7/modules/ensemble.html, rendered 1.7.2. Read §1.11.2.1 lines 512–518 for bootstrap, per-node feature subsets and probability averaging rather than original hard votes; §1.11.2.2 lines 529–530 for randomized candidate thresholds; §1.11.2.3 lines 559–563 for parameter/depth/bootstrap/OOB context; §1.11.2.5 lines 587–595 for normalized impurity importance and training/high-cardinality warnings. The teaching program deliberately reports raw unnormalized mean reductions and uses an exact sampled-subset stop, not a source-code compatibility claim. No sklearn code executed.
  • scikit-learn 1.7 — Permutation feature importance · Actually opened fixed 1.7.2 guide. Read lines 111–114 for held-out versus training and score dependence; §5.2.1 lines 147–161 for the fixed-model repeated-shuffle procedure; §5.2.2 lines 163–168 for training impurity and high-cardinality issues; §5.2.3 lines 169–175 for redundant correlated features. Original examples were not copied. The code uses error-after minus error-before, a single seeded permutation per feature and no refitting; negative results are allowed.
  • Random Forests — January 2001 author manuscript · Independently opened Berkeley 33-page January 2001 author PDF. Read definition1.1/precedents pp.2–3, strength and raw-margin conditioning pp.4–7, explicit with-replacement recipe/OOB pp.8–9 and node-wise random inputs §4. Checked distinctions between conditional tree randomization and cross-case margins, original hard votes and specific Forest-RI recipe. No whole-paper visual or experimental replication claimed. Independently verified Springer DOI indexed publication record: October 2001, volume45, pp.5–32; retains month precision.
  • scikit-learn 1.7 — Ensembles: gradient boosting, random forests, bagging, voting, stacking · Independently read fixed 1.7.2 guide lines512–518,529–563,587–595: bootstrapping, per-node subsets, averaged probabilities, Extra Trees thresholds/default no-bootstrap and training/high-cardinality impurity bias. Code intentionally uses hard votes, sampled-subset stopping and raw MDI, not library equivalence.
  • scikit-learn 1.7 — Permutation feature importance · Independently read fixed 1.7.2 guide lines145–175, including fitted-model repeated-column shuffle and score sign, training-impurity caveats and correlated features. Original single-shuffle example states finite diagnostic and error-increase convention; no refit or causal interpretation.

Related topics

No matches. Try a synonym or acronym.

0 results shown

Wrap the whole query in double quotes for a phrase match.