project5_machine_learning/machinelearning/models.py
def run(self, x):
        """
        Calculates the score assigned by the perceptron to a data point x.

        Inputs:
            x: a node with shape (1 x dimensions)
        Returns: a node containing a single number (the score)
        """
        "*** YOUR CODE HERE ***"
        return nn.DotProduct(self.w, x)

        Calculates the score assigned by the perceptron to a data point x.

        Inputs:
            x: a node with shape (1 x dimensions)
        Returns: a node containing a single number (the score)
        
Calculates the score assigned by the perceptron to a data point x.
Inputs:
x: a node with shape (1 x dimensions)
Returns: a node containing a single number (the score)
Calculates the score assigned by the perceptron to a data point x . Inputs : x : a node with shape ( 1 x dimensions ) Returns : a node containing a single number ( the score )
def run(self, x):
        return nn.DotProduct(self.w, x)
def run ( self , x ) : "*** YOUR CODE HERE ***" return nn . DotProduct ( self . w , x )
Calculates the score assigned by the perceptron to a data point x.
Inputs:
x: a node with shape (1 x dimensions)
Returns: a node containing a single number (the score)
Calculates the score assigned by the perceptron to a data point x . Inputs : x : a node with shape ( 1 x dimensions ) Returns : a node containing a single number ( the score )
"""
        Calculates the score assigned by the perceptron to a data point x.

        Inputs:
            x: a node with shape (1 x dimensions)
        Returns: a node containing a single number (the score)
        """ "*** YOUR CODE HERE ***"
self
x