class_docstr: Check API functionality for a DBSCAN model that has already been created.
class_docstr_tok: ["Check","API","functionality","for","a","DBSCAN","model","that","has","already","been","created","."]
docstr: Check the various 'get' methods against known answers for each field.
docstr_tok: ["Check","the","various","'get","'","methods","against","known","answers","for","each","field","."]
code: def test_get(self):
      """
      Check the various 'get' methods against known answers for each field.
      """
      simple_fields = {
          "verbose": False,
          "min_core_neighbors": self.min_core_neighbors,
          "num_features": 1,
          "num_unpacked_features": 2,
          "num_distance_components": 1,
          "radius": self.radius,
          "num_examples": 30,
      }
  
      for field, ans in simple_fields.items():
          self.assertEqual(
              self.model._get(field), ans, "{} failed".format(field)
          )
  
      _list_fields = {
          "distance": self.distance,
          "unpacked_features": ["X1[0]", "X1[1]"],
          "features": ["X1"],
      }
  
      for field, ans in _list_fields.items():
          self.assertItemsEqual(
              self.model._get(field), ans, "{} failed".format(field)
          )
      self.assertGreaterEqual(self.model.training_time, 0)
      self.assertGreaterEqual(self.model.num_clusters, 0)
      self.assertEqual(self.model.cluster_id.num_rows(), 30)
  
imports: from __future__ import print_function
  from __future__ import division
  from __future__ import absolute_import
  import copy
  import numpy
  import unittest
  import turicreate
  from .None import util
  from turicreate.util import _assert_sframe_equal
  from turicreate.toolkits._main import ToolkitError
  from .test_knn_classifier import make_classifier_data
  import sys
  import os
label_desc: Use image node_id 3 for calling the ModelMethodsTest obj's underlying member method code with example usage: obj.test_get() without return types