#NEWLINE# def __repr__( self ) : #NEWLINE# #INDENT# classname = self . __class__ . __name__ #NEWLINE# try : #NEWLINE# #INDENT# s = ( '<lifelines.%s: fitted with %d observations, %d censored>' % ( classname , self . event_observed . shape [ 0 ] , ( 1 - self . event_observed ) . sum ( ) ) ) #NEWLINE# #UNINDENT# except AttributeError : #NEWLINE# #INDENT# s = ( '<lifelines.%s>' % classname ) #NEWLINE# #UNINDENT# return s