#NEWLINE# def predict( self , results ) : #NEWLINE# #INDENT# res = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# if ( self . p is None ) : #NEWLINE# #INDENT# print ( 'need to fit the model first' ) #NEWLINE# #UNINDENT# for ( case , sd ) in results . iteritems ( ) : #NEWLINE# #INDENT# res [ case ] = self . _get_result ( np . asarray ( sd ) . reshape ( ( - 1 ) , 2 ) , self . p ) . flatten ( ) #NEWLINE# #UNINDENT# return case