Implementation of the CMNE solver (dSPM kernel, z-score rectification, LSTM inference, optional training driver). More...
#include "inv_cmne.h"#include <Eigen/Eigenvalues>#include <QDebug>#include <QCoreApplication>#include <QDir>#include <ml/ml_onnx_model.h>#include <ml/ml_tensor.h>#include <ml/ml_trainer.h>
Go to the source code of this file.
Implementation of the CMNE solver (dSPM kernel, z-score rectification, LSTM inference, optional training driver).
SPDX-License-Identifier: BSD-3-Clause Copyright (c) 2026 MNE-CPP Authors
Implements the dSPM kernel assembly, the per-source z-score rectification, the sliding-window LSTM inference via ONNX Runtime and (outside WebAssembly builds) the UTILSLIB::PythonRunner-based training driver that invokes the upstream train_cmne_lstm.py script. The training driver is a thin process wrapper — the actual PyTorch model + ONNX export lives in Python and this C++ side only forwards arguments and captures progress.
Definition in file inv_cmne.cpp.