v2.0.0
Loading...
Searching...
No Matches
ml_trainer.h
Go to the documentation of this file.
1//=============================================================================================================
29
30#ifndef ML_TRAINER_H
31#define ML_TRAINER_H
32
33#ifndef WASMBUILD // QProcess (used by PythonRunner) is not available in Qt WASM
34
35//=============================================================================================================
36// INCLUDES
37//=============================================================================================================
38
39#include "ml_global.h"
40
41#include <utils/python_runner.h>
42
43//=============================================================================================================
44// QT INCLUDES
45//=============================================================================================================
46
47#include <QString>
48#include <QStringList>
49
50//=============================================================================================================
51// DEFINE NAMESPACE MLLIB
52//=============================================================================================================
53
54namespace MLLIB
55{
56
57//=============================================================================================================
69{
70public:
71 //=========================================================================================================
75 MLTrainer();
76
77 //=========================================================================================================
83 explicit MLTrainer(const UTILSLIB::PythonRunnerConfig& config);
84
85 //=========================================================================================================
92
93 //=========================================================================================================
105 UTILSLIB::PythonRunnerResult run(const QString& scriptPath,
106 const QStringList& args = {});
107
108 //=========================================================================================================
116 QStringList checkPrerequisites(const QStringList& packages) const;
117
118private:
119 UTILSLIB::PythonRunner m_runner;
120};
121
122} // namespace MLLIB
123
124#endif // WASMBUILD
125
126#endif // ML_TRAINER_H
Embedding-free launcher that runs MNE-Python (or any user) scripts as a child process and streams the...
Export/import macros, build-stamp accessors and namespace anchor for the MLLIB machine-learning libra...
#define MLSHARED_EXPORT
Definition ml_global.h:48
Tensors, model abstraction, ONNX Runtime inference and Python training drivers used across mne-cpp.
UTILSLIB::PythonRunner & runner()
QStringList checkPrerequisites(const QStringList &packages) const
UTILSLIB::PythonRunnerResult run(const QString &scriptPath, const QStringList &args={})
Script execution result container.
Script execution configuration.
Python script launcher with logging and progress support.