class_docstr: Test ROCAUC visualizer
class_docstr_tok: ["Test","ROCAUC","visualizer"]
docstr: Test ROCAUC without per-class curves
docstr_tok: ["Test","ROCAUC","without","per-class","curves"]
code: def test_rocauc_no_classes(self):
      """
      Test ROCAUC without per-class curves
      """
      # Create and fit the visualizer
      visualizer = ROCAUC(GaussianNB(), per_class=False)
      visualizer.fit(self.multiclass.X.train, self.multiclass.y.train)
  
      # Score the visualizer (should be the micro average)
      s = visualizer.score(
          self.multiclass.X.test, self.multiclass.y.test
      )
      assert s == pytest.approx(0.77303, abs=1e-4)
  
      # Assert that there still are per-class scores
      for c in (0, 1):
          assert c in visualizer.fpr
          assert c in visualizer.tpr
          assert c in visualizer.roc_auc
  
      # Compare the images
      visualizer.finalize()
      self.assert_images_similar(visualizer, tol=0.1, windows_tol=10)
  
imports: import pytest
  import numpy
  import numpy.testing
  from unittest.mock import patch
  from tests.base import VisualTestCase
  from yellowbrick.classifier.rocauc import *
  from yellowbrick.exceptions import ModelError
  from yellowbrick.datasets import load_occupancy
  from sklearn.svm import LinearSVC, SVC
  from sklearn.naive_bayes import GaussianNB
  from sklearn.linear_model import LogisticRegression
  from sklearn.base import BaseEstimator, ClassifierMixin
  from sklearn.model_selection import train_test_split
  from sklearn.ensemble import RandomForestClassifier, AdaBoostClassifier
  from sklearn.preprocessing import MinMaxScaler
  from sklearn.pipeline import Pipeline
label_desc: Use image node_id 9 for calling the TestROCAUC obj's underlying member method code with example usage: obj.test_rocauc_no_classes() without return types