MDL-59211 analytics: Make cibot happy

Part of MDL-57791 epic.
This commit is contained in:
David Monllao
2017-07-24 08:36:49 +02:00
parent 1611308b58
commit 413f19bc49
138 changed files with 3002 additions and 394 deletions
+17 -2
View File
@@ -35,9 +35,12 @@ defined('MOODLE_INTERNAL') || die();
*/
abstract class binary extends discrete {
/**
* is_linear
*
* @return bool
*/
public function is_linear() {
// TODO Remove this discrete override once prediction processors support
// multiclass classifiers; this method will be moved to discrete.
return false;
}
@@ -62,6 +65,13 @@ abstract class binary extends discrete {
return array(0);
}
/**
* Is the calculated value a positive outcome of this target?
*
* @param string $value
* @param string $ignoredsubtype
* @return int
*/
public function get_calculation_outcome($value, $ignoredsubtype = false) {
if (!self::is_a_class($value)) {
@@ -81,6 +91,11 @@ abstract class binary extends discrete {
return self::OUTCOME_VERY_POSITIVE;
}
/**
* classes_description
*
* @return string[]
*/
protected static function classes_description() {
return array(
get_string('yes'),