lda_model
Builtin index · Statistics & ML
lda_model(X, y)
Input: X, y · Output: no output
What it is
Linear discriminant analysis on an N-row, D-column X and a length-N vector of numeric class labels y (at least 2 classes). Shared (pooled) covariance, class priors from the class frequencies. .predict(Xnew) returns the predicted labels -- the same values y used, not 0-based indices; .transform(Xnew) projects onto the min(classes - 1, D) discriminant axes. Fields include means, priors, scalings, explained_variance_ratio. Added in v0.4.3.
Overloads
One call shape — this function is not overloaded.
| Code | Input | Output | Description |
lda_model(X, y) | X vectornot documented yety vectornot documented yet | not documented yet | Shared (pooled) covariance, class priors from the class frequencies. Fields include means, priors, scalings, explained_variance_ratio. Added in v0.4.3. |
Examples
No documentation example calls this form yet. The Statistics & ML chapter is where one belongs.
How it works
lda_model(X, y), qda_model(X, y, [reg=]), pls_model(X, Y, k), ica_model(X, k, [max_iter=], [tol=],
From the note above this builtin in the interpreter, where the reasoning was written down as it was built.