Moodle APIs  3.8
Moodle 3.8.6 (Build: 20201109)
Public Member Functions | List of all members
core_analytics\insights_generator Class Reference

Insights generator. More...

Public Member Functions

 __construct (int $modelid, core_analytics\local\target\base $target)
 Constructor. More...
 
 generate ($samplecontexts, $predictions)
 Generates insight notifications. More...
 

Detailed Description

Insights generator.

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

Constructor & Destructor Documentation

◆ __construct()

core_analytics\insights_generator::__construct ( int  $modelid,
core_analytics\local\target\base  $target 
)

Constructor.

Parameters
int$modelid
core_analytics\local\target\base$target

Member Function Documentation

◆ generate()

core_analytics\insights_generator::generate (   $samplecontexts,
  $predictions 
)

Generates insight notifications.

Parameters
array$samplecontextsThe contexts these predictions belong to
core_analytics\prediction[]$predictionsThe prediction records
Return values
null

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