class_docstr: ClassificationReport visualizer tests
class_docstr_tok: ["ClassificationReport","visualizer","tests"]
docstr: Assert that only classifiers can be used with the visualizer.
docstr_tok: ["Assert","that","only","classifiers","can","be","used","with","the","visualizer","."]
code: def test_isclassifier(self):
      """
      Assert that only classifiers can be used with the visualizer.
      """
  
      message = (
          "This estimator is not a classifier; "
          "try a regression or clustering score visualizer instead!"
      )
  
      with pytest.raises(yb.exceptions.YellowbrickError, match=message):
          ClassificationReport(LassoCV())
  
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 6 for calling the TestClassificationReport obj's underlying member method code with example usage: obj.test_isclassifier() without return types