Why prediction of NIR spectral train and test datasets different when use PLSREGRESS
조회 수: 1 (최근 30일)
이전 댓글 표시
Hi,
I am using NIR data to build a model. I split the datasets into the train(80%) and test (20%). Then I used the training dataset and Partial Least Squares (PLS) regression model. I got quite good agreement between observation and predictions, but when I used test datasets to test the model, I notice that observation and predictions are not showing expected agreement.
Using training dataset:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/314087/image.png)
Using test data:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/314090/image.png)
Use Cross-validation to select the number component for plsregress function (I chose 15 for this datasets):
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/314093/image.png)
I would appreciate if someone helps me in this case. Thanks in advance.
댓글 수: 0
답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!