class_docstr: ClassificationReport visualizer tests
class_docstr_tok: ["ClassificationReport","visualizer","tests"]
docstr: Test that ClassificationReport score() returns a score between 0 and 1
docstr_tok: ["Test","that","ClassificationReport","score","(",")","returns","a","score","between","0","and","1"]
code: def test_score_returns_score(self):
      """
      Test that ClassificationReport score() returns a score between 0 and 1
      """
      viz = ClassificationReport(LinearSVC(random_state=42))
  
      viz.fit(self.binary.X.train, self.binary.y.train)
      s = viz.score(self.binary.X.test, self.binary.y.test)
  
      assert 0 <= s <= 1
  
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 10 for calling the TestClassificationReport obj's underlying member method code with example usage: obj.test_score_returns_score() without return types