#NEWLINE# def _assign_resolve( self , name ) : #NEWLINE# #INDENT# '\n        Resolve assignment operator names, possibly allowing\n        the user to specify extra parameters. Feel free to extend\n        this in your subclasses.\n        ' #NEWLINE# if ( name == 'raw' ) : #NEWLINE# #INDENT# return CreditAssignRaw ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( name == 'ranked' ) : #NEWLINE# #INDENT# return CreditAssignRanked ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise ValueError ( ( 'Unknown credit assignment operator ' + str ( name ) ) )