18739-hws/hw3/Explanation.py
def for_quantity(self, Q):
        '''
        Q is the quantity of interest, expressed symbolically.
        Returns an ExplanationForQuantity object.
        '''
        return ExplanationForQuantity(
            self.model,
            self.layer, 
            self.attribution_method.compile(
                Q, 
                self.layer_activations, 
                has_training_mode=self.has_training_mode))

        Q is the quantity of interest, expressed symbolically.
        Returns an ExplanationForQuantity object.
        
Q is the quantity of interest, expressed symbolically.
Returns an ExplanationForQuantity object.
Q is the quantity of interest expressed symbolically . Returns an ExplanationForQuantity object .
def for_quantity(self, Q):
        return ExplanationForQuantity(
            self.model,
            self.layer, 
            self.attribution_method.compile(
                Q, 
                self.layer_activations, 
                has_training_mode=self.has_training_mode))
def for_quantity ( self , Q ) : return ExplanationForQuantity ( self . model , self . layer , self . attribution_method . compile ( Q , self . layer_activations , has_training_mode = self . has_training_mode ) )
Q is the quantity of interest, expressed symbolically.
Q is the quantity of interest expressed symbolically .
'''
        Q is the quantity of interest, expressed symbolically.
        Returns an ExplanationForQuantity object.
        '''
self
Q