#NEWLINE# def test_workability( self ) : #NEWLINE# #INDENT# for voting in [ 'mean' , 'median' , 'random-mean' , 'random-percentile' ] : #NEWLINE# #INDENT# ada = MeanAdaBoostClassifier ( voting = event_indices , uniform_variables = self . uniform_variables , train_variables = self . train_variables ) #NEWLINE# self . check_clf ( ada ) #NEWLINE# #UNINDENT# n_events = 40 #NEWLINE# event_indices = ( numpy . random . randint ( 0 , n_events , size = len ( self . trainY ) ) + ( n_events * self . trainY ) ) #NEWLINE# voter = generate_max_voter ( event_indices ) #NEWLINE# self . check_clf ( MeanAdaBoostClassifier ( voting = voter , uniform_variables = self . uniform_variables , train_variables = self . train_variables ) )