class_docstr: UMAPVisualizer tests
class_docstr_tok: ["UMAPVisualizer","tests"]
docstr: Test that the user can supply an alpha param on instantiation
docstr_tok: ["Test","that","the","user","can","supply","an","alpha","param","on","instantiation"]
code: def test_alpha_param(self):
      """
      Test that the user can supply an alpha param on instantiation
      """
      ## produce random data
      X, y = make_classification(
          n_samples=200,
          n_features=100,
          n_informative=20,
          n_redundant=10,
          n_classes=3,
          random_state=42,
      )
  
      ## Instantiate a UMAPVisualizer, provide custom alpha
      umap = UMAPVisualizer(random_state=64, alpha=0.5)
  
      # Test param gets set correctly
      assert umap.alpha == 0.5
  
      # Mock ax and fit the visualizer
      umap.ax = mock.MagicMock(autospec=True)
      umap.fit(X, y)
  
      # Test that alpha was passed to internal matplotlib scatterplot
      _, scatter_kwargs = umap.ax.scatter.call_args
      assert "alpha" in scatter_kwargs
      assert scatter_kwargs["alpha"] == 0.5
  
imports: import sys
  import pytest
  import warnings
  from unittest import mock
  from tests.base import VisualTestCase
  from yellowbrick.text.umap_vis import *
  from yellowbrick.datasets import load_hobbies
  from yellowbrick.exceptions import YellowbrickValueError
  from sklearn.datasets import make_classification
  from sklearn.feature_extraction.text import TfidfVectorizer
label_desc: Use image node_id 13 for calling the TestUMAP obj's underlying member method code with example usage: obj.test_alpha_param() without return types