LAGUN is a R/Shiny platform providing a user-friendly interface to methods and algorithms dedicated to the exploration and the analysis of datasets.
Guided workflows are provided to help non-expert users to apply safely the proposed methodologies.
These tools are commonly used in the numerical uncertainty community (GDR Mascot-Num for example) but are also widely applicable to experimental problems. The main functionalities are the following:
Optimized design of experiments
If you have control on the inputs/parameters on the system which will generate the dataset (numerical simulations, settings of the experiments, …), you can benefit for a better spatial repartition of the experiments.
Visual exploration tools
When the complete dataset with inputs/parameters and outputs/responses is available, you can load it to perform insightful visual analyses and identify the main trends and the most influential parameters.
Going further with surrogate models
A next common step is to use the dataset to infer a predictive relationship between the inputs/parameters and the outputs. This estimated relationship, the surrogate model, can help push forward the analysis with its ability to predict the responses for any new combination of the inputs. In particular it can be extensively used for uncertainty quantification, sensitivity analysis, deterministic optimization, optimization under uncertainty (robust and reliability based) or more intensive graphical studies.
Numerical simulations
In the special case of numerical simulations, you can benefit from a direct connection between LAGUN and your simulation scripts to perform automatic and sequential optimizations with the surrogate models.
For a general introduction, please see the following tutorial:
History
The first version of LAGUN was initiated at Safran Tech (under a different name), the corporate research center of Safran.
Its goal was to give an easy access to methods and algorithms to all Safran engineers with a user-friendly interface.
A collaboration was later launched with IFPEN in 2019 to share algorithms and developments in a common platform now named LAGUN ("Assistance" in Basque language).
The platform is organized in tabs, each one of them corresponding to a step above.
Click to expand the panels below to learn more through tutorials and test cases (links to Gitlab).
In each tab, the primary tasks to be performed in the workflow will be indicated by blue buttons:
Tasks that are not explictly in the workflow but are highly recommended will appear in red:
Tasks that may bring relevant additional information are colored in lightblue:
Finally, information on what is loaded in memory and which surrogate model is active is available at all times in the ‘Info’ panel (found in the navigation bar).
You will find here an access to some parameters that are used internally in the platform
for some of the tasks. You are free to change them, however it is recommended that you are
familiar with the concepts. Indeed increasing one or some of these parameters can have a large impact
on the computation time of the tasks.
Outputs of interest will be available for surrogate modelling and will always be displayed by default in visual explorations.
Control outputs will be available for surrogate modelling but will be hidden by default in visual explorations.
Status outputs only give information about the loaded observations and cannot be approximated with a surrogate.
Constant outputs are outputs with very small variations and will be handled with simple surrogate models automatically without
user intervention. By default they will not be displayed in visual explorations.
Here you can change the outputs types (interest, control, status, constant).
Switching to expert mode enables more complex surrogate combinations to handle difficult problems.
It is highly recommended to try first this linear model. For some outputs it may be predictive enough and for the others you can check how nonlinear the output may be.
Acosso1 Settings
You can choose to train the surrogate only on the outputs for which the Q2 of a previous surrogate was not sufficient enough. When the number of outputs is large and previous surrogates are of good quality,
this accelerates the search of the best surrogate.
Only the outputs with the best surrogate so far less than the Q2 LOO threshold will be considered.
Acosso2 Settings
If the number of inputs is large, the number of interactions to identify increases drastically. For problems with more than 20 inputs, a first reasonable try consists in restricting the search to interactions
between the inputs which have a main effect only (i.e. those identified by Acosso 1). For problems with more than 50 inputs, this is the only reasonable approach for computational reasons.
You can choose to train the surrogate only on the outputs for which the Q2 of a previous surrogate was not sufficient enough. When the number of outputs is large and previous surrogates are of good quality,
this accelerates the search of the best surrogate.
Only the outputs with the best surrogate so far less than the Q2 LOO threshold will be considered.
Kriging Settings
This option only applies to kriging surrogates. When the outputs are subjected to noise (i.e. experimental data),
it is highly recommended to turn off the interpolation.
This model is the most flexible one and can model complex input-outputs relationships. But if the number of inputs is larger than 15-20, its flexibility implies that its calibration may be hard and result in a poor surrogate.
For such situations, when activating the expert mode, it is possible to break down the calibration by using a trend given by one of the previously trained surrogate, and try to estimate the residuals only.
To go further, one can also limit the variables involved in the kriging model.
You can choose to train the surrogate only on the outputs for which the Q2 of a previous surrogate was not sufficient enough. When the number of outputs is large and previous surrogates are of good quality,
this accelerates the search of the best surrogate.
Only the outputs with the best surrogate so far less than the Q2 LOO threshold will be considered.
Surrogate Settings
You can choose to train the surrogate only on the outputs for which the Q2 of a previous surrogate was not sufficient enough. When the number of outputs is large and previous surrogates are of good quality,
this accelerates the search of the best surrogate.
Only the outputs with the best surrogate so far less than the Q2 LOO threshold will be considered.
Click on a cell in the Q2 table below to display the prediction quality for each output and each metamodel.
If you do not import a file (or the imported file is not valid),
by default each input will follow a uniform distribution on the domain given by
the imported bounds (for continuous ones) or the levels (for categorical ones).
If you do not know the distribution of some inputs but
want to estimate it with available observations, you can change their type to 'Estimated'
and fit their distribution in the following panel.
Change Inputs Dependence Definition
Loading...
You can specify groups of numeric inputs which are dependent. If you know the groups
you can then either define all the group copulas or estimate them with a dataset. If you do not know
the groups, you can also estimate them with available observations in the following panel.
It is recommended to choose a sample size at least equal to 100/p if the probability to be estimated is of the order p. If you do not have an estimate of the probability, you can use the UQ propagation above as a rough estimate.
The inputs are dependent in your study. In this case the interpretation
of Sobol indices is not straightforward, since they mix up informations
about input interactions and correlations. We recommend that you compute Shapley effects instead.
Constraint Visualization: DOE quantiles, thresholds and current iteration. Constraints are normalized for easier comparison.
Selected Point
Advanced Optimizer Settings
Warning: optimization Converged !
The next point to simulate is very close to the current DOE : the optimization may have converged.
Error: fail to find next points !
Cannot find next points to simulate. If multiple points by iteration,
this error may come from convergence problems of the metamodel update between iterations.
Try to restart optimization with only one point by iteration.
Error: metamodel cannot be updated !
Cannot update metamodel with the new simulated points : the optimization may have converged.
[Optimization] Plugin to use an external optimizer directly interacting with a numerical simulator
Version 1.0.0 (July 2023)
[General] Save and load projects
[General] Export surrogate models to Python
[General] Plugin to perform external calibration of numerical simulators with experimental data
Version 1.0.1 (February 2025)
[General] Docker files (for Lagun and simulations Launcher)
[General] Save and load projects (extension to similations launcher + performance improvements)
[General] Each parallel coordinate plot is accompanied by a scatter plot matrix, and they are synchronized with each other
[Direct optimization] ‘Use a previous optimization’ improved (restore not only defintion, but also results)
[Simulations Launcher] In simulator definition, new attributes ‘Vector support’ and ‘Vector size’
[Simulations Launcher] Ability to use the query string from the Lagun URL to specify how to connect the simulations launcher
[Surrogate model] Add ‘surrogate model pluggin system’
[Tests] Upgraded from shinytest to shinytest2. Improved pipeline with speed up
Version 1.0.2 (March 2025)
[General] Docker images for lagun and tests are directly built during ci and stored in gitlab container registries.
Version 1.0.3 (January 2026)
[General] New menu ‘Logs’ to see LAGUN Logs (with daily rolling)
[General] Save and load projects (new performance improvements)
[General] ‘Auto Saving’ feature (after various actions, current study is automatically saved in a dedicated file)
[Direct optimization] Add ‘Feasible set learning problem’ (inversion)
[Simulations Launcher] Send simulator messages to a dedicated file ‘SimulationsLauncher_out.txt’
[Surrogate export] fix bug for negative output and status output. Add export of kriging with linear trend
[Direct optimization]’ Ability to define multiple initial values
Version 1.0.4 (January 2027)
[Simulations Launcher] New button ‘Export DOE as CSV file’ allowing simulations to be exported in a format compatible with Lagun’s import functions
[Simulations Launcher] The connection to a distant host can be done via a ssh key
[Surrogate Refinement] The additional points are concatenated with any points added via ‘Separate Test File’; these points are therefore used for the ‘Q2Test’ calculation and appear in the crossplot
[Surrogate Refinement] Fix bug in output choice for aditional simu when some outputs are status
[Exploration with Surrogate Model] New ‘Launch Simulations’ button in the ‘Qualitative Exploration’ panel
[Build Surrogate Models] Fixed bug where ‘BestQ2’ remains equal to ‘BestQ2loo’ when ‘Choose Validation’ is set to ‘Seperate Test File’
[Direct optimization]’ Fixed bug, the values transmitted from the optimiser to the simulation launcher are wrong (rounded to 4 digits)
[Preliminary exploration] Removed rule functionality as the package is not maintained anymore. Fixed bug on regression plot, color disapeared when selecting histogram.
[file loading] automatic detection of csv format
[composite outputs] fixed bug when log selected before moving to combine mode
[Surrogate Export] fixed LASSO export (broke due to positive attribute in new sklearn version)