<gh_stars>0
import numpy as np

class Neuron:
  """Neuron constructor"""
  def __init__(self, weights, bias):
    self.weights = weights
    self.bias = bias

  """Calculates the output of the neuron
  Returns:
    int: output from neuron
  """
  def feedforward(self, inputs):
    # Weight inputs, add bias, then use the activation function
    total = np.dot(self.weights, inputs) + self.bias
    return self.sigmoid(total)
 
import numpy as np

class Neuron:
  """Neuron constructor"""
  def __init__(self, weights, bias):
    self.weights = weights
    self.bias = bias

  """Calculates the output of the neuron
  Returns:
    int: output from neuron
  """
  def feedforward(self, inputs):
    # Weight inputs, add bias, then use the activation function
    total = np.dot(self.weights, inputs) + self.bias
    return self.sigmoid(total)
Neuron constructor Calculates the output of the neuron   Returns:     int: output from neuron # Weight inputs, add bias, then use the activation function