Jump to content

Lexington Flenner

Members
  • Posts

    1
  • Joined

  • Last visited

Posts posted by Lexington Flenner

  1. On 9/1/2015 at 12:04 PM, Wouter said:

    Small note: there is a machine learning toolkit available, https://decibel.ni.com/content/docs/DOC-19328

    yes, but either the old version (machine learning toolkit) nor the new the LabVIEW Analytics and Machine Learning Toolkit   does contain a PLS1 Algorithm

    - but both have a PCA.vi

    so you could do a PCA on the input, and then make a linear regression with the PCA'S scores. That's  a PCR: https://en.wikipedia.org/wiki/Principal_component_regression

    If you had several categorial classes, you have to do for each class a PCA and a linear regression.

     

    I think, that's equal to, what a PLS-1 does in one attempt:

    " ...it finds a linear regression model by projecting the predicted variables and the observable variables to a new space.."

    https://en.wikipedia.org/wiki/Partial_least_squares_regression

     

     

    On 8/31/2015 at 5:40 PM, torekp said:

    The above PLS code has been corrected for one error.  Below I attach the one corrected VI.  Other errors might remain.

     

    PLS1.vi

     

    I can't get the Discriminat example to work, but I did get torekkp's PLS1.vi to work with my custom data (about 3000 spectra, each one is a 1d array of 1024 bins)

    looks like it does compute, what it is supposed to do - I compared the scores to the scores of  a PLS1 routine I have written once upon a time - 

     

    Unfortunately, I can't share the data I used, maybe I find the time to put together some online available spectra dataset 

     

     

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.