public function get_calculation_outcome($value, $ignoredsubtype = false) {

        if (!self::is_a_class($value)) {
            throw new \moodle_exception('errorpredictionformat', 'analytics');
        }

        if (in_array($value, $this->ignored_predicted_classes(), false)) {
            // Just in case, if it is ignored the prediction should not even be recorded but if it would, it is ignored now,
            // which should mean that is it nothing serious.
            return self::OUTCOME_VERY_POSITIVE;
        }

        // By default binaries are danger when prediction = 1.
        if ($value) {
            return self::OUTCOME_VERY_NEGATIVE;
        }
        return self::OUTCOME_VERY_POSITIVE;
    }