class_docstr: Test the AlphaSelection visualizer
class_docstr_tok: ["Test","the","AlphaSelection","visualizer"]
docstr: Assert that we can get the alphas from original CV models
docstr_tok: ["Assert","that","we","can","get","the","alphas","from","original","CV","models"]
code: def test_get_alphas_param(self, model):
      """
      Assert that we can get the alphas from original CV models
      """
      alphas = np.logspace(-10, -2, 100)
  
      try:
          model = AlphaSelection(model(alphas=alphas))
          malphas = model._find_alphas_param()
          assert_array_equal(alphas, malphas)
      except YellowbrickValueError:
          pytest.fail("could not find alphas 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 6 for calling the TestAlphaSelection obj's underlying member method code with example usage: obj.test_get_alphas_param(model) without return types