Exporting Models and Peaksigmoid: Difference between pages

From Eigenvector Research Documentation Wiki
(Difference between pages)
Jump to navigation Jump to search
imported>Benjamin
No edit summary
 
imported>Mathias
 
Line 1: Line 1:
In most versions of PLS_Toolbox and Solo, there are four options for exporting models:
===Purpose===
Outputs a sigmoid function.


==To File==


Exporting to file saves the content of the model (all the  internal numerical values in the model). This is similar to saving the model  to a .mat file but it is generally "plain text". This is a good method to save models in a human-readable format but still requires PLS_Toolbox, Solo, or [[Solo_Predictor_User_Guide|Solo_Predictor]] to apply the model.
===Synopsis===


Formats include .xml (text), .amo (ASCII-MOD), .m (text), or .mat (binary) formats. Some custom versions of Solo allow for other export options.
:[i0,iw] = peakfind(x,width,tolfac,w,options)
:[i0,iw] = peakfind(x,width,options)


==To Regression Vector==


Exporting to a regression vector (only available for regression  models) saves the model in the simplest predictor format. It outputs a  mean vector and a regression vector which can be used with new data to  make predictions. This does ''not'' include the numerical vectors needed to calculate  T2, Q, scores, or contributions. You can only get the y-prediction with  this option. This option only supports the basic mean centering and  autoscaling preprocessing options.
====Inputs====


When this option is selected, you will be prompted to save the regression vector and mean vector to one of three formats:
* '''x''' =  3 element vector where x(1) = coefficient, x(2) = offset and x(3) is equal to the decay constant


* ''.mat'' - a binary format readable by Matlab.
* ''.csv'' - a plain-text comma-separated-values format readable by Microsoft Excel as well as other programs.
* ''.xml'' - a text format with XML tags enclosing each of the vectors.


For technical details on this option, see the PLS_Toolbox function [[Regcon]].
====Outputs====


==To Predictor==


Exporting to a predictor (which requires the [[Model_Exporter_User_Guide|Model_Exporter]] add-on product)  produces a  predictor script. This option is similar to exporting to a regression vector but the exported model:


# supports all preprocessing options in Analysis
# works on PCA, PLS, PCR models
# outputs scores, Q, T2, Q contributions, T2 contributions, AND  predictions


You can get more information on Model_Exporter from here: [[Model_Exporter_User_Guide|Model Exporter User Guide]]
<math>\sqrt{1-e^2}</math>


This format contains the code and numerical values necessary to make a prediction, but you must still have additional software to interpret that model. It does '''not''' support variable alignment, missing data, or other model types. For these options, see [[Solo_Predictor_User_Guide|Solo_Predictor]] which supports all model types, calibration  transfer, variable alignment, missing data support, and all  preprocessing methods.
<math>f\left( {{a}_{i}},\mathbf{x} \right)={{x}_{1}}\left[ {{x}_{4}}{{\operatorname{e}}^{\frac{-4\ln \left( 2 \right){{\left( {{a}_{i}}-{{x}_{2}} \right)}^{2}}}{x_{3}^{2}}}}+\left( 1-{{x}_{4}} \right)\left[ \frac{x_{3}^{2}}{{{\left( {{a}_{i}}-{{x}_{2}} \right)}^{2}}+x_{3}^{2}} \right] \right]</math>


==To Model Builder==
*'''<math>{\operatorname{d2}\!y\over\operatorname{d2}\!x}</math>'''


This option outputs a [[http://www.mathworks.com/ Matlab]] m-file function which can be used with PLS_Toolbox and Matlab to build new models with the same conditions as the currently loaded model. This option takes all the Analysis GUI options and preprocessing settings necessary to reproduce the current model at the Matlab command line. It can be used to create new models from new data using the same conditions as the current model. For more technical details on this option, see the PLS_Toolbox function [[Encodemodelbuilder]].


==To OpenFluor.org==
* '''<math>{\operatorname{d}\!y\over\operatorname{d}\!{x}_{i}}</math>'''
 
You can export a PARAFAC model of fluorescence spectra for querying the openfluor database at http://www.openfluor.org. This option takes the dataset, the PARAFAC loadings, axisscales, and formats it into a .txt file for querying the database. When queried, the database returns the top matches found. For more technical details on this option, see the PLS_Toolbox functions: [[queryopenfluor]] and [[parafacforopenfluor]].

Revision as of 13:31, 1 August 2016

Purpose

Outputs a sigmoid function.


Synopsis

[i0,iw] = peakfind(x,width,tolfac,w,options)
[i0,iw] = peakfind(x,width,options)


Inputs

  • x = 3 element vector where x(1) = coefficient, x(2) = offset and x(3) is equal to the decay constant


Outputs