class_docstr: Test the AlphaSelection visualizer
class_docstr_tok: ["Test","the","AlphaSelection","visualizer"]
docstr: Test known models we can get the cv errors for alpha selection
docstr_tok: ["Test","known","models","we","can","get","the","cv","errors","for","alpha","selection"]
code: def test_get_errors_param(self, model):
      """
      Test known models we can get the cv errors for alpha selection
      """
      try:
          model = AlphaSelection(model())
  
          X, y = make_regression()
          model.fit(X, y)
  
          errors = model._find_errors_param()
          assert len(errors) > 0
      except YellowbrickValueError:
          pytest.fail("could not find errors on {}".format(model.name))
  
imports: import sys
  import pytest
  import numpy
  from tests.base import VisualTestCase
  from numpy.testing import assert_array_equal
  from yellowbrick.datasets import load_energy, load_concrete
  from yellowbrick.exceptions import YellowbrickTypeError
  from yellowbrick.exceptions import YellowbrickValueError
  from yellowbrick.regressor.alphas import AlphaSelection, alphas
  from yellowbrick.regressor.alphas import ManualAlphaSelection, manual_alphas
  from sklearn.svm import SVR, SVC
  from sklearn.cluster import KMeans
  from sklearn.decomposition import PCA
  from sklearn.impute import SimpleImputer
  from sklearn.pipeline import Pipeline
  from sklearn.datasets import make_regression
  from sklearn.linear_model import Ridge, RidgeCV
  from sklearn.linear_model import Lasso, LassoCV
  from sklearn.linear_model import LassoLars, LassoLarsCV
  from sklearn.linear_model import ElasticNet, ElasticNetCV
label_desc: Use image node_id 8 for calling the TestAlphaSelection obj's underlying member method code with example usage: obj.test_get_errors_param(model) without return types