class_docstr: FeatureCorrelation visualizer
class_docstr_tok: ["FeatureCorrelation","visualizer"]
docstr: Test selecting feature by feature names
docstr_tok: ["Test","selecting","feature","by","feature","names"]
code: def test_feature_correlation_select_feature_by_name(self):
      """
      Test selecting feature by feature names
      """
      feature_names = ["age", "sex", "bp", "s5"]
  
      viz = FeatureCorrelation(
          labels=self.labels, feature_names=feature_names
      )
      viz.fit(self.X, self.y)
  
      npt.assert_array_equal(viz.features_, feature_names)
  
imports: import sys
  import pytest
  import numpy
  import numpy.testing
  from yellowbrick.target import FeatureCorrelation, feature_correlation
  from yellowbrick.exceptions import YellowbrickValueError, YellowbrickWarning
  from sklearn import datasets
  from tests.base import VisualTestCase
label_desc: Use image node_id 12 for calling the TestFeatureCorrelationVisualizer obj's underlying member method code with example usage: obj.test_feature_correlation_select_feature_by_name() without return types