See Release Notes
Long Term Support Release
No teaching target.
Copyright: | 2016 David Monllao {@link http://www.davidmonllao.com} |
License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
File Size: | 212 lines (7 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
no_teaching:: (11 methods):
based_on_assumptions()
can_use_timesplitting()
get_name()
get_insight_subject()
get_insight_body()
prediction_actions()
classes_description()
get_analyser_class()
is_valid_analysable()
is_valid_sample()
calculate_sample()
Class: no_teaching - X-Ref
No teaching target.based_on_assumptions() X-Ref |
Machine learning backends are not required to predict. return: bool |
can_use_timesplitting(\core_analytics\local\time_splitting\base $timesplitting) X-Ref |
It requires a specific time-splitting method. param: \core_analytics\local\time_splitting\base $timesplitting return: bool |
get_name() X-Ref |
Returns the name. If there is a corresponding '_help' string this will be shown as well. return: \lang_string |
get_insight_subject(int $modelid, \context $context) X-Ref |
Overwritten to show a simpler language string. param: int $modelid param: \context $context return: string |
get_insight_body(\context $context, string $contextname, \stdClass $user, \moodle_url $insighturl) X-Ref |
Returns the body message for the insight. param: \context $context param: string $contextname param: \stdClass $user param: \moodle_url $insighturl return: string[] The plain text message and the HTML message |
prediction_actions(\core_analytics\prediction $prediction, $includedetailsaction = false,$isinsightuser = false) X-Ref |
prediction_actions param: \core_analytics\prediction $prediction param: mixed $includedetailsaction param: bool $isinsightuser return: \core_analytics\prediction_action[] |
classes_description() X-Ref |
classes_description return: string[] |
get_analyser_class() X-Ref |
get_analyser_class return: string |
is_valid_analysable(\core_analytics\analysable $analysable, $fortraining = true) X-Ref |
is_valid_analysable param: \core_analytics\analysable $analysable param: mixed $fortraining return: true|string |
is_valid_sample($sampleid, \core_analytics\analysable $analysable, $fortraining = true) X-Ref |
Only process samples which start date is getting close. param: int $sampleid param: \core_analytics\analysable $analysable param: bool $fortraining return: bool |
calculate_sample($sampleid, \core_analytics\analysable $analysable, $starttime = false, $endtime = false) X-Ref |
calculate_sample param: int $sampleid param: \core_analytics\analysable $analysable param: int $starttime param: int $endtime return: float |