docstr: Make sure that evaluate works.
docstr_tok: ["Make","sure","that","evaluate","works","."]
code: def test_evaluate(self):
      """
      Make sure that evaluate works.
      """
      model = self.model
      t = self.dtrain[self.target]
      p = model.predict(self.dtrain)
      self.sm_metrics = {
          "max_error": evaluation.max_error(t, p),
          "rmse": evaluation.rmse(t, p),
      }
  
      def check_metric(ans, metric):
          self.assertTrue(ans is not None)
          self.assertTrue(metric in ans)
          self.assertAlmostEqual(
              ans[metric],
              self.sm_metrics[metric],
              places=4,
              msg="%s = (%s,%s)"
              % (metric, ans[metric], self.sm_metrics[metric]),
          )
  
      # Default
      ans = model.evaluate(self.dtrain)
      self.assertEqual(sorted(ans.keys()), sorted(self.metrics))
      for m in self.metrics:
          check_metric(ans, m)
  
      # Individual
      for m in self.metrics:
          ans = model.evaluate(self.dtrain, metric=m)
          check_metric(ans, m)
  
imports: from __future__ import print_function
  from __future__ import division
  from __future__ import absolute_import
  import unittest
  import turicreate
  import uuid
  import random
  import copy
  from turicreate.toolkits._main import ToolkitError
  import turicreate.toolkits.evaluation
  import shutil
  from array import array
  import os
label_desc: Use image node_id 9 for calling the BoostedTreesRegressionTest obj's underlying member method code with example usage: obj.test_evaluate() without return types