class_docstr: Test the ClassificationScoreVisualizer base functionality
docstr: Test that an estimator can be forced through
docstr_tok: ["Test","that","an","estimator","can","be","forced","through"]
code: def test_force_estimator(self):
      """
      Test that an estimator can be forced through
      """
      with pytest.raises(YellowbrickTypeError):
          ClassificationScoreVisualizer(LinearRegression())
  
      try:
          ClassificationScoreVisualizer(
              LinearRegression(), force_model=True
          )
      except YellowbrickTypeError as e:
          pytest.fail("type error was raised incorrectly: {}".format(e))
  
imports: import pytest
  import numpy
  import numpy.testing
  from yellowbrick.classifier.base import *
  from sklearn.naive_bayes import GaussianNB
  from sklearn.preprocessing import LabelEncoder
  from sklearn.linear_model import LinearRegression
  from .conftest import assert_fitted, assert_not_fitted
  from yellowbrick.exceptions import YellowbrickTypeError
label_desc: Use image node_id 3 for calling the TestClassificationScoreVisualizer obj's underlying member method code with example usage: obj.test_force_estimator() without return types