Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
core_analytics\packable Interface Reference

Exportable machine learning backend interface. More...

Inheritance diagram for core_analytics\packable:
mlbackend_php\processor mlbackend_python\processor

Public Member Functions

 export (string $uniqueid, string $modeldir)
 Exports the machine learning model.
 
 import (string $uniqueid, string $modeldir, string $importdir)
 Imports the provided machine learning model.
 

Detailed Description

Exportable machine learning backend interface.

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Member Function Documentation

◆ export()

core_analytics\packable::export ( string $uniqueid,
string $modeldir )

Exports the machine learning model.

Exceptions
moodle_exception
Parameters
string$uniqueidThe model unique id
string$modeldirThe directory that contains the trained model.
Return values
stringThe path to the directory that contains the exported model.

Implemented in mlbackend_php\processor, and mlbackend_python\processor.

◆ import()

core_analytics\packable::import ( string $uniqueid,
string $modeldir,
string $importdir )

Imports the provided machine learning model.

Parameters
string$uniqueidThe model unique id
string$modeldirThe directory that will contain the trained model.
string$importdirThe directory that contains the files to import.
Return values
boolSuccess

Implemented in mlbackend_php\processor, and mlbackend_python\processor.


The documentation for this interface was generated from the following file: