Configuring the Linear Model block

Prior to training, the configuration allows the user to change certain of the linear model block parameters. Following training, the user is able to view the statistics and model audit information that is saved in the block on the Statistics and Model Audit Properties tabs.  We also demonstrate how to enable analysis on the trained model.  >> Return to Linear model block

On this page you can find out about:

Configuration prior to training

To open the block property page (the page on which the block configuration is specified), either double click on the block or right-click on the block and select Block Properties.

Configuration tab

  • Type the output field name in the Output field name box.

  • The Add field button enables the user to create a new (additional) output field

Configuration following training   

To open the block property page (the page on which the block configuration is specified), either double click on the block or right-click on the block and select Block Properties.  The diagram below shows the pop-up screen that will be displayed.

Saving the M and C coefficients

The user can export the coefficient matrix and constants from the linear model, by clicking on the Export coefficients button. This will export the coefficient matrix and constants into a CSV (comma delimited) file.

Example:

For a model that has two inputs (Water and Temp) and one output (Result) will produce a file that will look as follow:

-------, Water, Temp, Constant

Result, 0.1123, 0.234, 1.382

In this case the matrix [0.1123, 0.234] is the coefficient matrix. This will yield the following equation:

Y=[0.1123, 0.234]X + [1.382]

Statistics

On the statistics tab the results of the R2 and Explained Variance calculations are displayed for both the training and validation data sets (Training Set and Validation Set respectively) as well as the entire training data set (Overall includes the training and validation data sets).

Return to top

Model Audit Properties

There are no configuration options on this page, it simply lists information regarding the training data set. This includes: number of records used for training (NumTrainingPatterns), number of records used for validation (NumValidationPatterns), number of bad quality records (NumBadPatterns), the start date and end date for the training data set (StartDataSet and EndDataSet) and the start and end dates over which training took place (StartedTraining and EndedTraining).

Return to top

Enabling analysis on the block

  1. Right-click on the model block and toggle Analysis on.

  2. Right-click on the block again (as it closes automatically after the analysis is toggled on or off) and click on Analysis Properties to specify certain features of the analysis.  

  3. Features that may be specified in the Analysis Properties pop-up box include:

    • the display title; this will be the name on the analysis view tab, it will also be the name of the monitored variable on the analysis view y-axis

    • the length of the smoothing filter; a moving average filter is applied to the input tags before they are used in the various analysis calculations, in this box specify the size of the time window over which the input tags are averaged

    • the value of the fixed setpoint, where applicable; the Analysis Properties box obtains this value (if it is available) from the alarming and analysis block it may however be altered in either of the two blocks (and the changes will reflect in both)

    • the history buffer size; this is the number of analysis records Architect will keep in memory at any one time, if you are running 3 days worth of data where the records are 1 minute apart, you will have 4320 records, thus, if you wish to be able to view all of the data once the simulation is complete, you will have to set the history buffer size to 4320.  

Return to top


Related topics:

  

CSense 2023- Last updated: June 24,2025