original_string: public function any_prediction_obtained() {
          global $DB;
          return $DB->record_exists('analytics_predict_samples',
              array('modelid' => $this->model->id, 'timesplitting' => $this->model->timesplitting));
      }
code: public function any_prediction_obtained() {
          global $DB;
          return $DB->record_exists('analytics_predict_samples',
              array('modelid' => $this->model->id, 'timesplitting' => $this->model->timesplitting));
      }
code_tokens: public function any_prediction_obtained ( ) { global $ DB ; return $ DB -> record_exists ( 'analytics_predict_samples' , array ( 'modelid' => $ this -> model -> id , 'timesplitting' => $ this -> model -> timesplitting ) ) ; }
docstring: 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
docstring_tokens: Has this model generated predictions?