class_docstr: Test class for second set of voting learner API tests.
class_docstr_tok: ["Test","class","for","second","set","of","voting","learner","API","tests","."]
code: def test_learning_curve(self):
      for learner_type, with_soft_voting in product(
          ["classifier", "regressor"], [False, True]
      ):
          # regressors do not support soft voting
          if learner_type == "regressor" and with_soft_voting:
              continue
          else:
              yield self.check_learning_curve, learner_type, with_soft_voting
  
imports: import re
  import unittest
  from itertools import product
  import numpy
  from numpy.testing import assert_raises_regex
  from scipy.stats import pearsonr
  from sklearn.ensemble import VotingClassifier, VotingRegressor
  from sklearn.metrics import accuracy_score, f1_score, mean_squared_error
  from sklearn.model_selection import ShuffleSplit, learning_curve
  from sklearn.pipeline import Pipeline
  from skll.learner import Learner
  from skll.learner.voting import VotingLearner
  from skll.utils.logging import close_and_remove_logger_handlers, get_skll_logger
  from skll.utils.testing import make_california_housing_data, make_digits_data, other_dir, output_dir
label_desc: Use image node_id 6 for calling the TestVotingLearnersAPITwo obj's underlying member method code with example usage: obj.test_learning_curve() without return types