Project

General

Profile

BitmapToolkit Scol plugin
MlToolkit.cpp File Reference
#include "Prerequisites.h"
#include "NeuralNetwork.h"
#include <algorithm>

Go to the source code of this file.

Macros

#define NbMltkPKG   11
 Nb of Scol functions or types.
 

Functions

int destroyMlObj (mmachine m, SCOL_PTR_TYPE handsys, int obj)
 
int _CRml (mmachine m)
 Create a new neural network Prototype: fun [Chn I F] ObjMl.
 
int _DSml (mmachine m)
 destroy a neural network Prototype: fun [ObjMl] I
 
int _MlAddDetectionData (mmachine m)
 Get a label for the input Prototype: fun [ObjMl [[F F F] r1]] I.
 
int _MlAddTrainingData (mmachine m)
 Add data to learn to the format <input, label> Prototype: fun [ObjMl [[F F F] r1] S] I.
 
int _MlTrain (mmachine m)
 Launch the training of the nn Prototype: fun [ObjMl] I.
 
int _MlSaveData (mmachine m)
 Save the settings of a trained neural network Prototype: fun [ObjMl W] I.
 
int _MlLoadData (mmachine m)
 Load an already trained file neural network AND the used parameters (high level) Prototype: fun [ObjMl P] I.
 
int _MlGetCategories (mmachine m)
 Get the ML loaded categories Prototype: fun [ObjMl] [S r1].
 
int _CBMlTrainingFinished (mmachine m)
 Set a CB function linked to the finished training signal Prototype: fun [ObjMl fun [ObjMl u0] u1 u0] ObjMl.
 
int getMlTrainingFinishedCb (mmachine m, SCOL_PTR_TYPE id, SCOL_PTR_TYPE msg_ptr)
 
int _CBMlDetect (mmachine m)
 Set a CB function linked to detection signal Prototype: fun [ObjMl fun [ObjMl u0 S] u1 u0] ObjMl.
 
int getMlDetectionCb (mmachine m, SCOL_PTR_TYPE id, SCOL_PTR_TYPE msg_ptr)
 

Variables

int OBJMLSCOL
 
int WM_ML_TRAINING_FINISHED
 
int WM_ML_DETECTION
 
char * MltkName [NbMltkPKG]
 
int(* MltkFunc [NbMltkPKG])(mmachine m)
 
int MltkNArg [NbMltkPKG]
 
char * MltkType [NbMltkPKG]
 

Macro Definition Documentation

◆ NbMltkPKG

#define NbMltkPKG   11

Nb of Scol functions or types.

Scol function names

Definition at line 454 of file MlToolkit.cpp.

Function Documentation

◆ destroyMlObj()

int destroyMlObj ( mmachine  m,
SCOL_PTR_TYPE  handsys,
int  obj 
)

Definition at line 46 of file MlToolkit.cpp.

◆ getMlDetectionCb()

int getMlDetectionCb ( mmachine  m,
SCOL_PTR_TYPE  id,
SCOL_PTR_TYPE  msg_ptr 
)

Definition at line 431 of file MlToolkit.cpp.

◆ getMlTrainingFinishedCb()

int getMlTrainingFinishedCb ( mmachine  m,
SCOL_PTR_TYPE  id,
SCOL_PTR_TYPE  msg_ptr 
)

Definition at line 410 of file MlToolkit.cpp.

Variable Documentation

◆ MltkFunc

int(* MltkFunc[NbMltkPKG])(mmachine m) ( mmachine  m)
Initial value:
=
{
NULL,
}
int _MlGetCategories(mmachine m)
Get the ML loaded categories Prototype: fun [ObjMl] [S r1].
int _MlTrain(mmachine m)
Launch the training of the nn Prototype: fun [ObjMl] I.
int _DSml(mmachine m)
destroy a neural network Prototype: fun [ObjMl] I
int _MlAddTrainingData(mmachine m)
Add data to learn to the format <input, label> Prototype: fun [ObjMl [[F F F] r1] S] I.
int _MlSaveData(mmachine m)
Save the settings of a trained neural network Prototype: fun [ObjMl W] I.
int _CRml(mmachine m)
Create a new neural network Prototype: fun [Chn I F] ObjMl.
Definition MlToolkit.cpp:63
int _CBMlDetect(mmachine m)
Set a CB function linked to detection signal Prototype: fun [ObjMl fun [ObjMl u0 S] u1 u0] ObjMl.
int _MlLoadData(mmachine m)
Load an already trained file neural network AND the used parameters (high level) Prototype: fun [ObjM...
int _MlAddDetectionData(mmachine m)
Get a label for the input Prototype: fun [ObjMl [[F F F] r1]] I.
int _CBMlTrainingFinished(mmachine m)
Set a CB function linked to the finished training signal Prototype: fun [ObjMl fun [ObjMl u0] u1 u0] ...

Definition at line 471 of file MlToolkit.cpp.

◆ MltkName

char* MltkName[NbMltkPKG]
Initial value:
=
{
"ObjMl",
"_CRml",
"_DSml",
"_MlAddTrainingData",
"_MlAddDetectionData",
"_CBMlTrainingFinished",
"_MlLoadData",
"_MlSaveData",
"_MlGetCategories",
"_MlTrain",
"_CBMlDetect"
}

Definition at line 456 of file MlToolkit.cpp.

◆ MltkNArg

int MltkNArg[NbMltkPKG]
Initial value:
=
{
TYPTYPE,
4,
1,
3,
2,
3,
2,
2,
1,
1,
3
}

Definition at line 486 of file MlToolkit.cpp.

◆ MltkType

char* MltkType[NbMltkPKG]
Initial value:
=
{
NULL,
"fun [Chn I I F] ObjMl",
"fun [ObjMl] I",
"fun [ObjMl [[F F F] r1] S] I",
"fun [ObjMl [[F F F] r1]] I",
"fun [ObjMl fun [ObjMl u0] u1 u0] ObjMl",
"fun [ObjMl P] I",
"fun [ObjMl W] I",
"fun [ObjMl] [S r1]",
"fun [ObjMl] I",
"fun [ObjMl fun [ObjMl u0 S] u1 u0] ObjMl"
}

Definition at line 501 of file MlToolkit.cpp.

◆ OBJMLSCOL

int OBJMLSCOL

Definition at line 31 of file MlToolkit.cpp.

◆ WM_ML_DETECTION

int WM_ML_DETECTION

Definition at line 35 of file MlToolkit.cpp.

◆ WM_ML_TRAINING_FINISHED

int WM_ML_TRAINING_FINISHED

Definition at line 34 of file MlToolkit.cpp.