public function any_prediction_obtained() {
        global $DB;
        return $DB->record_exists('analytics_predict_samples',
            array('modelid' => $this->model->id, 'timesplitting' => $this->model->timesplitting));
    }
public function any_prediction_obtained() {
        global $DB;
        return $DB->record_exists('analytics_predict_samples',
            array('modelid' => $this->model->id, 'timesplitting' => $this->model->timesplitting));
    }
public function any_prediction_obtained ( ) { global $ DB ; return $ DB -> record_exists ( 'analytics_predict_samples' , array ( 'modelid' => $ this -> model -> id , 'timesplitting' => $ this -> model -> timesplitting ) ) ; }
Has this model generated predictions?

We don't check analytics_predictions table because targets have the ability to
ignore some predicted values, if that is the case predictions are not even stored
in db.

@return bool
Has this model generated predictions?