Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
Public Member Functions | List of all members
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. More...
 
 import (string $uniqueid, string $modeldir, string $importdir)
 Imports the provided machine learning model. More...
 

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: