class_docstr: ClassificationReport visualizer tests
class_docstr_tok: ["ClassificationReport","visualizer","tests"]
docstr: Test the quick method with a random dataset
docstr_tok: ["Test","the","quick","method","with","a","random","dataset"]
code: def test_quick_method(self):
      """
      Test the quick method with a random dataset
      """
      X, y = make_classification(
          n_samples=400,
          n_features=20,
          n_informative=8,
          n_redundant=8,
          n_classes=2,
          n_clusters_per_class=4,
          random_state=27,
      )
  
      # Create train/test splits
      splits = tts(X, y, test_size=0.2, random_state=42)
      X_train, X_test, y_train, y_test = splits
  
      _, ax = plt.subplots()
      model = DecisionTreeClassifier(random_state=19)
      visualizer = classification_report(
          model, X_train, y_train, X_test, y_test, ax=ax, show=False
      )
  
      assert isinstance(visualizer, ClassificationReport)
      self.assert_images_similar(visualizer, tol=12)
  
imports: import sys
  import pytest
  import yellowbrick
  import matplotlib.pyplot
  from yellowbrick.datasets import load_occupancy
  from yellowbrick.classifier.classification_report import *
  from pytest import approx
  from unittest.mock import patch
  from tests.base import VisualTestCase
  from sklearn.svm import LinearSVC, SVC
  from sklearn.naive_bayes import GaussianNB
  from sklearn.tree import DecisionTreeClassifier
  from sklearn.datasets import make_classification
  from sklearn.model_selection import train_test_split
  from sklearn.linear_model import LassoCV, LogisticRegression
  from sklearn.pipeline import Pipeline
  from sklearn.preprocessing import MinMaxScaler
label_desc: Use image node_id 5 for calling the TestClassificationReport obj's underlying member method code with example usage: obj.test_quick_method() without return types