Open lalvim opened 3 years ago
Follow the approach given: Martens H., NÊs T. Multivariate Calibration. Wiley: New York, 1989. as shown here
https://github.com/caseykneale/ChemometricsTools.jl/blob/d8cd288ae76b221274a54cc204cd146791bddf98/src/RegressionModels.jl#L212
This turns inference into a single matmul, because PLS does truly follow Y = XB when center scaled. Should work for PLS1 and PLS2.
Follow the approach given: Martens H., NÊs T. Multivariate Calibration. Wiley: New York, 1989. as shown here
https://github.com/caseykneale/ChemometricsTools.jl/blob/d8cd288ae76b221274a54cc204cd146791bddf98/src/RegressionModels.jl#L212
This turns inference into a single matmul, because PLS does truly follow Y = XB when center scaled. Should work for PLS1 and PLS2.