@@ -229,16 +229,16 @@ def test_run_and_upload(self):
229229 num_iterations = 5 # for base search classifiers
230230
231231 clfs = []
232- random_state_values = []
232+ random_state_fixtures = []
233233
234234 lr = LogisticRegression ()
235235 clfs .append (lr )
236- random_state_values .append ('62501' )
236+ random_state_fixtures .append ('62501' )
237237
238238 pipeline1 = Pipeline (steps = [('scaler' , StandardScaler (with_mean = False )),
239239 ('dummy' , DummyClassifier (strategy = 'prior' ))])
240240 clfs .append (pipeline1 )
241- random_state_values .append ('62501' )
241+ random_state_fixtures .append ('62501' )
242242
243243 pipeline2 = Pipeline (steps = [('Imputer' , Imputer (strategy = 'median' )),
244244 ('VarianceThreshold' , VarianceThreshold ()),
@@ -248,13 +248,13 @@ def test_run_and_upload(self):
248248 'min_samples_leaf' : [2 ** x for x in range (0 , 6 + 1 )]},
249249 cv = 3 , n_iter = 10 ))])
250250 clfs .append (pipeline2 )
251- random_state_values .append ('62501' )
251+ random_state_fixtures .append ('62501' )
252252
253253 gridsearch = GridSearchCV (BaggingClassifier (base_estimator = SVC ()),
254254 {"base_estimator__C" : [0.01 , 0.1 , 10 ],
255255 "base_estimator__gamma" : [0.01 , 0.1 , 10 ]})
256256 clfs .append (gridsearch )
257- random_state_values .append ('62501' )
257+ random_state_fixtures .append ('62501' )
258258
259259 randomsearch = RandomizedSearchCV (
260260 RandomForestClassifier (n_estimators = 5 ),
@@ -271,9 +271,9 @@ def test_run_and_upload(self):
271271 # The random states for the RandomizedSearchCV is set after the
272272 # random state of the RandomForestClassifier is set, therefore,
273273 # it has a different value than the other examples before
274- random_state_values .append ('33003' )
274+ random_state_fixtures .append ('33003' )
275275
276- for clf , rsv in zip (clfs , random_state_values ):
276+ for clf , rsv in zip (clfs , random_state_fixtures ):
277277 run = self ._perform_run (task_id , num_test_instances , clf ,
278278 random_state_value = rsv )
279279 if isinstance (clf , BaseSearchCV ):
@@ -311,7 +311,6 @@ def test_initialize_model_from_run(self):
311311
312312 self .assertEquals (flowS .components ['Imputer' ].parameters ['strategy' ], '"median"' )
313313 self .assertEquals (flowS .components ['VarianceThreshold' ].parameters ['threshold' ], '0.05' )
314- pass
315314
316315 def test_get_run_trace (self ):
317316 # get_run_trace is already tested implicitly in test_run_and_publish
0 commit comments