#NEWLINE# def test_kprotoypes_random_stocks( self ) : #NEWLINE# #INDENT# kproto_random = kprototypes . KPrototypes ( n_clusters = 4 , init = 'random' , verbose = 2 ) #NEWLINE# result = kproto_random . fit ( STOCKS , categorical = [ 1 , 2 ] ) #NEWLINE# self . assertIsInstance ( result , kprototypes . KPrototypes )