Feature Engineering

  • |

    Trace Feature Selection

    Choosing among thousands of trace columns for hundreds of wafers needs three axes, not one. Mechanism fixes what the answer is a property of and what it costs; selection unit decides whether the set can be acted on; stability decides whether it is real at all. A guide maps each question to its branch.

  • |

    Multivariate Feature Selection

    🇺🇸🇰🇷 Features chosen one at a time miss signals that only a combination carries, and keep duplicates. Three approaches handle that: a multivariate filter on the data alone, a wrapper around a chosen model, an embedded selector inside one. Cost and interaction sensitivity move in opposite directions, so run them in that order.

  • |

    Univariate Feature Selection

    Each feature is scored on its own against the target, ranked, and cut at the top k or a p-value threshold. The right test follows from the data types: chi-square, ANOVA F, Pearson correlation, mutual information. Cheap and model-free, but blind to interactions and to variables carrying the same information.

  • |

    Regularization

    When the cross-product matrix cannot be inverted, or barely can, a penalty added to the loss stabilizes the coefficients. Which penalty matters: Ridge shrinks toward zero but never reaches it, Lasso drives useless variables exactly to zero, and ElasticNet handles groups of correlated variables. Dropping variables outright, by VIF or PCA, is the alternative.

  • |

    Polynomial Feature Expansion

    🇺🇸🇰🇷 Three defaults make polynomial expansion cheap and safe: degree two, centring the variables before expanding, and a ridge or lasso penalty on the new columns. Skipping the last two shows up as coefficients flipping sign, not as poor fit. Beyond a few dozen variables, or for repeated bends, splines and kernels replace it.

  • |

    Feature Importance

    Two methods can differ by an order of magnitude on the same feature and both be correct, because they answer different questions. One measures how much a fitted model relies on the feature, the other how much the data carries about the target, and most are read as the second while answering the first.

  • |

    PCA Derivation

    Not how to compute PCA but why its answer is right. One constrained maximization with a Lagrange multiplier gives Cu = λu, so the axes must be eigenvectors of the covariance matrix. The ordering, the orthogonality, and minimum reconstruction error all fall out of that line unasked.

  • |

    PCA Algorithm

    The plain procedure in seven steps: center, scale, decompose by SVD, fix signs, read the variance, truncate, project. Writing it out settles what a library call hides — what a component’s sign means, why the rank stops at n−1, which mean new data is centred by, and what truncation discards.

  • |

    PCA Modern Lineage

    The classical lineage divides on the question of which assumption was relaxed. The modern lineage divides on a different one: in an era when representations are learned, where does the idea of a linear subspace still live? It lives in three places — as the constraint that keeps training from degenerating, as the tool that reads a representation after the fact, and as the model that fuses structure or a target into the learning itself.

  • |

    PCA Classical Lineage

    PCA is not one technique but a lineage that branched from a single root. Each branch relaxes one assumption the original carried — a matrix, no outliers, linear structure, more samples than variables — and charges a cost for it. Choosing is not comparing performance but naming the assumption your data broke.

  • |

    PCA Applications

    PCA has more than ten variants, but a site runs two or three. Which ones follow from the data: each kind of fab measurement — metrology table, FDC trace, wafer map, multi-tool pool — breaks a different classical assumption. Name the assumption the data breaks and the selection table names the method.

  • | |

    Wafer Level Zernike Polynomials

    wlzpoly is a Python package that decomposes N-point wafer thickness measurements into M Zernike polynomial coefficients using LSQ or Ridge regression with LOOCV-tuned regularization. It ships with a reproducible three-stage demo (synthetic data, coefficient fitting, ground-truth verification), per-stage CLI, and a clean pure-Python API for semiconductor wafer-level process metrology.