Skip to main content

Data Analyzer

In the process of the Data Analysis method, the loaded data is split into two sets of samples (either automatically by the Core Solver or arbitrary by the user). The Training set of samples is used to build the model, all samples from this set are considered when the interpolator is trained. With the Test set of samples is the model evaluated on the run since these are not included in the model-building process.

Here the user sees the direct comparison of differences between loaded data values and their approximations according to the model. This error of the model can be also depicted with respect to input variable values to see specifically which part of the model is the most reliable.

Evaluation of error

There is an evaluation of samples (both from Training set and Test set) as outliers based on their magnitude of error from the approximated model values. These outliers are then marked in colored circles according to the applied
criteria. Currently, three methods of outlier identification are available:

  • Chauvenet's criterion : The method works by creating an acceptable band of data around the mean of an assumed normal distribution. The main principle is to find the number of standard deviations that correspond to the bounds of the probability band around the mean and comparing that value to the absolute value of the difference between the suspected outliers and the mean divided by the standard deviation of samples. for complete description of the method visit the link.
  • Interquartile range (IQR) : The method is based on comparisons of ranges of data that was first split into quartiles. The IQR is defined as Q3Q1Q3 - Q1 and values below Q11.5IQRQ1 - 1.5 IQR or above Q3+1.5IQRQ3 + 1.5 IQR are marked as outliers.
  • User defined threshold : Users can define their own threshold for the error value to be marked as an outlier. The default setting is the mean value of Chauvenet's and IQR criterion.

How to use the interface

There is a collapsible box on the left side of the tab with the opened result file, where the user can set the data to be displayed. On the top there are three buttons switching between two types of visualization of data, Output and Error, and the table shown under the Text mode.

Output

The Output value is shown here on the vertical axis of the plot. Then, two types of the plot can be created depending on the item selected from the list of X-axis value options. There are samples from the Training set of data and also the Test set of samples used for model evaluation. The Root Square Mean Error (RMSE) value is plotted in the legend for each set of samples.

The situation with Output value selected can be seen in Figure 1. It gives directly the correlation of model results and the source data. Here the Model output value (the approximation of the model) is shown od the vertical axis, while the Output value of samples loaded from source files belongs to the horizontal axis.

Figure 1: Postprocess - Output correlation

Other options to be selected are names of input variables. The plot then represents the distribution of the Output value as obtained from loaded files along the range of selected input. Also, it helps to identify positions of outliers together with the context of the output value.

Figure 2: Postprocess - Output vs. input values

To save the plot as a .png or .jpg file, the save-file dialogue can be induced by clicking the 💾 icon on the top left of the plot. It is possible to select datasets included in the plot and to adjust the appearance of the plot using controls from the Data options and Plot options sections of the panel on the left:

  • Training set : Includes samples used to train the model into the plot.

  • Test set : Includes samples used to evaluate the quality of the model into the plot.

  • IQR outliers : Highlights samples marked as outliers according to the IQR criteria.

  • Chauvenet's outliers : Highlights samples marked as outliers according to the Chauvenet's criteria.

  • User outliers : Highlights samples marked as outliers according to the user defined threshold.

    When turned on, a slider appears to set the threshold value. Users can adjust the value by dragging the slider's holder or by clicking on its scale. The value can be also set precisely using the icon on the right of each slider. This opens a sub-dialogue with entry fields for writing exact values of range limits. These need to be confirmed with the Set button.

  • Reliability bounds : For each shown sample, an upper and lower reliability bound is also plotted. Bounds are generated
    from a separate model of predicted local error. There are several options of the reliability model method that can be set in the Core Solver Setup GUI.

  • Plot title : Displayed above the plot, Output by default.

  • X label : Label of the X axis, Output value or the selected input variable name by default.

  • Y label : Label of the Y axis, Model output value or Output value by default.

  • Title size : Size of the title font.

  • Label size : Size of the label font.

  • Show legend : Switching on/off the legend of the plot/the colorbar scale.

  • Legend font size : Size of the legend font.

  • Range X : Double-sided slider allowing to show a slice of the data in detail. Dragging one of the slider's points limits the depicted range of input or output value, one can move with the section along the X-axis by dragging the green bar of the slider (both edge points are highlighted).

  • Range Y : Double-sided slider allowing to show a slice of the data in detail. Dragging one of the slider's points limits the depicted range of output value, one can move with the section along the Y-axis by dragging the green bar of the slider (both edge points are highlighted).

    All ranges in the plot can be also precisely using the icon on the right of each slider. This opens a sub-dialogue with entry fields for writing exact values of range limits. These need to be confirmed with the Set button. Setting values outside domain's boundaries will reset range limits to the default state.

  • Adjust axes : Toggle if the axis and/or colorbar limits of the plot should be only the range adjusted with the slider above (on) or the full range of the input distribution (off).

Figure 3: Postprocess - Data and plot options

Error

The value of error itself can be separately shown against the output or selected input variable. This plot gives a further insight into understanding of outliers. The vertical axis belongs to the value of error, horizontal lines represent criteria for outlier definition as mentioned in the Evaluation of error section.

The controls of the plot and export procedure of the picture is the same as for the Output plot.

Figure 4: Postprocess - Plot of Error

Text mode

Data from the iterative file are presented in the form of a spreadsheet, as shown in Figure 5. The table contains the complete info about the loaded data and the data used for training of the model. For each sample there are its coordinates in the input domain, output value loaded from the source and from the model, and the evaluation of error between real and model data. It is possible to change the sorting of the sheet (ascending or descending, where ascending is the default) by clicking on the row number, input variable name, error, or data.

There are two buttons on the left panel switching the spreadsheet content. The Training set shows samples used for the training of the model. The Test set is a group of samples selected for evaluation of model quality after enhancement techniques of the Core Solver were used. Tables can be saved as *.csv files using the Export data button.

Figure 5: Postprocess - Text mode