v2.0.0
Loading...
Searching...
No Matches
ml_trainer.h
Go to the documentation of this file.
1//=============================================================================================================
34
35#ifndef ML_TRAINER_H
36#define ML_TRAINER_H
37
38#ifndef WASMBUILD // QProcess (used by PythonRunner) is not available in Qt WASM
39
40//=============================================================================================================
41// INCLUDES
42//=============================================================================================================
43
44#include "ml_global.h"
45
46#include <utils/python_runner.h>
47
48//=============================================================================================================
49// QT INCLUDES
50//=============================================================================================================
51
52#include <QString>
53#include <QStringList>
54
55//=============================================================================================================
56// DEFINE NAMESPACE MLLIB
57//=============================================================================================================
58
59namespace MLLIB
60{
61
62//=============================================================================================================
77{
78public:
79 //=========================================================================================================
83 MLTrainer();
84
85 //=========================================================================================================
91 explicit MLTrainer(const UTILSLIB::PythonRunnerConfig& config);
92
93 //=========================================================================================================
100
101 //=========================================================================================================
113 UTILSLIB::PythonRunnerResult run(const QString& scriptPath,
114 const QStringList& args = {});
115
116 //=========================================================================================================
124 QStringList checkPrerequisites(const QStringList& packages) const;
125
126private:
127 UTILSLIB::PythonRunner m_runner;
128};
129
130} // namespace MLLIB
131
132#endif // WASMBUILD
133
134#endif // ML_TRAINER_H
PythonRunner class declaration — standardized interface for calling Python scripts.
ml library export/import macros.
#define MLSHARED_EXPORT
Definition ml_global.h:55
Machine learning (models, pipelines, ONNX Runtime integration).
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.