class_docstr: Test the ValidationCurve visualizer
class_docstr_tok: ["Test","the","ValidationCurve","visualizer"]
docstr: Test on mushroom dataset with NumPy arrays
docstr_tok: ["Test","on","mushroom","dataset","with","NumPy","arrays"]
code: def test_numpy_integration(self):
      """
      Test on mushroom dataset with NumPy arrays
      """
      data = load_mushroom(return_dataset=True)
      X, y = data.to_numpy()
  
      X = OneHotEncoder().fit_transform(X).toarray()
  
      cv = StratifiedKFold(n_splits=2, shuffle=True, random_state=11)
      pr = np.linspace(0.1, 3.0, 6)
      oz = ValidationCurve(
          BernoulliNB(), cv=cv, param_range=pr, param_name="alpha"
      )
      oz.fit(X, y)
      oz.finalize()
  
      self.assert_images_similar(oz)
  
imports: import sys
  import pytest
  import numpy
  from unittest.mock import patch
  from tests.base import VisualTestCase
  from sklearn.svm import SVC
  from sklearn.naive_bayes import BernoulliNB
  from sklearn.tree import DecisionTreeRegressor
  from sklearn.preprocessing import OneHotEncoder
  from sklearn.neighbors import KNeighborsClassifier
  from sklearn.model_selection import ShuffleSplit, StratifiedKFold
  from yellowbrick.datasets import load_mushroom
  from yellowbrick.exceptions import YellowbrickValueError
  from yellowbrick.model_selection.validation_curve import *
label_desc: Use image node_id 6 for calling the TestValidationCurve obj's underlying member method code with example usage: obj.test_numpy_integration() without return types