DOE Analyzer
Desktop application for analysing design-of-experiments results stored in CSV or an Excel workbook:
one row per run, an ID column, the DOE parameters and the result functions,
with the names in the first line.
Install and run
Runs on Linux and Windows with Python 3.10 or newer. From PyPI:
pip install doe_analyzer # or 'doe_analyzer[umap]' for UMAP embeddings (numba)
doe_analyzer # or: doe_analyzer file.csv | project.doeproj | --demo branin
doe_analyzer --example gas_turbine # real data from UCI, downloaded the first time (see Example data)
doe_analyzer --gl software # WebGL in software, where the GPU driver draws blank plots
On Windows doe_analyzer-gui starts it without a console window. A desktop Linux has the system libraries Qt needs;
a minimal one (a container, a server image) needs those the CI installs (.gitlab-ci.yml).
A cluster login node often lacks libxcb-cursor.so.0 (Qt 6.5+ needs it for X11): doe_analyzer then names the
missing libraries and their packages. Without root, copying the library files into the environment's
site-packages/PySide6/Qt/lib is enough, since Qt looks there first. Over ssh -X to an X server without OpenGL
(GLX) it starts without OpenGL; plots that need WebGL (parallel coordinates, 3D) then need a remote desktop with
OpenGL.
From a clone of the repository:
python3 -m venv .venv
.venv/bin/pip install -e '.[dev,umap]' # umap is optional (UMAP embeddings)
./doe_analyzer.sh # or: .venv/bin/doe_analyzer [file.csv | project.doeproj]
./doe_analyzer.sh --demo zdt_constrained # synthetic datasets: branin, ishigami, zdt_constrained,
# mixed_categorical, large_20k
./doe_analyzer.sh --diagnose # print the WebGL renderer in use
On Windows: py -3 -m venv .venv, .venv\Scripts\pip install -e .[dev], then
.venv\Scripts\doe_analyzer-gui (no console window).
A Windows program that needs no Python, DOE-Analyzer.exe in a folder shipped as a zip, is built with
packaging\build_windows.bat (PyInstaller; see DEVELOPMENT.md).
It has everything but UMAP and molecular descriptors (RDKit), and runs study scripts too: DOE-Analyzer.exe -u study.py.
Each release's zip, and its browser file, are on the project's
releases page, with their SHA-256 checksums in the
release's notes and in SHA256SUMS.txt. To see that a zip is the one released, compare its checksum with the
release's: certutil -hashfile DOE-Analyzer-<version>.zip SHA256 in a Command Prompt, or
Get-FileHash DOE-Analyzer-<version>.zip in PowerShell. The program is not signed: Windows may hold the zip as
downloaded from the internet, which then stops DOE-Analyzer.exe from starting or slows it; Properties → Unblock on
the zip before unpacking it (or Unblock-File in PowerShell) lifts that. Copy the unpacked folder to the computer's
own disk: started from a network drive it can take minutes.
Optional extras: formats opens Parquet and HDF5 files, office writes reports as Word documents and PowerPoint
decks, chemistry adds molecular descriptors of a SMILES column (pip install "doe_analyzer[formats,office]").
CATIA V5
On Windows, install with the catia extra (pip install "doe_analyzer[catia]", or .[catia] from a clone; the
Windows program has it), start CATIA V5, open a CATPart, then choose
More → CATIA V5 design…. The dialog finds its editable numeric parameters and is the New design dialog for
them: each parameter continuous (a range on a Linear, Log10, Symlog or Power scale, optionally a step) or discrete (its levels, or their
number between a low and a high value), a rule per
parameter, any of the designs with constraints between the parameters, and Check quality… to measure the design and
Improve it before the parts are made. Its Outputs tab records CATIA's computed parameters (a mass) after each run,
with limits that flag the runs breaking them. It asks for an empty output folder, writes
doe.csv, doe.doeproj and catia.json there, and saves each configured part as
doe.001/<part>.CATPart, doe.002/<part>.CATPart, and so on.
The backend contract for development without CATIA is documented in docs/CATIA_INTERFACE.md.
The CATIA V5 interface was written by Akshay Kumar.
In the browser
From a clone of the repository, python scripts/build_web.py writes doe_analyzer.html: the application as one file of about 70 MB that opens in
a current Chrome, Edge or Firefox with no server and no network. It is the same application, not a report of one:
open a CSV or a project, set the columns, and use every page (the Python analysis code runs in the page, in
WebAssembly). Nothing leaves the browser.
- Files are opened with the folder button or dropped on the page; what the application writes (projects, plots as
PNG, SVG or a zip, rows, reports) is downloaded. A project is the
.doeproj file next to its CSV: give the page
both files to restore it (a CSV given alone takes a project the page holds from before only if the project was
saved with that very table). Unsaved changes are kept in the page's storage, one copy per table, and offered
when that very table is opened again; the page cannot tell a tab closed with Leave from a crash, so the copy
outlives both.
- Reload (F5) reads the CSV again in Chrome and Edge; other browsers cannot read a file twice and ask for it.
- Files the CSV names per run (images, curves) are given to the page with More → Add run files…: choose the
folder they are in, and the page reads only the files the data names from it.
- The first start takes about ten seconds (the page unpacks Python and its libraries); the pages show at once.
Long computations (surrogates, optimisation) take about as long as in the desktop application, and Cancel stops
one by starting the engine again. Unlike the desktop application, pages compute one at a time (a page opened
while another computes waits for it, and says so), an option changed while a page computes takes effect when that
computation ends, Export all plots has Stop, which stops after the current plot, the report has Stop, which
ends it at once by starting the engine again as Cancel does (and Hide, which leaves it running), and Export
all plots writes PNG or SVG (a PDF is made one plot at a time).
- Not in the browser: UMAP (PCA, t-SNE and MDS are; a project saved with UMAP opens with PCA), the PDF report
(the HTML, Word and PowerPoint reports are), New design's Run folders…, New design's Very hard parameters (split-split-plot and strip-plot designs: opened in the
browser they are analysed), Table operations' Molecular descriptors (RDKit), Open from a database…, running a study (Study script… downloads its script), CATIA V5, the log folder,
recent files, Recent messages…, the drawer's Recent pages, an options panel made wider or narrower,
Save project as… and the WebGL setting.
- The build downloads the pinned runtime once into
build/web-cache. The pipeline on master builds the file too
(the web job's artifact) and publishes it on the project's GitLab Pages site. See DEVELOPMENT.md.
Using it
- Open a CSV (Ctrl+O, or drop it on the window; the dialog's File name field takes a pasted
full path). The import preview shows the
detected encoding, delimiter and decimal separator (Swedish Excel
1,5;2,3
works); override them if needed. An Excel workbook (.xlsx) opens from the worksheet you choose, and every
table the app writes can be a workbook too. Real data to try it on: Example data… downloads one of six public
datasets (a gas turbine's emissions, a power plant, concrete, buildings' energy, a steel plant, two million runs
of a household's power) ready to analyse. No runs yet? New design… writes a design to
run: Latin hypercube or Sobol, full or two-level fractional factorial (highest
resolution), Plackett–Burman, Taguchi orthogonal arrays, central composite,
Box–Behnken, definitive screening, D-, I- or A-optimal, MaxPro, uniform, sphere packing, fast flexible filling,
Bayesian D-optimal (terms if possible), alias-optimal, supersaturated, covering arrays, choice and MaxDiff sets,
designs for a nonlinear model, or for a mixture a simplex lattice, simplex centroid or
extreme vertices (with process variables), any of them in blocks (a factorial's confounded with its highest
interactions); with a dataset open it also adds space-filling, D- or I-optimal, centre, replicate, fold-over or
axial runs to its design. Hard-to-change parameters make a split-plot design (their runs grouped into whole
plots), very hard ones a split-split-plot or strip-plot design; a discrete parameter takes its levels, or their number between a low and a high value. Check
quality… measures the design before it is written and Improve moves its runs to a better one; Run
folders… also writes a folder per run with your solver's input files filled in. Compare designs… sets designs
side by side (relative efficiencies, power, fraction of design space) and Sample size and power… gives a test's
runs or power, a reliability demonstration's units and an accelerated life test's plan.
Reload (F5) reads the CSV again after new runs were added, keeping every setting; Add runs from a CSV… and
Add columns from a CSV… join another file's data to it, Table operations… stacks, splits, joins, sorts,
subsets, transposes or summarises it into a new table, and Open from a database… reads an SQLite table or a
query (ODBC or a database URL too, with their packages).
- Data page → Columns. Tick the ID column and the result functions; every
other column is a DOE parameter (or tick Fidelity on the column that tells
cheap runs from expensive ones, and Whole plot on a split-plot design's whole plots). Per column:
- type (continuous / discrete / categorical),
- scale — Linear, Log10, Symlog (signed values spread over decades; C is the
half-width of the linear zone) or Power (Box–Cox, λ). The scale is suggested from the data and is
used everywhere: plot axes, binning, correlation, models, sampling;
- a unit, shown with the column's name on its axes;
- for results: goal (minimise / maximise / target), a constraint (≤ / ≥ limit or a range)
and an importance (1–5) for the overall desirability;
- for parameters: design-space bounds, and a discrete or categorical one's levels (Levels… adds ones no
run has yet, for Next runs, Optimisation and What-if to choose from).
Constraints limits combinations of parameters (
x1 + x2 <= 10): New design,
Next runs, Optimisation, What-if and Sensitivity's Shapley effects keep to them. A mixture is one with =
(cement + water + sand = 100; found on opening when the shares add up). A comparison in brackets counts 1
where it holds and 0 where not, so (fuel == 'diesel') <= (engine == 'big') lets diesel go only with the big
engine.
Derived column adds a result computed from others (P_out / P_in), or a categorical column of names:
recode(material, "Al", "light", "Ti", "light", "heavy") merges categories and
cut(thickness, 3, 7, "thin", "medium", "thick") names a number's ranges. Dimensionless groups… reads the
columns' units (kg/m^3, mm, bar, °C …) and proposes the Buckingham π groups of the columns you tick, such as
Re = rho * v * D / mu * 0.001 with D in mm, added as derived columns. Rename… searches and replaces in the
columns' names, such as long names a script wrote, kept as rules the project applies each time it reads the CSV
(written by Johan Björk).
- Explore with the pages in the drawer. The Guide, next after Data, lists the steps worth taking for
your data, each with what it found and the page for it (a click opens it). Lasso or box-select points in a
scatter, brush parallel-coordinate axes, select table rows, click a category
path: the selection is shared by every page. Highlight fades the rest;
Filter shows only the selection on the other pages. Chips under the title
clear it, turn it into a filter (keep only / exclude), hide failed runs or show
feasible runs only. Filter by range… keeps the runs between typed limits; Filter
by name… keeps or drops the runs whose text in a column matches a pattern
(
mb1/*, case ignored if you like), or gives the columns whose names match one
a role (Ignore hides them); its list ticks, unticks or removes each one again.
Filters come in named groups (Groups ▾): each group keeps
its own filters, and a click on its chip puts them in play.
- Export (download icon / Ctrl+E): PNG with embedded DPI, SVG and PDF
(vector), with size presets, font size and theme (publication white, current UI,
dark). Export all plots writes every page; rows can be exported as CSV with
full precision. Export plot as Python script (code icon) writes the calls
of
doe_analyzer.api that draw the plot without the app (see Scripting below). Add custom names for the
axes, title and legends has the script list the names on the plot, for you to give them your own and a title
(written by Johan Björk). Export analysis as notebook writes the plots of the pages chosen as a Jupyter
notebook, or a script of # %% cells: a cell that sets up the data, then each page's summary, computation and
plots.
- Save the project (Ctrl+S; Apply settings from a project… puts a project's settings on another table of
the same columns, such as the next campaign's, and New window, Ctrl+Shift+N, opens a second table beside this
one):
name.doeproj next to the CSV keeps roles,
scales, units, goals and targets, constraints, importances, bounds, levels no run has, derived columns,
curve matches, constraints between parameters (a mixture's too), groups of filters, page
settings, the run files folder and the neural network's shape, and is restored automatically when the
CSV is opened again. Unsaved changes are kept in a recovery copy in the app's own folder, written 30 s after a
change; after a crash, a kill or a disk that dropped out, opening the CSV again offers to restore them.
Ctrl+K (or Search commands… in the More menu; Cmd+K on a Mac in the browser) searches every page, command, column
and help section by a few of their letters: Enter goes to the page, runs the command, shows the column on the
Data page or opens the help at the section.
Numbers are read and written exactly (round-trip), stored as doubles, and shown
with N significant digits (Settings → Numbers); a nonzero value never shows as 0.
Pages
Every page, plot, method and option is explained in docs/HELP.md; the same
text is in the app (help button or F1 for the open page, Help in the navigation drawer for all of it).