class_docstr: Test class for first set of voting learner API tests.
docstr: Test voting classifier with custom learner path.
docstr_tok: ["Test","voting","classifier","with","custom","learner","path","."]
code: def test_train_with_custom_path(self):
      """Test voting classifier with custom learner path."""
      # instantiate and train a voting classifier on the digits training set
      learner_names = ["CustomLogisticRegressionWrapper", "SVC"]
      vl = VotingLearner(
          learner_names, custom_learner_path=str(CUSTOM_LEARNER_PATH)
      )
      vl.train(
          TRAIN_FS_DIGITS, grid_objective="accuracy", grid_search=False
      )
  
      # check that we have a trained model
      self.assertIsNotNone(vl.model)
      assert isinstance(vl.model, VotingClassifier)
  
      # check the underlying learners
      self.assertEqual(len(vl.learners), 2)
      self.assertEqual(
          vl.learners[0].model.__class__.__name__,
          "CustomLogisticRegressionWrapper",
      )
      assert isinstance(vl.learners[1].model, SVC)
      self.assertEqual(len(vl.model.named_estimators_), 2)
      pipeline1 = vl.model.named_estimators_[
          "CustomLogisticRegressionWrapper"
      ]
      pipeline2 = vl.model.named_estimators_["SVC"]
      assert isinstance(pipeline1, Pipeline)
      assert isinstance(pipeline2, Pipeline)
      self.assertEqual(
          pipeline1["estimator"].__class__.__name__,
          "CustomLogisticRegressionWrapper",
      )
      assert isinstance(pipeline2["estimator"], SVC)
  
imports: import unittest
  from itertools import product
  from pathlib import Path
  import numpy
  from numpy.testing import assert_raises_regex
  from sklearn.ensemble import RandomForestRegressor, VotingClassifier, VotingRegressor
  from sklearn.linear_model import LinearRegression, LogisticRegression
  from sklearn.naive_bayes import MultinomialNB
  from sklearn.pipeline import Pipeline
  from sklearn.svm import SVC, SVR
  from skll.learner.voting import VotingLearner
  from skll.utils.testing import make_california_housing_data, make_digits_data, other_dir, output_dir
label_desc: Use image node_id 14 for calling the TestVotingLearnersAPIOne obj's underlying member method code with example usage: obj.test_train_with_custom_path() without return types