@@ -104,7 +104,7 @@ def decision_function(self, X, *args, **kw):
104104
105105class CommonTest (object ):
106106
107- def _test_warm_start (self , lr ):
107+ def _test_warm_start (self , X , Y , lr ):
108108 # Test that explicit warm restart...
109109 clf = self .factory (alpha = 0.01 , eta0 = 0.01 , n_iter = 5 , shuffle = False ,
110110 learning_rate = lr )
@@ -131,13 +131,16 @@ def _test_warm_start(self, lr):
131131 assert_array_almost_equal (clf3 .coef_ , clf2 .coef_ )
132132
133133 def test_warm_start_constant (self ):
134- self ._test_warm_start ("constant" )
134+ self ._test_warm_start (X , Y , "constant" )
135135
136136 def test_warm_start_invscaling (self ):
137- self ._test_warm_start ("invscaling" )
137+ self ._test_warm_start (X , Y , "invscaling" )
138138
139139 def test_warm_start_optimal (self ):
140- self ._test_warm_start ("optimal" )
140+ self ._test_warm_start (X , Y , "optimal" )
141+
142+ def test_warm_start_multiclass (self ):
143+ self ._test_warm_start (X2 , Y2 , "optimal" )
141144
142145 def test_multiple_fit (self ):
143146 """Test multiple calls of fit w/ different shaped inputs."""
0 commit comments