Start from the exact rows and keep row IDs out of the numeric feature matrix.

highlighted = computed this step

Start with three displayed rows

Rows A, B, and C each have first-feature, second-feature, and y cells. Row A has first-feature 1, second-feature 2, and y=5.

A: xfirst=1, xsecond=2, y=5A:\ x_{\text{first}}=1,\ x_{\text{second}}=2,\ y=5
Feature Matrix ExactlyExact rows rewritten into X, y, and intercept X plus.rows to X, y, and intercept X plusrow idx1x2yX rowy entryX+ rowA125[1,2]5[1,1,2]B214[2,1]4[1,2,1]C338[3,3]8[1,3,3]feature order: x1, x2; row ids stay outside Xintercept column is all ones in X+feature matrix is a table rewrite from displayed rowsrow IDs stay outside X; intercept column is all onesNOT training; NOT learning; NOT predictionNOT accuracy; NOT generalization; NOT feature importanceNOT best features; NOT causal; NOT probability truth

Keep row IDs as labels

A, B, and C name rows. They are not numeric feature cells and they do not enter X.

row ids label rows; they stay outside X\text{row ids label rows; they stay outside } X
Feature Matrix ExactlyExact rows rewritten into X, y, and intercept X plus.rows to X, y, and intercept X plusrow idx1x2yX rowy entryX+ rowA125[1,2]5[1,1,2]B214[2,1]4[1,2,1]C338[3,3]8[1,3,3]feature order: x1, x2; row ids stay outside Xintercept column is all ones in X+feature matrix is a table rewrite from displayed rowsrow IDs stay outside X; intercept column is all onesNOT training; NOT learning; NOT predictionNOT accuracy; NOT generalization; NOT feature importanceNOT best features; NOT causal; NOT probability truth

The whole pinned table stays visible

Row B has feature cells 2 and 1. Row C has feature cells 3 and 3.

B:(2,1),C:(3,3)B:(2,1),\quad C:(3,3)
Feature Matrix ExactlyExact rows rewritten into X, y, and intercept X plus.rows to X, y, and intercept X plusrow idx1x2yX rowy entryX+ rowA125[1,2]5[1,1,2]B214[2,1]4[1,2,1]C338[3,3]8[1,3,3]feature order: x1, x2; row ids stay outside Xintercept column is all ones in X+feature matrix is a table rewrite from displayed rowsrow IDs stay outside X; intercept column is all onesNOT training; NOT learning; NOT predictionNOT accuracy; NOT generalization; NOT feature importanceNOT best features; NOT causal; NOT probability truth