PLS Discriminant Analysis (PLS-DA)
PLS discriminant analysis (PLS-DA) fits partial least squares regression of dummy-coded class membership on many correlated predictors and assigns each sample to the class with the largest predicted value.
PLS 판별분석(PLS-DA)은 서로 강하게 상관된 많은 예측변수로 집단 소속(가변수)을 부분최소제곱 회귀한 뒤, 예측값이 가장 큰 집단으로 표본을 분류하는 방법입니다.
I have NIR spectra from three grape varieties with far more wavelengths than samples; how do I build and validate a classifier?
파장 수가 표본 수보다 훨씬 많은 세 품종의 NIR 스펙트럼으로 분류 모델을 만들고 검증하려면 어떻게 해야 하나요?
PLS-DA compresses the correlated wavelengths into a few latent variables that separate the classes, with the number of latent variables chosen by stratified cross-validated misclassification. Report the cross-validated confusion matrix and error rate, a class-label permutation test showing the error is better than chance, and VIP scores for the wavelengths that drive the separation.
When to use PLS Discriminant Analysis (PLS-DA)
- Predictors are numerous and strongly collinear, as in spectra, metabolomics or chromatographic profiles.
- Samples belong to two or more known classes and a predictive classifier is needed.
- You want variable importance (VIP) alongside the classification.
When to use something else
- Samples may belong to none or several classes, or only one class is well defined; use SIMCA class modelling.
- There are few uncorrelated predictors and many samples; use linear discriminant analysis or logistic regression.
- There are more than 2,000 variables; bin the spectrum or select regions first, because the method accepts at most 2,000 feature columns and 30 classes.
Assumptions and requirements
- Training samples are representative of each class and labelled correctly.
- Class differences are roughly linear in the (scaled) predictors.
- Performance is judged by cross-validation, because the training fit is optimistic with many variables.
What the analysis reports
- Cross-validated error rate for 1 to 10 latent variables and the chosen number
- Cross-validated confusion matrix (or per-class correct rate for more than 7 classes) and balanced error rate
- Class-label permutation p-value of the cross-validated error (up to 200 permutations, fewer for large data)
- VIP scores of the variables
How to report it
A PLS-DA model with [value] latent variables (n = [value], [value] classes, [value] variables, autoscaled) had a [value]-fold cross-validated error rate of [value] (balanced [value]); a permutation test with [value] permutations gave p = [value].
Related methods
How this method is validated
이 방법의 검증 근거
- Independent computation. 2 reference tests compare the results with scikit-learn.
독립 계산. scikit-learn 대조 참조 시험 2건 통과.
Tolerances are relative differences (absolute differences for values near zero). R comparisons and reference tests are re-run before each release of the analysis engine.
허용오차는 상대 차이입니다(0 근처 값은 절대 차이). R 대조와 참조 시험은 분석 엔진을 배포할 때마다 다시 돌립니다.
Run PLS Discriminant Analysis (PLS-DA) on Quorant
- Data you need
- a table (CSV or Excel) with an outcome variable and predictor (feature) columns
- Price
- 400 credits for one analysis up to 10,000 rows (complexity level 3); larger or wider data costs more. Optional methodologist review: 1800 credits.
- Checking
- Compared with independent computations
- Before you pay
- A free pre-analysis diagnosis checks your data and gives an exact quote; nothing is deducted until you approve it.